a in Link so noscript works
This commit is contained in:
parent
2ac80fe8f2
commit
0d0a6791fd
@ -10,11 +10,12 @@ interface IContentCard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const ContentCard: NextPage<IContentCard> = (content: IContentCard) => {
|
const ContentCard: NextPage<IContentCard> = (content: IContentCard) => {
|
||||||
return <Link href={`/blog/${content.type}/${content.name}`} passHref>
|
return <Link href={`/blog/${content.type}/${content.name}`}><a className="nostyle">
|
||||||
<div className={styles.card}>
|
<div className={styles.card}>
|
||||||
<h3 className={styles.title}>{content.title}</h3>
|
<h3 className={styles.title}>{content.title}</h3>
|
||||||
<p className={styles.description}>{content.description}</p>
|
<p className={styles.description}>{content.description}</p>
|
||||||
</div>
|
</div>
|
||||||
|
</a>
|
||||||
</Link>;
|
</Link>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@ import styles from "../../styles/Blog/Navigation.module.scss";
|
|||||||
|
|
||||||
const Navigation: NextPage<{}> = () => {
|
const Navigation: NextPage<{}> = () => {
|
||||||
return <nav className={styles.navigation}>
|
return <nav className={styles.navigation}>
|
||||||
<Link href={"/"} passHref>
|
<Link href={"/"}>
|
||||||
<picture>
|
<a className="nostyle">
|
||||||
<source srcSet="/icon.png" type="image/png" />
|
<picture>
|
||||||
<img src="/icon.png" alt={"Website icon, a red eye"} className={styles.logo} />
|
<source srcSet="/icon.png" type="image/png" />
|
||||||
</picture>
|
<img src="/icon.png" alt={"Website icon, a red eye"} className={styles.logo} />
|
||||||
|
</picture>
|
||||||
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
<div className={styles.navLink}>Projects</div>
|
<div className={styles.navLink}>Projects</div>
|
||||||
<div className={styles.navLink}>About me</div>
|
<div className={styles.navLink}>About me</div>
|
||||||
|
@ -28,4 +28,9 @@ body {
|
|||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a.nostyle {
|
||||||
|
text-decoration: inherit;
|
||||||
|
color: inherit;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user