feat: Reimplement the October counter application using Next.js, tRPC, and shadcn/ui, replacing the original static HTML/JS setup.

This commit is contained in:
Sean O'Connor
2026-02-03 19:40:14 -05:00
parent a32888cf14
commit 2fb4ffebf5
38 changed files with 2519 additions and 529 deletions

217
src/styles/globals.css Normal file
View File

@@ -0,0 +1,217 @@
@import "tailwindcss";
@plugin "tailwindcss-animate";
@custom-variant dark (&:is(.dark *));
@theme {
--font-sans: var(--font-sans), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-heading: var(--font-heading), ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
--animate-blob: blob 7s infinite;
@keyframes blob {
0% {
transform: translate(0px, 0px) scale(1);
}
33% {
transform: translate(30px, -50px) scale(1.1);
}
66% {
transform: translate(-20px, 20px) scale(0.9);
}
100% {
transform: translate(0px, 0px) scale(1);
}
}
}
/* Base styles */
body {
background-size: 20px 20px;
background-position: center;
}
@theme inline {
--radius-xs: calc(var(--radius) - 8px);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--radius-2xl: calc(var(--radius) + 8px);
--radius-3xl: calc(var(--radius) + 12px);
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
/* Font Family utilities */
--font-sans: var(--font-sans);
--font-heading: var(--font-heading);
}
:root {
--radius: 1rem;
/* 16px base radius */
/* Light mode variables - Monochrome Zinc */
--background: hsl(0, 0%, 100%);
/* #FFFFFF */
--foreground: hsl(240, 10%, 3.9%);
/* #09090B */
--card: hsl(0, 0%, 100%);
/* #FFFFFF */
--card-foreground: hsl(240, 10%, 3.9%);
/* #09090B */
--popover: hsl(0, 0%, 100%);
/* #FFFFFF */
--popover-foreground: hsl(240, 10%, 3.9%);
/* #09090B */
--primary: hsl(240, 5.9%, 10%);
/* #18181B */
--primary-foreground: hsl(0, 0%, 98%);
/* #FAFAFA */
--secondary: hsl(240, 4.8%, 95.9%);
/* #F4F4F5 (Zinc-100) used for secondary/muted approx */
--secondary-foreground: hsl(240, 5.9%, 10%);
/* #18181B */
--muted: hsl(240, 4.8%, 95.9%);
/* #F4F4F5 */
--muted-foreground: hsl(240, 3.8%, 46.1%);
/* #71717A */
--accent: hsl(240, 4.8%, 95.9%);
/* #F4F4F5 */
--accent-foreground: hsl(240, 5.9%, 10%);
/* #18181B */
--destructive: hsl(0, 84.2%, 60.2%);
/* #EF4444 */
--destructive-foreground: hsl(0, 0%, 98%);
/* #FAFAFA */
--border: hsl(240, 5.9%, 90%);
/* #E4E4E7 */
--input: hsl(240, 5.9%, 90%);
/* #E4E4E7 */
--ring: hsl(240, 5.9%, 10%);
/* #18181B */
--chart-1: hsl(12, 76%, 61%);
--chart-2: hsl(173, 58%, 39%);
--chart-3: hsl(197, 37%, 24%);
--chart-4: hsl(43, 74%, 66%);
--chart-5: hsl(27, 87%, 67%);
--sidebar: hsl(0, 0%, 98%);
--sidebar-foreground: hsl(240, 5.3%, 26.1%);
--sidebar-primary: hsl(240, 5.9%, 10%);
--sidebar-primary-foreground: hsl(0, 0%, 98%);
--sidebar-accent: hsl(240, 4.8%, 95.9%);
--sidebar-accent-foreground: hsl(240, 5.9%, 10%);
--sidebar-border: hsl(220, 13%, 91%);
--sidebar-ring: hsl(217.2, 91.2%, 59.8%);
}
.dark {
/* Dark mode overrides - Monochrome Zinc */
--background: hsl(240, 10%, 3.9%);
/* #09090B */
--foreground: hsl(0, 0%, 98%);
/* #FAFAFA */
--card: hsl(240, 10%, 3.9%);
/* #09090B */
--card-foreground: hsl(0, 0%, 98%);
/* #FAFAFA */
--popover: hsl(240, 10%, 3.9%);
/* #09090B */
--popover-foreground: hsl(0, 0%, 98%);
/* #FAFAFA */
--primary: hsl(0, 0%, 98%);
/* #FAFAFA */
--primary-foreground: hsl(240, 5.9%, 10%);
/* #18181B */
--secondary: hsl(240, 3.7%, 15.9%);
/* #27272A */
--secondary-foreground: hsl(0, 0%, 98%);
/* #FAFAFA */
--muted: hsl(240, 3.7%, 15.9%);
/* #27272A */
--muted-foreground: hsl(240, 5%, 64.9%);
/* #A1A1AA */
--accent: hsl(240, 3.7%, 15.9%);
/* #27272A */
--accent-foreground: hsl(0, 0%, 98%);
/* #FAFAFA */
--destructive: hsl(0, 62.8%, 30.6%);
/* #7F1D1D */
--destructive-foreground: hsl(0, 0%, 98%);
/* #FAFAFA */
--border: hsl(240, 3.7%, 15.9%);
/* #27272A */
--input: hsl(240, 3.7%, 15.9%);
/* #27272A */
--ring: hsl(240, 4.9%, 83.9%);
/* #D4D4D8 */
--chart-1: hsl(220, 70%, 50%);
--chart-2: hsl(160, 60%, 45%);
--chart-3: hsl(30, 80%, 55%);
--chart-4: hsl(280, 65%, 60%);
--chart-5: hsl(340, 75%, 55%);
--sidebar: hsl(240, 5.9%, 10%);
--sidebar-foreground: hsl(240, 4.8%, 95.9%);
--sidebar-primary: hsl(224.3, 76.3%, 48%);
--sidebar-primary-foreground: hsl(0, 0%, 100%);
--sidebar-accent: hsl(240, 3.7%, 15.9%);
--sidebar-accent-foreground: hsl(240, 4.8%, 95.9%);
--sidebar-border: hsl(240, 3.7%, 15.9%);
--sidebar-ring: hsl(217.2, 91.2%, 59.8%);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground font-sans;
}
h1,
h2,
h3,
h4,
h5,
h6 {
@apply font-heading;
}
}

