mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-05 06:45:39 -05:00
alt attributes aren't valid on inline SVGs
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
25
pages/_document.tsx
Normal 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;
|
||||||
Reference in New Issue
Block a user