Add critical CSS styles for layout and typography, enhance button styles with rounded corners, and introduce a progress card component with Safrangold accent border.
This commit is contained in:
15
app/app.vue
15
app/app.vue
@@ -3,3 +3,18 @@
|
||||
<NuxtPage />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
/* Critical CSS - Loaded immediately to prevent FOUC */
|
||||
html {
|
||||
background-color: #1e1440; /* purple-darkest */
|
||||
color: #f8fafc; /* white/slate-50 */
|
||||
font-family: 'Roboto', system-ui, -apple-system, sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -9,20 +9,20 @@ export const buttonVariants = cva(
|
||||
variants: {
|
||||
variant: {
|
||||
default: 'btn-experimenta',
|
||||
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90 rounded-md',
|
||||
outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground rounded-md',
|
||||
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80 rounded-md',
|
||||
ghost: 'hover:bg-accent hover:text-accent-foreground rounded-md',
|
||||
destructive: 'btn-destructive',
|
||||
outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground rounded-[25px]',
|
||||
secondary: 'btn-secondary',
|
||||
ghost: 'hover:bg-accent hover:text-accent-foreground rounded-[25px]',
|
||||
link: 'text-primary underline-offset-4 hover:underline',
|
||||
experimenta: 'btn-experimenta',
|
||||
},
|
||||
size: {
|
||||
default: 'px-[30px] py-[10px] text-lg leading-[1.7em]',
|
||||
sm: 'h-9 rounded-md px-3',
|
||||
lg: 'h-11 rounded-md px-8',
|
||||
icon: 'h-10 w-10',
|
||||
'icon-sm': 'size-9',
|
||||
'icon-lg': 'size-11',
|
||||
sm: 'h-9 rounded-[25px] px-3',
|
||||
lg: 'h-11 rounded-[25px] px-8',
|
||||
icon: 'h-10 w-10 rounded-[25px]',
|
||||
'icon-sm': 'size-9 rounded-[25px]',
|
||||
'icon-lg': 'size-11 rounded-[25px]',
|
||||
experimenta: 'px-[30px] py-[10px] text-lg leading-[1.7em]',
|
||||
},
|
||||
},
|
||||
|
||||
@@ -20,6 +20,18 @@ const handleClick = () => {
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Example: Card with Safrangold Accent Border -->
|
||||
<div class="card-progress card-accent-border mb-8">
|
||||
<div class="progress-header">
|
||||
<h3 class="progress-title">Verlängerungsfortschritt</h3>
|
||||
<div class="progress-stats">2963 / 4931</div>
|
||||
</div>
|
||||
<div class="progress-bar-wrapper">
|
||||
<div class="progress-bar" style="width: 60.1%"></div>
|
||||
<div class="progress-percentage">60.1%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- experimenta Button Showcase -->
|
||||
<div class="card-glass mb-8">
|
||||
<h3 class="text-xl font-semibold mb-4 text-experimenta-accent">experimenta Button</h3>
|
||||
|
||||
Reference in New Issue
Block a user