Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

/* Keep in sync with BRAND_GRADIENT in components/logo.tsx — same colors, same stops, same angle. */
--gradient-sunset: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 55%, var(--amber) 100%);
/* The darker stops keep white action text at or above 4.5:1 across the gradient. */
--gradient-action: linear-gradient(135deg, #5b45a5 0%, #a43b72 55%, #8a6200 100%);
--gradient-glow: radial-gradient(60% 60% at 50% 0%, rgba(167, 139, 250, 0.35), transparent 70%);
}

Expand Down Expand Up @@ -56,6 +58,10 @@ body {
background-image: var(--gradient-sunset);
}

.bg-gradient-action {
background-image: var(--gradient-action);
}

.border-gradient {
position: relative;
border: 1px solid transparent;
Expand Down
2 changes: 1 addition & 1 deletion src/components/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export type ButtonVariant = 'primary' | 'secondary' | 'danger';
export type ButtonSize = 'sm' | 'md' | 'lg';

const VARIANT_CLASSES: Record<ButtonVariant, string> = {
primary: 'bg-gradient-sunset text-white shadow-lg shadow-violet/20 hover:opacity-90',
primary: 'bg-gradient-action text-white shadow-lg shadow-violet/20 hover:opacity-90',
secondary: 'border border-border hover:bg-surface',
danger: 'border border-red-900/50 text-red-300 hover:bg-red-950/30',
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function Navbar() {
</Link>
<Link
href="/register"
className="rounded-full bg-gradient-sunset px-4 py-1.5 font-medium text-white shadow-lg shadow-violet/20 hover:opacity-90"
className="rounded-full bg-gradient-action px-4 py-1.5 font-medium text-white shadow-lg shadow-violet/20 hover:opacity-90"
>
Get started
</Link>
Expand Down Expand Up @@ -160,7 +160,7 @@ export function Navbar() {
</Link>
<Link
href="/register"
className="rounded-full bg-gradient-sunset px-4 py-3 text-center text-sm font-medium text-white shadow-lg shadow-violet/20"
className="rounded-full bg-gradient-action px-4 py-3 text-center text-sm font-medium text-white shadow-lg shadow-violet/20"
>
Get started
</Link>
Expand Down
4 changes: 2 additions & 2 deletions src/components/pill-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ export function PillButton({
href={href}
className={`group relative inline-flex items-center overflow-hidden rounded-full border px-6 py-3 font-semibold ${
variant === 'solid'
? 'border-transparent bg-gradient-sunset text-white shadow-lg shadow-violet/20'
? 'border-transparent bg-gradient-action text-white shadow-lg shadow-violet/20'
: 'border-border-bright text-foreground'
}`}
>
{variant === 'outline' && (
<span className="absolute inset-0 -translate-x-full bg-gradient-sunset transition-transform duration-300 ease-out group-hover:translate-x-0" />
<span className="absolute inset-0 -translate-x-full bg-gradient-action transition-transform duration-300 ease-out group-hover:translate-x-0" />
)}
<span className="relative flex items-center gap-2 transition-colors duration-300 group-hover:text-white">
{children}
Expand Down