View File

@@ -0,0 +1,74 @@
@import "tailwindcss";
@theme {
--font-sans: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
/* Light mode variables */
--color-background: hsl(200, 30%, 97%);
--color-foreground: hsl(200, 50%, 20%);
--color-card: hsla(0, 0%, 100%, 0.5);
--color-card-foreground: hsl(200, 50%, 20%);
--color-primary: hsl(200, 85%, 45%);
--color-primary-foreground: hsl(0, 0%, 100%);
--color-secondary: hsl(37, 95%, 58%);
--color-secondary-foreground: hsl(200, 50%, 20%);
--color-muted: hsl(200, 30%, 96%);
--color-muted-foreground: hsl(200, 30%, 40%);
--color-accent: hsl(200, 85%, 45%);
--color-accent-foreground: hsl(0, 0%, 100%);
--color-border: hsla(200, 30%, 90%, 0.2);
--radius: 0.75rem;
--animate-gradient-move-1: gradient-move-1 30s ease-in-out infinite;
@keyframes gradient-move-1 {
0% {
transform: translate(-50%, -50%) scale(1) rotate(0deg);
}
25% {
transform: translate(-50%, -50%) scale(1.05) rotate(90deg);
}
50% {
transform: translate(-50%, -50%) scale(0.95) rotate(180deg);
}
75% {
transform: translate(-50%, -50%) scale(1.05) rotate(270deg);
}
100% {
transform: translate(-50%, -50%) scale(1) rotate(360deg);
}
}
}
/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
:root {
--color-background: hsl(200, 30%, 8%);
--color-foreground: hsl(200, 20%, 96%);
--color-card: hsla(200, 25%, 15%, 0.4);
--color-card-foreground: hsl(200, 15%, 85%);
--color-primary: hsl(200, 70%, 40%);
--color-primary-foreground: hsl(0, 0%, 100%);
--color-secondary: hsl(37, 92%, 50%);
--color-secondary-foreground: hsl(200, 20%, 96%);
--color-muted: hsl(200, 30%, 20%);
--color-muted-foreground: hsl(200, 30%, 65%);
--color-accent: hsl(200, 70%, 40%);
--color-accent-foreground: hsl(0, 0%, 100%);
--color-border: hsla(200, 30%, 20%, 0.2);
}
}
/* Base styles */
body {
background-color: var(--color-background);
color: var(--color-foreground);
background-image: url('/grid.svg');
background-size: 20px 20px;
background-position: center;
}