diff --git a/apps/next/public/anteatery.webp b/apps/next/public/anteatery.webp index 1ef844da..e0af54d1 100644 Binary files a/apps/next/public/anteatery.webp and b/apps/next/public/anteatery.webp differ diff --git a/apps/next/src/app/globals.css b/apps/next/src/app/globals.css index 0112a3b0..e31594dd 100644 --- a/apps/next/src/app/globals.css +++ b/apps/next/src/app/globals.css @@ -2,6 +2,10 @@ @tailwind components; @tailwind utilities; +html { + overscroll-behavior: none; +} + html, body { height: 100%; @@ -50,6 +54,13 @@ body { --chart-4: 43 74% 66%; --chart-5: 27 87% 67%; --radius: 0.5rem; + --surface-elevated: #ffffff; + --surface-modal: #ffffff; + --button-primary-bg: #0069A8; + --primary-accent: rgba(0, 105, 168, 0.2); + --button-primary-fg: #ffffff; + --button-disabled-bg: rgba(0, 0, 0, 0.12); + --button-disabled-fg: rgba(0, 0, 0, 0.26); --donut-inner: white; --donut-outer: white; --donut-track: #ffffff; @@ -84,6 +95,13 @@ body { --chart-3: 30 80% 55%; --chart-4: 280 65% 60%; --chart-5: 340 75% 55%; + --surface-elevated: #323235; + --surface-modal: #303035; + --button-primary-bg: #93C5FD; + --button-primary-bg-transparent: rgba(147, 197, 253, 0.2); + --button-primary-fg: #111827; + --button-disabled-bg: #3F3F47; + --button-disabled-fg: #71717A; --donut-inner: #27272A; --donut-outer: #31373F; --donut-track: #27272A; @@ -126,16 +144,16 @@ body { /* Light mode calendar borders */ .events-calendar-wrapper .rbc-month-view, -.events-calendar-wrapper .rbc-day-bg + .rbc-day-bg, -.events-calendar-wrapper .rbc-month-row + .rbc-month-row, +.events-calendar-wrapper .rbc-day-bg+.rbc-day-bg, +.events-calendar-wrapper .rbc-month-row+.rbc-month-row, .events-calendar-wrapper .rbc-header { border-color: #0369a1 !important; } /* Dark mode calendar borders */ .dark .events-calendar-wrapper .rbc-month-view, -.dark .events-calendar-wrapper .rbc-day-bg + .rbc-day-bg, -.dark .events-calendar-wrapper .rbc-month-row + .rbc-month-row, +.dark .events-calendar-wrapper .rbc-day-bg+.rbc-day-bg, +.dark .events-calendar-wrapper .rbc-month-row+.rbc-month-row, .dark .events-calendar-wrapper .rbc-header { border-color: #93c5fd !important; } @@ -153,16 +171,20 @@ body { .MuiPickersDay-root { color: #111827 !important; } + .MuiPickersDay-root.Mui-selected { background-color: #0369a1 !important; color: white !important; } + .MuiDayCalendar-weekDayLabel { color: #111827 !important; } + .MuiPickersCalendarHeader-label { color: #111827 !important; } + .MuiPickersArrowSwitcher-button { color: #111827 !important; } @@ -171,25 +193,30 @@ body { .dark .MuiPickersDay-root { color: white !important; } + .dark .MuiPickersDay-root.Mui-selected { background-color: #93C5FD !important; color: #111827 !important; } + .dark .MuiPickersDay-today { border-color: #93C5FD !important; } + .dark .MuiDayCalendar-weekDayLabel { color: white !important; } + .dark .MuiPickersCalendarHeader-label { color: white !important; } + .dark .MuiPickersArrowSwitcher-button { color: white !important; } + /* Date picker dialog dark mode (mobile) */ .dark .MuiDialog-paper { - background-color: #323235 !important; + background-color: var(--surface-elevated) !important; background-image: none !important; -} - +} \ No newline at end of file diff --git a/apps/next/src/app/page.tsx b/apps/next/src/app/page.tsx index 9b310ef0..f878151e 100644 --- a/apps/next/src/app/page.tsx +++ b/apps/next/src/app/page.tsx @@ -119,7 +119,7 @@ function DesktopHome(): React.JSX.Element { {/* Brandywine Card */}
@@ -162,7 +162,7 @@ function DesktopHome(): React.JSX.Element { {/* Anteatery Card */}
@@ -338,7 +338,7 @@ function MobileHome(): React.JSX.Element { {/* Brandywine Card */}
@@ -385,7 +385,7 @@ function MobileHome(): React.JSX.Element { {/* Anteatery Card */}
diff --git a/apps/next/src/components/ui/dishes-info.tsx b/apps/next/src/components/ui/dishes-info.tsx index 2d62bb9e..45916240 100644 --- a/apps/next/src/components/ui/dishes-info.tsx +++ b/apps/next/src/components/ui/dishes-info.tsx @@ -64,7 +64,7 @@ export default function DishesInfo({ return (
diff --git a/apps/next/src/components/ui/edit-preferences-content.tsx b/apps/next/src/components/ui/edit-preferences-content.tsx index 78e3de80..a33aceae 100644 --- a/apps/next/src/components/ui/edit-preferences-content.tsx +++ b/apps/next/src/components/ui/edit-preferences-content.tsx @@ -168,11 +168,12 @@ export default function EditPreferencesContent({ ]); posthog.capture("preferences_updated", { - allergies: [...formData.allergies, ...customAllergies], + allergies: [...formData.allergies /*, ...customAllergies */], preferences: formData.preferences, - allergies_count: formData.allergies.length + customAllergies.length, + allergies_count: + formData.allergies.length /*+ customAllergies.length */, preferences_count: formData.preferences.length, - custom_allergies_count: customAllergies.length, + /*custom_allergies_count: customAllergies.length,*/ }); if (onSaved) { diff --git a/apps/next/src/components/ui/onboarding.tsx b/apps/next/src/components/ui/onboarding.tsx index bd900ee0..5821a5f7 100644 --- a/apps/next/src/components/ui/onboarding.tsx +++ b/apps/next/src/components/ui/onboarding.tsx @@ -356,17 +356,14 @@ const OnboardingContent = React.forwardRef< sx={{ height: "45px", width: "80px", - bgcolor: "#0069A8", + bgcolor: "var(--button-primary-bg)", + color: "var(--button-primary-fg)", "&:hover": { filter: "brightness(0.85)", }, - ".dark &": { - bgcolor: "#93C5FD", - color: "#111827", - }, - ".dark &.Mui-disabled": { - backgroundColor: "#3F3F47", - color: "#71717A", + "&.Mui-disabled": { + backgroundColor: "var(--button-disabled-bg)", + color: "var(--button-disabled-fg)", }, }} > @@ -381,17 +378,14 @@ const OnboardingContent = React.forwardRef< sx={{ height: "45px", width: "80px", - bgcolor: "#0069A8", + bgcolor: "var(--button-primary-bg)", + color: "var(--button-primary-fg)", "&:hover": { filter: "brightness(0.85)", }, - ".dark &": { - bgcolor: "#93C5FD", - color: "#111827", - }, - ".dark &.Mui-disabled": { - backgroundColor: "#3F3F47", - color: "#71717A", + "&.Mui-disabled": { + backgroundColor: "var(--button-disabled-bg)", + color: "var(--button-disabled-fg)", }, }} > @@ -408,17 +402,14 @@ const OnboardingContent = React.forwardRef< sx={{ height: "45px", width: "80px", - bgcolor: "#0069A8", + bgcolor: "var(--button-primary-bg)", + color: "var(--button-primary-fg)", "&:hover": { filter: "brightness(0.85)", }, - ".dark &": { - bgcolor: "#93C5FD", - color: "#111827", - }, - ".dark &.Mui-disabled": { - backgroundColor: "#3F3F47", - color: "#71717A", + "&.Mui-disabled": { + backgroundColor: "var(--button-disabled-bg)", + color: "var(--button-disabled-fg)", }, }} > @@ -460,7 +451,7 @@ export default function OnboardingDialog(): React.JSX.Element { border: "3px solid", borderColor: "var(--mui-palette-divider)", backgroundImage: "none", - backgroundColor: "#303035", + backgroundColor: "var(--surface-modal)", }, }, }, @@ -493,7 +484,7 @@ export default function OnboardingDialog(): React.JSX.Element { }, ".dark & .MuiDrawer-paper": { backgroundImage: "none", - backgroundColor: "#303035", + backgroundColor: "var(--surface-modal)", }, }} > diff --git a/apps/next/src/components/ui/restaurant/dishes-view.tsx b/apps/next/src/components/ui/restaurant/dishes-view.tsx index 7196f867..e98b0fd2 100644 --- a/apps/next/src/components/ui/restaurant/dishes-view.tsx +++ b/apps/next/src/components/ui/restaurant/dishes-view.tsx @@ -91,12 +91,13 @@ export function DishesView({ : // Normal View: Render active station logic activeStation && (
-
+
{toTitleCase(activeStation.name)} diff --git a/apps/next/src/components/ui/restaurant/header/desktop-tabs.tsx b/apps/next/src/components/ui/restaurant/header/desktop-tabs.tsx index 8770b63e..afaa532c 100644 --- a/apps/next/src/components/ui/restaurant/header/desktop-tabs.tsx +++ b/apps/next/src/components/ui/restaurant/header/desktop-tabs.tsx @@ -45,7 +45,7 @@ export function DesktopTabs({ setSelectedStation(val); } }} - className="flex w-full overflow-x-auto no-scrollbar !bg-sky-700/40 dark:!bg-[#46566a] !rounded-lg !p-2 [&_.MuiTabs-flexContainer]:justify-between [&_.MuiTabs-flexContainer]:gap-2 [&_.MuiTabs-indicator]:hidden" + className="flex w-full overflow-x-auto no-scrollbar bg-primary-accent dark:!bg-[#46566a] !rounded-lg !p-2 [&_.MuiTabs-flexContainer]:justify-between [&_.MuiTabs-flexContainer]:gap-2 [&_.MuiTabs-indicator]:hidden" variant="scrollable" scrollButtons={false} > diff --git a/apps/next/src/components/ui/restaurant/restaurant-controls.tsx b/apps/next/src/components/ui/restaurant/restaurant-controls.tsx index c4c75d92..15fc3a10 100644 --- a/apps/next/src/components/ui/restaurant/restaurant-controls.tsx +++ b/apps/next/src/components/ui/restaurant/restaurant-controls.tsx @@ -70,16 +70,12 @@ export function RestaurantControls({ <>
{/* Desktop title & status (Header) */} - - -
- {/* Desktop Status - now next to selectors */} - {isDesktop && ( -
- -
- )} +
+ + {isDesktop && } +
+
{/* Meal & date selectors (Filters) */}
{/* Mobile Header Overlay */} @@ -207,20 +212,7 @@ export function RestaurantPage({ > {hall === HallEnum.ANTEATERY ? "Anteatery" : "Brandywine"} -
- {openTime && closeTime ? ( - <> -
- - {derivedHallStatus === HallStatusEnum.OPEN - ? "Open" - : "Closed"} - - - ) : null} -
+
-
+
void; @@ -62,11 +63,16 @@ export default function SidebarContent({ return ( {/* Header */} -
+
{/* Content */} -
+
{/* Dietary Preferences */}
@@ -115,12 +121,7 @@ export default function SidebarContent({
{preferences?.length ? ( preferences.map((pref) => ( - - {formatDietaryKey(pref)} - + )) ) : ( None @@ -139,12 +140,7 @@ export default function SidebarContent({
{allergies?.length ? ( allergies.map((allergy) => ( - - {formatDietaryKey(allergy)} - + )) ) : ( None @@ -158,7 +154,11 @@ export default function SidebarContent({ Appearance -
+
setTheme("light")} @@ -191,7 +191,11 @@ export default function SidebarContent({ onClose(); onEditPreferencesClick(); }} - className="w-full flex items-center gap-3 rounded-lg px-4 py-2 text-sm text-gray-900 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent disabled:dark:hover:bg-transparent" + className={`w-full flex items-center gap-3 rounded-lg px-4 py-2 + text-sm text-gray-900 dark:text-white hover:bg-gray-100 + dark:hover:bg-gray-700 disabled:opacity-50 + disabled:cursor-not-allowed disabled:hover:bg-transparent + disabled:dark:hover:bg-transparent`} > @@ -227,12 +231,14 @@ export default function SidebarContent({ {/* Sign out */} -
+
{user ? (