1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-12-03 22:58:57 -05:00

remove unnecessary react fragments

This commit is contained in:
2022-01-18 09:54:30 -05:00
parent a406010bd2
commit 5e9503b562
22 changed files with 142 additions and 125 deletions

View File

@@ -0,0 +1,26 @@
.title {
margin: 0.3em 0 0.5em -0.03em;
font-size: 2.1em;
line-height: 1.3;
font-weight: 700;
}
.title a {
background: none;
padding-bottom: 0;
color: inherit;
}
.title code {
font-size: 1em;
background: none !important;
border: 0 !important;
margin: 0 0.075em !important;
padding: 0 !important;
}
@media screen and (max-width: 768px) {
.title {
font-size: 1.8em;
}
}

View File

@@ -0,0 +1,16 @@
import Link from "next/link";
import type { NoteMetaType } from "../../types";
import styles from "./NoteTitle.module.css";
type Props = Pick<NoteMetaType, "slug" | "htmlTitle">;
const NoteTitle = ({ slug, htmlTitle }: Props) => (
<h1 className={styles.title}>
<Link href={`/notes/${slug}/`}>
<a dangerouslySetInnerHTML={{ __html: htmlTitle }} />
</Link>
</h1>
);
export default NoteTitle;