dark mode

This commit is contained in:
2024-10-28 21:55:29 -07:00
parent 103cbb82a9
commit b73d83d942
7 changed files with 94 additions and 40 deletions

View File

@@ -1,11 +1,11 @@
import { inter } from "~/lib/fonts"
import "~/styles/globals.css"
import { Navigation } from "~/components/Navigation"
import { Sidebar } from "~/components/Sidebar"
import { ThemeProvider } from 'next-themes'
import { Footer } from "~/components/Footer"
import { Analytics } from "@vercel/analytics/react"
import { SpeedInsights } from "@vercel/speed-insights/next"
import { ThemeProvider } from "next-themes"
import { Footer } from "~/components/Footer"
import { Navigation } from "~/components/Navigation"
import { Sidebar } from "~/components/Sidebar"
import { inter } from "~/lib/fonts"
import "~/styles/globals.css"
export const metadata = {
title: "Sean O'Connor",
@@ -17,22 +17,28 @@ export default function RootLayout({ children }: React.PropsWithChildren) {
return (
<html lang="en" className={inter.className}>
<body className="font-sans bg-background text-foreground min-h-screen flex flex-col">
<Analytics />
<SpeedInsights />
<Navigation />
<div className="flex-1">
<div className="max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex flex-col lg:flex-row lg:gap-12">
<aside className="lg:sticky lg:top-16 lg:h-[calc(100vh-4rem)] overflow-y-auto">
<Sidebar />
</aside>
<main className="flex-1 overflow-y-auto py-8">
{children}
</main>
<ThemeProvider
attribute="data-theme"
defaultTheme="system"
enableSystem
>
<Analytics />
<SpeedInsights />
<Navigation />
<div className="flex-1">
<div className="max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex flex-col lg:flex-row lg:gap-12">
<aside className="lg:sticky lg:top-16 lg:h-[calc(100vh-4rem)] overflow-y-auto">
<Sidebar />
</aside>
<main className="flex-1 overflow-y-auto py-8">
{children}
</main>
</div>
</div>
</div>
</div>
<Footer />
<Footer />
</ThemeProvider>
</body>
</html>
)

View File

@@ -26,7 +26,7 @@ export default function HomePage() {
</div>
</CardHeader>
<CardContent className="space-y-2">
<ul className="list-disc pl-5 space-y-2">
<ul className="list-disc pl-5 space-y-2 text-muted-foreground">
<li>Full-stack development with modern frameworks (React, Next.js, Node.js)</li>
<li>Robotics development using ROS2 and C++</li>
<li>Systems programming and architecture design</li>
@@ -44,7 +44,7 @@ export default function HomePage() {
</div>
</CardHeader>
<CardContent className="space-y-2">
<ul className="list-disc pl-5 space-y-2">
<ul className="list-disc pl-5 space-y-2 text-muted-foreground">
<li>Human-Robot Interaction studies and experimental design</li>
<li>Published researcher at IEEE RO-MAN 2024</li>
<li>Development of experimental platforms for HRI research</li>
@@ -61,7 +61,7 @@ export default function HomePage() {
</div>
</CardHeader>
<CardContent className="space-y-2">
<ul className="list-disc pl-5 space-y-2">
<ul className="list-disc pl-5 space-y-2 text-muted-foreground">
<li>President of AIChE Chem-E-Car Competition Team</li>
<li>Treasurer of Bucknell Coffee Society</li>
<li>Teaching Assistant for Computer Science courses</li>

View File

@@ -116,7 +116,7 @@ export default function PublicationsPage() {
target="_blank"
rel="noopener noreferrer"
>
<Badge variant="outline" className="capitalize">
<Badge variant="secondary" className="capitalize">
<ArrowUpRight className="h-4 w-4" />
DOI
</Badge>
@@ -128,7 +128,7 @@ export default function PublicationsPage() {
target="_blank"
rel="noopener noreferrer"
>
<Badge variant="outline" className="capitalize">
<Badge variant="secondary" className="capitalize">
<FileText className="h-4 w-4" />
Paper
</Badge>
@@ -140,16 +140,16 @@ export default function PublicationsPage() {
target="_blank"
rel="noopener noreferrer"
>
<Badge variant="outline" className="capitalize">
<Badge variant="secondary" className="capitalize">
<Presentation className="h-4 w-4" />
Poster
</Badge>
</Link>
)}
<Badge
<Badge
onClick={() => downloadBibtex(pub)}
className="cursor-pointer capitalize"
variant="outline"
variant="secondary"
>
<BookOpenText className="h-4 w-4" />
BibTeX