Enhance styling with updated Tailwind config and CSS
- Extend Tailwind config with experimenta brand colors - Improve CSS base styles and component formatting - Update index page with refined typography
This commit is contained in:
@@ -9,7 +9,7 @@ const handleClick = () => {
|
|||||||
<template>
|
<template>
|
||||||
<NuxtLayout name="default">
|
<NuxtLayout name="default">
|
||||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
||||||
<h1 class="text-4xl font-bold mb-4">Welcome to experimenta Shop</h1>
|
<h1 class="text-4xl font-bold mb-4">Welcome to my.experimenta</h1>
|
||||||
<p class="text-lg mb-8 text-white/90">Your gateway to Makerspace annual passes and more.</p>
|
<p class="text-lg mb-8 text-white/90">Your gateway to Makerspace annual passes and more.</p>
|
||||||
|
|
||||||
<div class="card-info card-accent-border mb-8">
|
<div class="card-info card-accent-border mb-8">
|
||||||
|
|||||||
@@ -47,21 +47,23 @@
|
|||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
:root {
|
:root {
|
||||||
/* shadcn-ui CSS variables (HSL format) */
|
/* shadcn-ui CSS variables (HSL format) - customized for experimenta */
|
||||||
--background: 222.2 84% 4.9%;
|
--background: 222.2 84% 4.9%;
|
||||||
--foreground: 210 40% 98%;
|
--foreground: 210 40% 98%;
|
||||||
--card: 222.2 84% 4.9%;
|
--card: 222.2 84% 4.9%;
|
||||||
--card-foreground: 210 40% 98%;
|
--card-foreground: 210 40% 98%;
|
||||||
--popover: 222.2 84% 4.9%;
|
--popover: 222.2 84% 4.9%;
|
||||||
--popover-foreground: 210 40% 98%;
|
--popover-foreground: 210 40% 98%;
|
||||||
--primary: 210 40% 98%;
|
/* Primary: experimenta Pink #e6007e */
|
||||||
--primary-foreground: 222.2 47.4% 11.2%;
|
--primary: 328 100% 45%;
|
||||||
|
--primary-foreground: 210 40% 98%;
|
||||||
--secondary: 217.2 32.6% 17.5%;
|
--secondary: 217.2 32.6% 17.5%;
|
||||||
--secondary-foreground: 210 40% 98%;
|
--secondary-foreground: 210 40% 98%;
|
||||||
--muted: 217.2 32.6% 17.5%;
|
--muted: 217.2 32.6% 17.5%;
|
||||||
--muted-foreground: 215 20.2% 65.1%;
|
--muted-foreground: 215 20.2% 65.1%;
|
||||||
--accent: 217.2 32.6% 17.5%;
|
/* Accent: experimenta Orange #f59d24 */
|
||||||
--accent-foreground: 210 40% 98%;
|
--accent: 35 91% 55%;
|
||||||
|
--accent-foreground: 222.2 47.4% 11.2%;
|
||||||
--destructive: 0 62.8% 30.6%;
|
--destructive: 0 62.8% 30.6%;
|
||||||
--destructive-foreground: 210 40% 98%;
|
--destructive-foreground: 210 40% 98%;
|
||||||
--border: 217.2 32.6% 17.5%;
|
--border: 217.2 32.6% 17.5%;
|
||||||
@@ -343,6 +345,44 @@
|
|||||||
@apply text-accent font-medium mb-4;
|
@apply text-accent font-medium mb-4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* White Info Card - like experimenta.science homepage */
|
||||||
|
.card-white {
|
||||||
|
@apply bg-white rounded-2xl;
|
||||||
|
@apply p-8 md:p-6 sm:p-5;
|
||||||
|
@apply shadow-lg;
|
||||||
|
@apply transition-transform duration-300;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-white:hover {
|
||||||
|
@apply -translate-y-1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-white h2,
|
||||||
|
.card-white h3 {
|
||||||
|
@apply text-black font-bold mb-4;
|
||||||
|
@apply text-2xl md:text-xl;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-white p {
|
||||||
|
@apply text-gray-800 text-base leading-relaxed mb-6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-white a {
|
||||||
|
@apply text-experimenta-primary font-bold;
|
||||||
|
@apply inline-flex items-center gap-2;
|
||||||
|
@apply transition-colors duration-300;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-white a:hover {
|
||||||
|
@apply text-experimenta-accent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-white a::after {
|
||||||
|
content: '›';
|
||||||
|
@apply text-2xl font-normal;
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
/* Progress Card - with Safrangold accent border */
|
/* Progress Card - with Safrangold accent border */
|
||||||
.card-progress {
|
.card-progress {
|
||||||
background: rgba(255, 255, 255, 0.08);
|
background: rgba(255, 255, 255, 0.08);
|
||||||
@@ -419,14 +459,13 @@
|
|||||||
|
|
||||||
/* Status Messages */
|
/* Status Messages */
|
||||||
.status-message {
|
.status-message {
|
||||||
@apply text-center;
|
@apply flex items-center gap-4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-icon {
|
.status-icon {
|
||||||
@apply flex items-center justify-center;
|
@apply flex items-center justify-center;
|
||||||
@apply w-25 h-25 rounded-full;
|
@apply w-25 h-25 rounded-full;
|
||||||
@apply text-6xl text-white;
|
@apply text-6xl text-white;
|
||||||
@apply mb-8;
|
|
||||||
@apply animate-pulse;
|
@apply animate-pulse;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -477,17 +516,19 @@
|
|||||||
|
|
||||||
.progress-bar-wrapper {
|
.progress-bar-wrapper {
|
||||||
@apply relative w-full h-8 md:h-7 sm:h-6;
|
@apply relative w-full h-8 md:h-7 sm:h-6;
|
||||||
@apply bg-white/10 rounded-full;
|
@apply bg-white/10;
|
||||||
@apply overflow-hidden;
|
@apply overflow-hidden;
|
||||||
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
|
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-bar {
|
.progress-bar {
|
||||||
@apply h-full rounded-full;
|
@apply h-full;
|
||||||
background: var(--bg-gradient-success);
|
background: var(--bg-gradient-success);
|
||||||
@apply transition-all duration-500;
|
@apply transition-all duration-500;
|
||||||
@apply animate-shimmer;
|
@apply animate-shimmer;
|
||||||
background-size: 200%;
|
background-size: 200%;
|
||||||
|
border-radius: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-percentage {
|
.progress-percentage {
|
||||||
@@ -554,23 +595,23 @@
|
|||||||
|
|
||||||
/* Links */
|
/* Links */
|
||||||
.link-primary {
|
.link-primary {
|
||||||
@apply text-primary underline;
|
@apply text-accent;
|
||||||
@apply font-medium;
|
@apply font-medium;
|
||||||
@apply transition-colors duration-300;
|
@apply transition-colors duration-300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-primary:hover {
|
.link-primary:hover {
|
||||||
@apply text-primary-light;
|
@apply brightness-125;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-accent {
|
.link-accent {
|
||||||
@apply text-accent underline;
|
@apply text-accent;
|
||||||
@apply font-medium;
|
@apply font-medium;
|
||||||
@apply transition-colors duration-300;
|
@apply transition-colors duration-300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-accent:hover {
|
.link-accent:hover {
|
||||||
@apply text-accent-hover;
|
@apply brightness-125;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Header & Footer */
|
/* Header & Footer */
|
||||||
|
|||||||
@@ -90,6 +90,17 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Font Family
|
||||||
|
fontFamily: {
|
||||||
|
sans: [
|
||||||
|
'Roboto',
|
||||||
|
'system-ui',
|
||||||
|
'-apple-system',
|
||||||
|
'BlinkMacSystemFont',
|
||||||
|
'sans-serif',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
|
||||||
// Font Sizes (Mobile-First with responsive variants)
|
// Font Sizes (Mobile-First with responsive variants)
|
||||||
fontSize: {
|
fontSize: {
|
||||||
// H1
|
// H1
|
||||||
|
|||||||
Reference in New Issue
Block a user