a in Link so noscript works

This commit is contained in:
Daniel Kluge 2022-10-08 14:07:56 +02:00
parent 2ac80fe8f2
commit 0d0a6791fd
3 changed files with 18 additions and 10 deletions

View File

@ -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>;
}; };

View File

@ -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={"/"}>
<a className="nostyle">
<picture> <picture>
<source srcSet="/icon.png" type="image/png" /> <source srcSet="/icon.png" type="image/png" />
<img src="/icon.png" alt={"Website icon, a red eye"} className={styles.logo} /> <img src="/icon.png" alt={"Website icon, a red eye"} className={styles.logo} />
</picture> </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>

View File

@ -29,3 +29,8 @@ body {
margin: 0 auto; margin: 0 auto;
} }
} }
a.nostyle {
text-decoration: inherit;
color: inherit;
}