1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-05 09:05:39 -05:00

alt attributes aren't valid on inline SVGs

This commit is contained in:
2022-01-03 12:12:23 -05:00
parent aa40d3384c
commit 13605d2ab5
3 changed files with 36 additions and 4 deletions

View File

@@ -20,12 +20,18 @@ const Footer = () => (
</div> </div>
<div className={styles.powered_by}> <div className={styles.powered_by}>
Made with{" "} Made with{" "}
<span className={styles.beat}> <span className={styles.beat} title="Love">
<HeartIcon alt="Love" /> <HeartIcon />
</span>{" "} </span>{" "}
and{" "} and{" "}
<a href="https://nextjs.org/" title="Powered by Next.js" target="_blank" rel="noopener noreferrer"> <a
<NextjsIcon alt="Next.js" fill="currentColor" /> href="https://nextjs.org/"
title="Powered by Next.js"
aria-label="Next.js"
target="_blank"
rel="noopener noreferrer"
>
<NextjsIcon fill="currentColor" />
</a> </a>
.{" "} .{" "}
<a <a

View File

@@ -50,6 +50,7 @@ module.exports = (phase) => {
icon: true, icon: true,
typescript: true, typescript: true,
svgProps: { svgProps: {
"aria-hidden": true,
className: "icon", className: "icon",
}, },
}, },

25
pages/_document.tsx Normal file
View File

@@ -0,0 +1,25 @@
import Document, { Html, Head, Main, NextScript } from "next/document";
import * as config from "../lib/config";
import type { DocumentContext } from "next/document";
class MyDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
<Html lang={config.siteLocale?.replace("_", "-")}>
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;