mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-19 11:55:30 -04:00
5a1636baa3
- Replace Biome with oxlint + oxfmt (OXC toolchain) for linting and formatting - Add .oxlintrc.json and .oxfmtrc.json configuration files - Update VS Code settings and devcontainer to use oxc-vscode extension - Remove contact form, Resend email integration, and related server action/schema - Remove unused UI components (accordion, alert, card, tabs, toggle, etc.)
49 lines
1.6 KiB
TypeScript
49 lines
1.6 KiB
TypeScript
"use client";
|
|
|
|
import { useEffect } from "react";
|
|
|
|
import { ComicNeue } from "@/lib/fonts";
|
|
|
|
export const PageStyles = () => {
|
|
useEffect(() => {
|
|
// Create a style element
|
|
const styleElement = document.createElement("style");
|
|
styleElement.id = "previously-page-styles";
|
|
styleElement.textContent = `
|
|
body {
|
|
cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAZklEQVR4AWIAgn/uBT6A9uoAAwAQiIJo97/0Rgy0ANoJH8MPeEgtqwPQEACqCoQHAKECQKgAECoAhAoAoQJAqAAQxh1oPQfcW3kJpxHtL1AAHAwEwwdYiH8BIEgBTBRAAAEEEEAAG7mRt30hEhoLAAAAAElFTkSuQmCC") 2 1, auto;
|
|
}
|
|
a, button {
|
|
cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAgMAAAAOFJJnAAAACVBMVEVHcEwAAAD///8W1S+BAAAAAXRSTlMAQObYZgAAAEdJREFUeAFjoAVghTGkHIhghMAYmQEwxlIYYxlYlSiQMQEsELUKyli1ahWYwQZjMGIwGLKQGA4QA1EYEP0rGVAZrKGhSF4BAHw/HsVwshytAAAAAElFTkSuQmCC") 16 12, auto;
|
|
}
|
|
main {
|
|
font-family: ${ComicNeue.style.fontFamily}, var(--font-sans);
|
|
font-weight: 700;
|
|
font-size: 1em;
|
|
text-align: center;
|
|
}
|
|
main iframe + p em,
|
|
main img + em {
|
|
display: block;
|
|
text-align: center;
|
|
font-style: normal;
|
|
font-size: 0.95em;
|
|
font-weight: 700;
|
|
}
|
|
`;
|
|
|
|
// Append to head
|
|
document.head.appendChild(styleElement);
|
|
|
|
// Cleanup function to remove styles when component unmounts
|
|
return () => {
|
|
const existingStyle = document.getElementById("previously-page-styles");
|
|
if (existingStyle) {
|
|
existingStyle.remove();
|
|
}
|
|
};
|
|
}, []);
|
|
|
|
return null;
|
|
};
|