From d4c3c4dfca60f87335c528a0d15806a479a90a41 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Sat, 21 Dec 2024 00:57:53 +0000 Subject: [PATCH] feat: use global package for headers (#61) ### Explanation _No response_ ### Issue _No response_ ### Attestations - [ ] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/) - [ ] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/). - [ ] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/). ### Dependencies - [ ] I have pinned the dependencies to a specific patch version. ### Style - [ ] I have run the linter and resolved any errors. - [ ] My pull request uses an appropriate title, matching the conventional commit standards. - [ ] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request. ### Tests - [ ] My contribution adds new code, and I have added tests to cover it. - [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes. - [ ] All new and existing tests pass locally with my changes. - [ ] Code coverage remains at or above the configured threshold. ### Documentation _No response_ ### Versioning _No response_ Reviewed-on: https://codeberg.org/nhcarrigan/portfolio/pulls/61 Co-authored-by: Naomi Carrigan Co-committed-by: Naomi Carrigan --- src/app/globals.css | 40 ++-------------- src/app/layout.tsx | 58 ++++++++---------------- src/assets/OpenDyslexicMono-Regular.otf | Bin 51548 -> 0 bytes src/components/footer.tsx | 44 ------------------ src/components/navigation.tsx | 29 +----------- 5 files changed, 23 insertions(+), 148 deletions(-) delete mode 100644 src/assets/OpenDyslexicMono-Regular.otf delete mode 100644 src/components/footer.tsx diff --git a/src/app/globals.css b/src/app/globals.css index dff67af..526d1ce 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -2,53 +2,21 @@ @tailwind components; @tailwind utilities; -@font-face { - font-family: "OpenDyslexic Mono"; - src: url(../assets/OpenDyslexicMono-Regular.otf); -} - :root { - --foreground: #04624f; - --background: #abfcecdd; - --current: #00a86b; - --former: #ff69b4; + --current: #995c00; + --former: #99004d; } -.dark { - --foreground: #abfcec; - --background: #04624fdd; - --current: rgb(140, 255, 152); - --former: rgb(255, 148, 253); +* { + font-family: "OpenDyslexic"; } -body::before { - background: url(https://cdn.nhcarrigan.com/background.png); - background-size: cover; - background-position: center; - width: 100%; - height: 100%; - z-index: -1; - content: ""; - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - opacity: 1; - pointer-events: none; -} - -main, nav { color: var(--foreground); background-color: var(--background); font-family: "OpenDyslexic Mono", monospace; } -a { - color: unset; -} - @layer utilities { .text-balance { text-wrap: balance; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index b1d556d..2048669 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,9 +5,6 @@ */ import { Inter } from "next/font/google"; import Script from "next/script"; -// eslint-disable-next-line import/default, import/no-named-as-default, import/no-named-as-default-member -import PlausibleProvider from "next-plausible"; -import { Footer } from "../components/footer"; import { Navigation } from "../components/navigation"; import type { Metadata } from "next"; import type { JSX, ReactNode } from "react"; @@ -46,43 +43,24 @@ const RootLayout = ({ }>): JSX.Element => { return ( - - - -
- -
- {children} -