1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-26 03:46:06 -05:00

v5: Revenge of the JavaScript 🦸 (#711)

Hugo ➡️ Next.js
This commit is contained in:
2021-12-30 08:18:41 -05:00
committed by GitHub
parent b7505fa260
commit 9979e1bf3f
577 changed files with 8019 additions and 11864 deletions

View File

@@ -0,0 +1,18 @@
.title {
margin-top: 0;
margin-bottom: 0.4em;
font-size: 2em;
text-align: center;
a {
background: none;
padding-bottom: 0;
color: var(--text);
}
}
@media screen and (max-width: 800px) {
.title {
font-size: 1.8em;
}
}

View File

@@ -0,0 +1,17 @@
import { useRouter } from "next/router";
import styles from "./PageTitle.module.scss";
type Props = {
title: unknown;
};
export default function Content({ title }: Props) {
const router = useRouter();
return (
<h1 className={styles.title}>
<a href={router.asPath}>{title}</a>
</h1>
);
}