1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-13 02:45:28 -04:00

next-mdx-remote v4 (#737)

This commit is contained in:
2022-01-18 09:25:09 -05:00
committed by GitHub
parent 2ef5d06c38
commit a406010bd2
110 changed files with 1009 additions and 1490 deletions
+45
View File
@@ -0,0 +1,45 @@
.name {
display: inline-flex;
align-items: center;
color: var(--medium-dark);
background: none;
padding-bottom: 0;
}
.name .selfie {
width: 50px;
height: 50px;
line-height: 0;
padding: 0;
}
.name .selfie img {
border: 1px solid var(--light) !important;
border-radius: 50%;
}
.name:hover {
color: var(--link);
}
.name:hover .selfie {
opacity: 0.9;
}
.name span:last-of-type {
margin: 0 0.6em;
font-size: 1.2em;
font-weight: 500;
line-height: 1;
}
@media screen and (max-width: 768px) {
.name .selfie {
width: 70px;
height: 70px;
}
.name span:last-of-type {
display: none;
}
}
+20
View File
@@ -0,0 +1,20 @@
import { memo } from "react";
import Link from "next/link";
import Image from "next/image";
import styles from "./Name.module.css";
import meJpg from "../../public/static/images/me.jpg";
const Name = () => (
<Link href="/">
<a className={styles.name}>
<div className={styles.selfie}>
<Image src={meJpg} alt="Photo of Jake Jarvis" width={70} height={70} quality={60} layout="intrinsic" priority />
</div>
<span>Jake Jarvis</span>
</a>
</Link>
);
export default memo(Name);