1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 18:06:38 -04:00

json-ld improvements

This commit is contained in:
2025-03-21 12:02:14 -04:00
parent b626955731
commit 9fd3de8569
20 changed files with 277 additions and 225 deletions

View File

@ -9,9 +9,10 @@
.row {
display: flex;
width: 100%;
margin: 0 auto;
justify-content: space-between;
width: 100%;
max-width: var(--max-width);
margin: 0 auto;
font-size: 0.8em;
line-height: 2.3;
}

View File

@ -2,7 +2,6 @@ import clsx from "clsx";
import { HeartIcon } from "lucide-react";
import Link from "../Link";
import * as config from "../../lib/config";
import { MAX_WIDTH } from "../../lib/config/constants";
import type { ComponentPropsWithoutRef } from "react";
import styles from "./Footer.module.css";
@ -12,7 +11,7 @@ export type FooterProps = ComponentPropsWithoutRef<"footer">;
const Footer = ({ className, ...rest }: FooterProps) => {
return (
<footer className={clsx(styles.footer, className)} {...rest}>
<div className={styles.row} style={{ maxWidth: MAX_WIDTH }}>
<div className={styles.row}>
<div>
Content{" "}
<Link href="/license" title={config.license} plain className={styles.link}>

View File

@ -46,6 +46,7 @@
align-items: center;
justify-content: space-between;
width: 100%;
max-width: var(--max-width);
margin: 0 auto;
}

View File

@ -3,7 +3,6 @@ import clsx from "clsx";
import Link from "../Link";
import Menu from "../Menu";
import * as config from "../../lib/config";
import { MAX_WIDTH } from "../../lib/config/constants";
import type { ComponentPropsWithoutRef } from "react";
import styles from "./Header.module.css";
@ -15,7 +14,7 @@ export type HeaderProps = ComponentPropsWithoutRef<"header">;
const Header = ({ className, ...rest }: HeaderProps) => {
return (
<header className={clsx(styles.header, className)} {...rest}>
<nav className={styles.nav} style={{ maxWidth: MAX_WIDTH }}>
<nav className={styles.nav}>
<Link href="/" rel="author" title={config.authorName} plain className={styles.homeLink}>
<Image
src={selfieJpg}

View File

@ -11,7 +11,7 @@ import styles from "./ThemeToggle.module.css";
export type ThemeToggleProps = ComponentPropsWithoutRef<LucideIcon>;
const ThemeToggle = ({ className, ...rest }: ThemeToggleProps) => {
const { theme, setTheme } = useTheme();
const [theme, setTheme] = useTheme();
return (
<button