Design: Fly.io-inspired Farben und Buttons
- Hintergrund: Dunkles Navy (#092E20-inspiriert) - Buttons: Gradient-Pink zu Violett mit Shadow-Glow - Neue Button-Variante: 'gradient' (Cyan zu Blau) - Gradient-Mesh Hintergrund für Hero-Sektion - Akzentfarbe: Knalliges Pink/Magenta - Selection: Pink mit Transparenz
This commit is contained in:
parent
51b6e88e3d
commit
4b285121d7
3 changed files with 68 additions and 46 deletions
100
app/globals.css
100
app/globals.css
|
|
@ -4,50 +4,50 @@
|
||||||
@custom-variant dark (&:is(.dark *));
|
@custom-variant dark (&:is(.dark *));
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
/* Light mode - warm paper tones */
|
/* Fly.io-inspired: Deep navy with vibrant accents */
|
||||||
--background: oklch(0.98 0.005 90);
|
--background: oklch(0.08 0.02 260);
|
||||||
--foreground: oklch(0.18 0.01 270);
|
--foreground: oklch(0.95 0.01 100);
|
||||||
--card: oklch(0.96 0.005 90);
|
--card: oklch(0.12 0.02 260);
|
||||||
--card-foreground: oklch(0.18 0.01 270);
|
--card-foreground: oklch(0.95 0.01 100);
|
||||||
--popover: oklch(0.98 0.005 90);
|
--popover: oklch(0.12 0.02 260);
|
||||||
--popover-foreground: oklch(0.18 0.01 270);
|
--popover-foreground: oklch(0.95 0.01 100);
|
||||||
--primary: oklch(0.18 0.01 270);
|
--primary: oklch(0.95 0.01 100);
|
||||||
--primary-foreground: oklch(0.98 0.005 90);
|
--primary-foreground: oklch(0.08 0.02 260);
|
||||||
--secondary: oklch(0.94 0.005 90);
|
--secondary: oklch(0.18 0.02 260);
|
||||||
--secondary-foreground: oklch(0.25 0.01 270);
|
--secondary-foreground: oklch(0.90 0.01 100);
|
||||||
--muted: oklch(0.92 0.005 90);
|
--muted: oklch(0.15 0.02 260);
|
||||||
--muted-foreground: oklch(0.45 0.01 270);
|
--muted-foreground: oklch(0.65 0.01 100);
|
||||||
--accent: oklch(0.65 0.15 145);
|
--accent: oklch(0.70 0.18 320);
|
||||||
--accent-foreground: oklch(0.15 0.02 145);
|
--accent-foreground: oklch(0.98 0.01 100);
|
||||||
--destructive: oklch(0.577 0.245 27.325);
|
--destructive: oklch(0.396 0.141 25.723);
|
||||||
--destructive-foreground: oklch(0.577 0.245 27.325);
|
--destructive-foreground: oklch(0.95 0.01 100);
|
||||||
--border: oklch(0.88 0.005 90);
|
--border: oklch(0.25 0.02 260);
|
||||||
--input: oklch(0.92 0.005 90);
|
--input: oklch(0.18 0.02 260);
|
||||||
--ring: oklch(0.65 0.15 145);
|
--ring: oklch(0.70 0.18 320);
|
||||||
--radius: 0.5rem;
|
--radius: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark {
|
.dark {
|
||||||
/* Dark mode - deep charcoal with warmth */
|
/* Fly.io-inspired: Deep navy with vibrant accents */
|
||||||
--background: oklch(0.13 0.01 270);
|
--background: oklch(0.08 0.02 260);
|
||||||
--foreground: oklch(0.92 0.01 90);
|
--foreground: oklch(0.95 0.01 100);
|
||||||
--card: oklch(0.16 0.01 270);
|
--card: oklch(0.12 0.02 260);
|
||||||
--card-foreground: oklch(0.92 0.01 90);
|
--card-foreground: oklch(0.95 0.01 100);
|
||||||
--popover: oklch(0.16 0.01 270);
|
--popover: oklch(0.12 0.02 260);
|
||||||
--popover-foreground: oklch(0.92 0.01 90);
|
--popover-foreground: oklch(0.95 0.01 100);
|
||||||
--primary: oklch(0.92 0.01 90);
|
--primary: oklch(0.95 0.01 100);
|
||||||
--primary-foreground: oklch(0.13 0.01 270);
|
--primary-foreground: oklch(0.08 0.02 260);
|
||||||
--secondary: oklch(0.22 0.01 270);
|
--secondary: oklch(0.18 0.02 260);
|
||||||
--secondary-foreground: oklch(0.85 0.01 90);
|
--secondary-foreground: oklch(0.90 0.01 100);
|
||||||
--muted: oklch(0.20 0.01 270);
|
--muted: oklch(0.15 0.02 260);
|
||||||
--muted-foreground: oklch(0.60 0.01 90);
|
--muted-foreground: oklch(0.65 0.01 100);
|
||||||
--accent: oklch(0.72 0.14 140);
|
--accent: oklch(0.70 0.18 320);
|
||||||
--accent-foreground: oklch(0.13 0.01 270);
|
--accent-foreground: oklch(0.98 0.01 100);
|
||||||
--destructive: oklch(0.396 0.141 25.723);
|
--destructive: oklch(0.396 0.141 25.723);
|
||||||
--destructive-foreground: oklch(0.637 0.237 25.331);
|
--destructive-foreground: oklch(0.95 0.01 100);
|
||||||
--border: oklch(0.25 0.01 270);
|
--border: oklch(0.25 0.02 260);
|
||||||
--input: oklch(0.22 0.01 270);
|
--input: oklch(0.18 0.02 260);
|
||||||
--ring: oklch(0.72 0.14 140);
|
--ring: oklch(0.70 0.18 320);
|
||||||
}
|
}
|
||||||
|
|
||||||
@theme inline {
|
@theme inline {
|
||||||
|
|
@ -104,11 +104,29 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fly.io-style gradient backgrounds */
|
||||||
|
.bg-gradient-mesh {
|
||||||
|
background:
|
||||||
|
radial-gradient(at 0% 0%, oklch(0.4 0.2 320 / 0.15) 0px, transparent 50%),
|
||||||
|
radial-gradient(at 100% 0%, oklch(0.5 0.2 260 / 0.15) 0px, transparent 50%),
|
||||||
|
radial-gradient(at 100% 100%, oklch(0.4 0.15 180 / 0.15) 0px, transparent 50%),
|
||||||
|
radial-gradient(at 0% 100%, oklch(0.5 0.2 320 / 0.15) 0px, transparent 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Subtle glow effects */
|
||||||
|
.glow-accent {
|
||||||
|
box-shadow: 0 0 40px oklch(0.70 0.18 320 / 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.glow-cyan {
|
||||||
|
box-shadow: 0 0 40px oklch(0.70 0.15 200 / 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
/* Selection colors */
|
/* Selection colors */
|
||||||
::selection {
|
::selection {
|
||||||
background: oklch(0.72 0.14 140 / 0.3);
|
background: oklch(0.70 0.18 320 / 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark ::selection {
|
.dark ::selection {
|
||||||
background: oklch(0.72 0.14 140 / 0.4);
|
background: oklch(0.70 0.18 320 / 0.5);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,13 @@ import { ProgrammerGraphic } from './programmer-graphic'
|
||||||
export function Hero() {
|
export function Hero() {
|
||||||
return (
|
return (
|
||||||
<section className="relative min-h-screen flex items-center pt-20 lg:pt-0">
|
<section className="relative min-h-screen flex items-center pt-20 lg:pt-0">
|
||||||
{/* Subtle grid background */}
|
{/* Fly.io-style gradient mesh background */}
|
||||||
|
<div className="absolute inset-0 bg-gradient-mesh" />
|
||||||
|
|
||||||
|
{/* Subtle grid overlay */}
|
||||||
<div className="absolute inset-0 overflow-hidden">
|
<div className="absolute inset-0 overflow-hidden">
|
||||||
<div
|
<div
|
||||||
className="absolute inset-0 opacity-[0.02] dark:opacity-[0.04]"
|
className="absolute inset-0 opacity-[0.03]"
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `
|
backgroundImage: `
|
||||||
linear-gradient(to right, currentColor 1px, transparent 1px),
|
linear-gradient(to right, currentColor 1px, transparent 1px),
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,17 @@ const buttonVariants = cva(
|
||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
default: 'bg-gradient-to-r from-pink-500 to-violet-500 text-white hover:from-pink-600 hover:to-violet-600 shadow-lg shadow-pink-500/25',
|
||||||
destructive:
|
destructive:
|
||||||
'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
|
'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
|
||||||
outline:
|
outline:
|
||||||
'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
|
'border border-border bg-background shadow-xs hover:border-accent hover:text-accent dark:bg-transparent',
|
||||||
secondary:
|
secondary:
|
||||||
'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
||||||
ghost:
|
ghost:
|
||||||
'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
|
'hover:bg-accent/10 hover:text-accent-foreground dark:hover:bg-accent/10',
|
||||||
link: 'text-primary underline-offset-4 hover:underline',
|
link: 'text-primary underline-offset-4 hover:underline',
|
||||||
|
gradient: 'bg-gradient-to-r from-cyan-400 to-blue-500 text-white hover:from-cyan-500 hover:to-blue-600 shadow-lg shadow-cyan-500/25',
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
default: 'h-9 px-4 py-2 has-[>svg]:px-3',
|
default: 'h-9 px-4 py-2 has-[>svg]:px-3',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue