feat: enhance public booking page with improved layout and date formatting

- Added new date formatting function for better user experience.
- Updated layout of the public booking page for improved responsiveness and aesthetics.
- Integrated sport selection with visual icons for better clarity.
- Enhanced error handling and loading states for availability queries.

feat: revamp select complex page for better user interaction

- Redesigned the select complex page layout for a more modern look.
- Added contextual information about complex selection.
- Improved button interactions with loading indicators and icons.

style: update CSS variables for a cohesive sports-club theme

- Adjusted color variables to reflect a sports-club identity.
- Enhanced background styles for both light and dark modes.
- Improved overall styling consistency across components.
This commit is contained in:
Jose Selesan
2026-04-24 14:47:39 -03:00
parent c63b5a0a07
commit f1a7e6c24a
17 changed files with 1577 additions and 1048 deletions

View File

@@ -42,46 +42,46 @@
--radius-sm: calc(var(--radius) * 0.6);
--radius-md: calc(var(--radius) * 0.8);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) * 1.4);
--radius-2xl: calc(var(--radius) * 1.8);
--radius-3xl: calc(var(--radius) * 2.2);
--radius-4xl: calc(var(--radius) * 2.6);
--radius-xl: calc(var(--radius) * 1.2);
--radius-2xl: calc(var(--radius) * 1.5);
--radius-3xl: calc(var(--radius) * 1.8);
--radius-4xl: calc(var(--radius) * 2.1);
}
:root {
/* Base colors (retain shadcn structure) */
--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);
/* Base colors (retaining the shadcn structure, but with a sports-club identity) */
--background: oklch(0.985 0.01 145);
--foreground: oklch(0.16 0.02 145);
--card: oklch(0.995 0.005 145);
--card-foreground: oklch(0.16 0.02 145);
--popover: oklch(0.995 0.005 145);
--popover-foreground: oklch(0.16 0.02 145);
--primary: oklch(0.42 0.11 145);
--primary-foreground: oklch(0.985 0.01 145);
--secondary: oklch(0.95 0.015 145);
--secondary-foreground: oklch(0.24 0.02 145);
--muted: oklch(0.95 0.01 145);
--muted-foreground: oklch(0.49 0.02 145);
--accent: oklch(0.93 0.05 82);
--accent-foreground: oklch(0.28 0.05 82);
--destructive: oklch(0.58 0.22 27);
--border: oklch(0.9 0.01 145);
--input: oklch(0.89 0.01 145);
--ring: oklch(0.55 0.12 145);
--chart-1: oklch(0.87 0 0);
--chart-2: oklch(0.556 0 0);
--chart-3: oklch(0.439 0 0);
--chart-4: oklch(0.371 0 0);
--chart-5: oklch(0.269 0 0);
--radius: 0.625rem;
--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);
--radius: 0.5rem;
--sidebar: oklch(0.99 0.005 145);
--sidebar-foreground: oklch(0.16 0.02 145);
--sidebar-primary: oklch(0.42 0.11 145);
--sidebar-primary-foreground: oklch(0.985 0.01 145);
--sidebar-accent: oklch(0.93 0.05 82);
--sidebar-accent-foreground: oklch(0.28 0.05 82);
--sidebar-border: oklch(0.9 0.01 145);
--sidebar-ring: oklch(0.55 0.12 145);
/* Surface elevation (light mode: higher = lighter) */
--surface-base: oklch(1 0 0);
@@ -120,37 +120,37 @@
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.922 0 0);
--primary-foreground: oklch(0.205 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--background: oklch(0.14 0.015 145);
--foreground: oklch(0.98 0.01 145);
--card: oklch(0.19 0.02 145);
--card-foreground: oklch(0.98 0.01 145);
--popover: oklch(0.2 0.02 145);
--popover-foreground: oklch(0.98 0.01 145);
--primary: oklch(0.76 0.11 145);
--primary-foreground: oklch(0.15 0.02 145);
--secondary: oklch(0.24 0.02 145);
--secondary-foreground: oklch(0.98 0.01 145);
--muted: oklch(0.24 0.02 145);
--muted-foreground: oklch(0.72 0.02 145);
--accent: oklch(0.28 0.05 82);
--accent-foreground: oklch(0.98 0.01 82);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--input: oklch(1 0 0 / 12%);
--ring: oklch(0.72 0.08 145);
--chart-1: oklch(0.87 0 0);
--chart-2: oklch(0.556 0 0);
--chart-3: oklch(0.439 0 0);
--chart-4: oklch(0.371 0 0);
--chart-5: oklch(0.269 0 0);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar: oklch(0.18 0.02 145);
--sidebar-foreground: oklch(0.98 0.01 145);
--sidebar-primary: oklch(0.76 0.11 145);
--sidebar-primary-foreground: oklch(0.15 0.02 145);
--sidebar-accent: oklch(0.28 0.05 82);
--sidebar-accent-foreground: oklch(0.98 0.01 82);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
--sidebar-ring: oklch(0.72 0.08 145);
/* Surface elevation (dark mode: higher = lighter) */
--surface-base: oklch(0.145 0 0);
@@ -192,10 +192,36 @@
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
html {
@apply font-sans;
font-synthesis-weight: none;
text-rendering: optimizeLegibility;
}
body {
@apply bg-background text-foreground antialiased;
background-image: radial-gradient(
circle at top left,
oklch(0.94 0.04 145 / 0.55),
transparent 32%
), radial-gradient(circle at top right, oklch(0.96 0.03 220 / 0.45), transparent 28%),
linear-gradient(
to bottom,
oklch(0.99 0.005 145),
oklch(0.985 0.01 145) 28%,
oklch(0.97 0.01 145)
);
background-attachment: fixed;
}
.dark body {
background-image: radial-gradient(
circle at top left,
oklch(0.32 0.08 145 / 0.35),
transparent 32%
), radial-gradient(circle at top right, oklch(0.26 0.05 220 / 0.2), transparent 28%),
linear-gradient(to bottom, oklch(0.15 0.015 145), oklch(0.14 0.015 145));
}
::selection {
background: color-mix(in oklab, var(--primary) 28%, transparent);
color: var(--foreground);
}
}