diff --git a/src/components/Header.tsx b/src/components/Header.tsx index ba6aef1..ed20477 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -6,103 +6,103 @@ import { Link } from "react-router" import headerImage from "../images/radigue_gruvbox.png" import controlPanel from "../images/control-panel.png" import { - NavigationMenu, - NavigationMenuContent, - NavigationMenuItem, - NavigationMenuLink, - NavigationMenuList, - NavigationMenuTrigger, - navigationMenuTriggerStyle, - NavigationMenuViewport, + NavigationMenu, + NavigationMenuContent, + NavigationMenuItem, + NavigationMenuLink, + NavigationMenuList, + NavigationMenuTrigger, + navigationMenuTriggerStyle, + NavigationMenuViewport, } from "@/components/ui/navigation-menu" import { Toggle } from "@/components/ui/toggle" const Menu = () => { - return ( - - - {/* Desktop menu - hidden on mobile, visible on md+ */} - - - - Posts - - - - - About - - - + return ( + + + {/* Desktop menu - hidden on mobile, visible on md+ */} + + + + Posts + + + + + About + + + - {/* Mobile dropdown - visible only on small screens */} - - - - + {/* Mobile dropdown - visible only on small screens */} + + + + - - - - Posts - - - - - About - - - - - - - - ) + + + + Posts + + + + + About + + + + + + + + ) } const Header = () => { - const { theme, setTheme } = useTheme() - return ( - - + const { theme, setTheme } = useTheme() + return ( + + - + - - - - - - Systems Obscure - - - - - - {/* + + + + + + Systems Obscure + + + + + + {/* { */} - + - {/* + {/* Forgejo @@ -126,10 +126,10 @@ const Header = () => { */} - - - - ) + + + + ) } export { Header } diff --git a/src/pages/about.tsx b/src/pages/about.tsx index e2ec9d5..421ce8e 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -21,7 +21,7 @@ const AboutPage = () => { National Museum of Computing @@ -43,7 +43,7 @@ const AboutPage = () => { ITV {" "} @@ -53,7 +53,7 @@ const AboutPage = () => { BBC {" "} @@ -61,7 +61,7 @@ const AboutPage = () => { Arria NLG {" "} @@ -96,7 +96,7 @@ const AboutPage = () => { I self-host my own Git forge at{" "} forgejo.systemsobscure.net {" "} diff --git a/src/styles/_variables.css b/src/styles/_variables.css index 16caaeb..81a52f6 100644 --- a/src/styles/_variables.css +++ b/src/styles/_variables.css @@ -1,38 +1,38 @@ :root { - --radius: 0.3rem; - --background: oklch(1 0 0); - --foreground: oklch(0.145 0 0); - --card: oklch(1 0 0); - --card-foreground: oklch(0.145 0 0); - --popover: oklch(1 0 0); - --popover-foreground: oklch(0.145 0 0); - --primary: oklch(0.205 0 0); - --primary-foreground: oklch(0.985 0 0); - --secondary: oklch(0.97 0 0); - --secondary-foreground: oklch(0.205 0 0); - --muted: oklch(0.97 0 0); - --muted-foreground: oklch(0.556 0 0); - --accent: oklch(0.97 0 0); - --accent-foreground: oklch(0.205 0 0); - --destructive: oklch(0.577 0.245 27.325); - --border: oklch(0.922 0 0); - --input: oklch(0.922 0 0); - --ring: oklch(0.708 0 0); - --chart-1: oklch(0.646 0.222 41.116); - --chart-2: oklch(0.6 0.118 184.704); - --chart-3: oklch(0.398 0.07 227.392); - --chart-4: oklch(0.828 0.189 84.429); - --chart-5: oklch(0.769 0.188 70.08); - --sidebar: oklch(0.985 0 0); - --sidebar-foreground: oklch(0.145 0 0); - --sidebar-primary: oklch(0.205 0 0); - --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.97 0 0); - --sidebar-accent-foreground: oklch(0.205 0 0); - --sidebar-border: oklch(0.922 0 0); - --sidebar-ring: oklch(0.708 0 0); - --font-monospaced: "Jetbrains Mono", monospace; - --font-sansserif: "Inter", sans-serif; + --radius: 0.3rem; + --background: oklch(1 0 0); + --foreground: oklch(0.145 0 0); + --card: oklch(1 0 0); + --card-foreground: oklch(0.145 0 0); + --popover: oklch(1 0 0); + --popover-foreground: oklch(0.145 0 0); + --primary: oklch(0.205 0 0); + --primary-foreground: oklch(0.985 0 0); + --secondary: oklch(0.97 0 0); + --secondary-foreground: oklch(0.205 0 0); + --muted: oklch(0.97 0 0); + --muted-foreground: oklch(0.556 0 0); + --accent: oklch(0.97 0 0); + --accent-foreground: oklch(0.205 0 0); + --destructive: oklch(0.577 0.245 27.325); + --border: oklch(0.922 0 0); + --input: oklch(0.922 0 0); + --ring: oklch(0.708 0 0); + --chart-1: oklch(0.646 0.222 41.116); + --chart-2: oklch(0.6 0.118 184.704); + --chart-3: oklch(0.398 0.07 227.392); + --chart-4: oklch(0.828 0.189 84.429); + --chart-5: oklch(0.769 0.188 70.08); + --sidebar: oklch(0.985 0 0); + --sidebar-foreground: oklch(0.145 0 0); + --sidebar-primary: oklch(0.205 0 0); + --sidebar-primary-foreground: oklch(0.985 0 0); + --sidebar-accent: oklch(0.97 0 0); + --sidebar-accent-foreground: oklch(0.205 0 0); + --sidebar-border: oklch(0.922 0 0); + --sidebar-ring: oklch(0.708 0 0); + --font-monospaced: "Jetbrains Mono", monospace; + --font-sansserif: "Inter", sans-serif; } /* .dark { */ @@ -70,45 +70,45 @@ /* } */ .dark { - --background: oklch(0.2 0 0); - /* Softer dark gray instead of 0.145 */ - --foreground: oklch(0.9 0 0); - /* Softer off-white instead of 0.985 */ - --card: oklch(0.22 0 0); - /* Slightly lighter card */ - --card-foreground: oklch(0.9 0 0); - /* Match foreground */ - --popover: oklch(0.22 0 0); - --popover-foreground: oklch(0.9 0 0); - --primary: oklch(0.85 0 0); - /* Less harsh white */ - --primary-foreground: oklch(0.22 0 0); - --secondary: oklch(0.3 0 0); - /* Lighter secondary */ - --secondary-foreground: oklch(0.9 0 0); - --muted: oklch(0.3 0 0); - --muted-foreground: oklch(0.65 0 0); - /* Slightly softer */ - --accent: #458588; + --background: oklch(0.2 0 0); + /* Softer dark gray instead of 0.145 */ + --foreground: oklch(0.9 0 0); + /* Softer off-white instead of 0.985 */ + --card: oklch(0.22 0 0); + /* Slightly lighter card */ + --card-foreground: oklch(0.9 0 0); + /* Match foreground */ + --popover: oklch(0.22 0 0); + --popover-foreground: oklch(0.9 0 0); + --primary: oklch(0.85 0 0); + /* Less harsh white */ + --primary-foreground: oklch(0.22 0 0); + --secondary: oklch(0.3 0 0); + /* Lighter secondary */ + --secondary-foreground: oklch(0.9 0 0); + --muted: oklch(0.3 0 0); + --muted-foreground: oklch(0.65 0 0); + /* Slightly softer */ + --accent: #a89984; - --accent-foreground: oklch(0.9 0 0); - --destructive: oklch(0.704 0.191 22.216); - --border: oklch(1 0 0 / 15%); - /* Slightly more visible borders */ - --input: oklch(1 0 0 / 18%); - --ring: oklch(0.556 0 0); - --chart-1: oklch(0.488 0.243 264.376); - --chart-2: oklch(0.696 0.17 162.48); - --chart-3: oklch(0.769 0.188 70.08); - --chart-4: oklch(0.627 0.265 303.9); - --chart-5: oklch(0.645 0.246 16.439); - --sidebar: oklch(0.22 0 0); - /* Match card */ - --sidebar-foreground: oklch(0.9 0 0); - --sidebar-primary: oklch(0.488 0.243 264.376); - --sidebar-primary-foreground: oklch(0.9 0 0); - --sidebar-accent: oklch(0.3 0 0); - --sidebar-accent-foreground: oklch(0.9 0 0); - --sidebar-border: oklch(1 0 0 / 15%); - --sidebar-ring: oklch(0.556 0 0); + --accent-foreground: oklch(0.9 0 0); + --destructive: oklch(0.704 0.191 22.216); + --border: oklch(1 0 0 / 15%); + /* Slightly more visible borders */ + --input: oklch(1 0 0 / 18%); + --ring: oklch(0.556 0 0); + --chart-1: oklch(0.488 0.243 264.376); + --chart-2: oklch(0.696 0.17 162.48); + --chart-3: oklch(0.769 0.188 70.08); + --chart-4: oklch(0.627 0.265 303.9); + --chart-5: oklch(0.645 0.246 16.439); + --sidebar: oklch(0.22 0 0); + /* Match card */ + --sidebar-foreground: oklch(0.9 0 0); + --sidebar-primary: oklch(0.488 0.243 264.376); + --sidebar-primary-foreground: oklch(0.9 0 0); + --sidebar-accent: oklch(0.3 0 0); + --sidebar-accent-foreground: oklch(0.9 0 0); + --sidebar-border: oklch(1 0 0 / 15%); + --sidebar-ring: oklch(0.556 0 0); } diff --git a/src/templates/BlogTemplate.tsx b/src/templates/BlogTemplate.tsx index a6b54cc..031dc39 100644 --- a/src/templates/BlogTemplate.tsx +++ b/src/templates/BlogTemplate.tsx @@ -10,31 +10,31 @@ const BlogTemplate = () => { const { posts } = usePosts() const post = posts?.find((x) => x.slug === slug) - return ( - - {!post ? ( - Loading... - ) : ( - <> - - {post?.title} - - - - {convertDate(post?.date)} - - - {post?.tags?.map((tag, i) => ( - - - {tag} - - - ))} - - - + {post?.title} + + + + {convertDate(post?.date)} + + + {post?.tags?.map((tag, i) => ( + + + {tag} + + + ))} + + +