mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-13 23:55:35 -04:00
alt
attributes aren't valid on inline SVGs
This commit is contained in:
@@ -20,12 +20,18 @@ const Footer = () => (
|
||||
</div>
|
||||
<div className={styles.powered_by}>
|
||||
Made with{" "}
|
||||
<span className={styles.beat}>
|
||||
<HeartIcon alt="Love" />
|
||||
<span className={styles.beat} title="Love">
|
||||
<HeartIcon />
|
||||
</span>{" "}
|
||||
and{" "}
|
||||
<a href="https://nextjs.org/" title="Powered by Next.js" target="_blank" rel="noopener noreferrer">
|
||||
<NextjsIcon alt="Next.js" fill="currentColor" />
|
||||
<a
|
||||
href="https://nextjs.org/"
|
||||
title="Powered by Next.js"
|
||||
aria-label="Next.js"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<NextjsIcon fill="currentColor" />
|
||||
</a>
|
||||
.{" "}
|
||||
<a
|
||||
|
@@ -50,6 +50,7 @@ module.exports = (phase) => {
|
||||
icon: true,
|
||||
typescript: true,
|
||||
svgProps: {
|
||||
"aria-hidden": true,
|
||||
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