Update Astro configuration for SSR support and refactor homepage layout. Added server adapter and standalone mode. Replaced Header component with a custom header, updated page titles, and improved styling for navigation and footer.
This commit is contained in:
@@ -2,14 +2,22 @@
|
|||||||
import { defineConfig } from 'astro/config';
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
import tailwindcss from '@tailwindcss/vite';
|
import tailwindcss from '@tailwindcss/vite';
|
||||||
|
|
||||||
import react from '@astrojs/react';
|
import react from '@astrojs/react';
|
||||||
|
import node from '@astrojs/node'; // ✅ Required for SSR build
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
output: 'server', // ✅ Use server mode to generate dist/server/entry.mjs
|
||||||
|
|
||||||
|
adapter: node({
|
||||||
|
mode: 'standalone', // ✅ Ensures entry.mjs includes everything needed
|
||||||
|
}),
|
||||||
|
|
||||||
|
integrations: [
|
||||||
|
react()
|
||||||
|
],
|
||||||
|
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()]
|
plugins: [tailwindcss()]
|
||||||
},
|
}
|
||||||
|
|
||||||
integrations: [react()]
|
|
||||||
});
|
});
|
@@ -1,13 +1,12 @@
|
|||||||
---
|
---
|
||||||
// Homepage with Header component import
|
// Standalone homepage with no external dependencies
|
||||||
import Header from '../components/Header.astro';
|
|
||||||
---
|
---
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Omoluabi Foundation</title>
|
<title>Omoluabi Association</title>
|
||||||
<meta name="description" content="Supporting Nigerians in the Netherlands" />
|
<meta name="description" content="Supporting Nigerians in the Netherlands" />
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
@@ -26,7 +25,91 @@ import Header from '../components/Header.astro';
|
|||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Keep button styles for content areas */
|
/* Header Styles */
|
||||||
|
.header {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 50;
|
||||||
|
background: rgba(255, 255, 255, 0.95);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
border-bottom: 1px solid rgba(229, 229, 229, 0.5);
|
||||||
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-content {
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-icon {
|
||||||
|
width: 3rem;
|
||||||
|
height: 3rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: linear-gradient(45deg, #16a34a, #f59e0b);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: white;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-icon::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: -2px;
|
||||||
|
right: -2px;
|
||||||
|
width: 1rem;
|
||||||
|
height: 1rem;
|
||||||
|
background: #f59e0b;
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: pulse 2s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-text {
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 700;
|
||||||
|
background: linear-gradient(45deg, #16a34a, #f59e0b);
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #374151;
|
||||||
|
font-weight: 500;
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
border-radius: 8px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link:hover {
|
||||||
|
color: #16a34a;
|
||||||
|
background: rgba(22, 163, 74, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
padding: 0.75rem 1.5rem;
|
padding: 0.75rem 1.5rem;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
@@ -61,9 +144,9 @@ import Header from '../components/Header.astro';
|
|||||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Main Content - adjust for imported Header */
|
/* Main Content */
|
||||||
.main-content {
|
.main-content {
|
||||||
padding-top: 6rem; /* Account for Header component height */
|
padding-top: 5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hero Section */
|
/* Hero Section */
|
||||||
@@ -453,9 +536,17 @@ import Header from '../components/Header.astro';
|
|||||||
.about-grid {
|
.about-grid {
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
|
.nav {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.hero-title {
|
.hero-title {
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
}
|
}
|
||||||
@@ -476,7 +567,30 @@ import Header from '../components/Header.astro';
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<Header />
|
<header class="header">
|
||||||
|
<div class="header-content">
|
||||||
|
<a href="/" class="logo">
|
||||||
|
<div class="logo-icon">O</div>
|
||||||
|
<div>
|
||||||
|
<div class="logo-text">Omoluabi</div>
|
||||||
|
<div style="font-size: 0.875rem; color: #6b7280; margin-top: -0.25rem;">Association</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<nav class="nav">
|
||||||
|
<a href="/" class="nav-link">Home</a>
|
||||||
|
<a href="/events" class="nav-link">Events</a>
|
||||||
|
<a href="/members" class="nav-link">Members</a>
|
||||||
|
<a href="/orphanage" class="nav-link">Orphanage</a>
|
||||||
|
<a href="/contact" class="nav-link">Contact</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div style="display: flex; gap: 0.5rem;">
|
||||||
|
<a href="/donate" class="btn btn-secondary">❤️ Donate</a>
|
||||||
|
<a href="/join" class="btn btn-primary">👥 Join</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
<!-- Main Content -->
|
<!-- Main Content -->
|
||||||
<main class="main-content">
|
<main class="main-content">
|
||||||
@@ -489,7 +603,7 @@ import Header from '../components/Header.astro';
|
|||||||
<div class="hero-content">
|
<div class="hero-content">
|
||||||
<h1 class="hero-title">
|
<h1 class="hero-title">
|
||||||
<span class="hero-title-shine">Welcome to<br/>
|
<span class="hero-title-shine">Welcome to<br/>
|
||||||
Omoluabi Foundation</span>
|
Omoluabi Association</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p class="hero-subtitle">
|
<p class="hero-subtitle">
|
||||||
@@ -525,7 +639,6 @@ import Header from '../components/Header.astro';
|
|||||||
<div class="about-image-container">
|
<div class="about-image-container">
|
||||||
<img src="/images/whoAreWe.webp" alt="About Omoluabi Association" />
|
<img src="/images/whoAreWe.webp" alt="About Omoluabi Association" />
|
||||||
</div>
|
</div>
|
||||||
<div class="about-badge">Est. 2018</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="about-content">
|
<div class="about-content">
|
||||||
@@ -947,6 +1060,7 @@ import Header from '../components/Header.astro';
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
</section>
|
||||||
|
|
||||||
<!-- Gallery Section -->
|
<!-- Gallery Section -->
|
||||||
<section class="section" style="background: linear-gradient(135deg, #f9fafb 0%, #f0fdf4 100%);">
|
<section class="section" style="background: linear-gradient(135deg, #f9fafb 0%, #f0fdf4 100%);">
|
||||||
@@ -1272,7 +1386,7 @@ import Header from '../components/Header.astro';
|
|||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="footer-content">
|
<div class="footer-content">
|
||||||
<div class="footer-logo">Omoluabi Foundation</div>
|
<div class="footer-logo">Omoluabi Association</div>
|
||||||
<p class="footer-text">Supporting Nigerians in the Netherlands with unity, heritage, and hope</p>
|
<p class="footer-text">Supporting Nigerians in the Netherlands with unity, heritage, and hope</p>
|
||||||
|
|
||||||
<nav class="footer-nav">
|
<nav class="footer-nav">
|
||||||
@@ -1283,7 +1397,7 @@ import Header from '../components/Header.astro';
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="footer-bottom">
|
<div class="footer-bottom">
|
||||||
<p>© 2024 Omoluabi Foundation Netherlands. Made with ❤️ for the Nigerian community.</p>
|
<p>© 2024 Omoluabi Association Netherlands. Made with ❤️ for the Nigerian community.</p>
|
||||||
<p style="font-style: italic; margin-top: 1rem; color: #9ca3af;">
|
<p style="font-style: italic; margin-top: 1rem; color: #9ca3af;">
|
||||||
"Omoluabi ni wa" - We are people of good character
|
"Omoluabi ni wa" - We are people of good character
|
||||||
</p>
|
</p>
|
||||||
|
344
src/styles/main.css
Normal file
344
src/styles/main.css
Normal file
@@ -0,0 +1,344 @@
|
|||||||
|
/* Custom CSS for Omoluabi Foundation */
|
||||||
|
|
||||||
|
/* Hero Section Background Pattern */
|
||||||
|
.hero-pattern {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hero Title Shine Animation */
|
||||||
|
.hero-title-shine {
|
||||||
|
background: linear-gradient(
|
||||||
|
90deg,
|
||||||
|
#ffffff,
|
||||||
|
#e0e7ff,
|
||||||
|
#8b5cf6,
|
||||||
|
#e0e7ff,
|
||||||
|
#ffffff
|
||||||
|
);
|
||||||
|
background-size: 300% auto;
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
animation: textShine 4s linear infinite;
|
||||||
|
text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Animations */
|
||||||
|
@keyframes textShine {
|
||||||
|
0% {
|
||||||
|
background-position: -200% center;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
background-position: 200% center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes float {
|
||||||
|
0%, 100% {
|
||||||
|
transform: translateY(0px);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: translateY(-10px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes bounceGentle {
|
||||||
|
0%, 20%, 53%, 80%, 100% {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
40%, 43% {
|
||||||
|
transform: translateY(-10px);
|
||||||
|
}
|
||||||
|
70% {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
}
|
||||||
|
90% {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse {
|
||||||
|
0%, 100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Floating Elements */
|
||||||
|
.floating-element {
|
||||||
|
animation: float 6s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-element:nth-child(2) {
|
||||||
|
animation-delay: 1s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-element:nth-child(3) {
|
||||||
|
animation-delay: 2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header Adjustments for Mobile */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.hero-section {
|
||||||
|
padding-top: 6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-title-shine {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Scrollbar */
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: #f1f1f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: linear-gradient(to bottom, #16a34a, #f59e0b);
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: linear-gradient(to bottom, #15803d, #d97706);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Focus States for Accessibility */
|
||||||
|
.focus-ring:focus {
|
||||||
|
outline: 2px solid #16a34a;
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Smooth Scrolling */
|
||||||
|
html {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Print Styles */
|
||||||
|
@media print {
|
||||||
|
.floating-element,
|
||||||
|
.hero-pattern {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-section {
|
||||||
|
background: #16a34a !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-title-shine {
|
||||||
|
-webkit-text-fill-color: white !important;
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* High Contrast Mode Support */
|
||||||
|
@media (prefers-contrast: high) {
|
||||||
|
.hero-title-shine {
|
||||||
|
-webkit-text-fill-color: white;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-gray-600 {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-gray-400 {
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Reduced Motion Support */
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.hero-title-shine {
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-element {
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.animate-bounce-gentle {
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.animate-float {
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
transition-duration: 0.01ms !important;
|
||||||
|
animation-duration: 0.01ms !important;
|
||||||
|
animation-iteration-count: 1 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Utilities */
|
||||||
|
.text-shadow-lg {
|
||||||
|
text-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.backdrop-blur-xs {
|
||||||
|
backdrop-filter: blur(2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Loading States */
|
||||||
|
.loading-shimmer {
|
||||||
|
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
|
||||||
|
background-size: 200% 100%;
|
||||||
|
animation: shimmer 1.5s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes shimmer {
|
||||||
|
0% {
|
||||||
|
background-position: -200% 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
background-position: 200% 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Interactive Elements */
|
||||||
|
.interactive-glow:hover {
|
||||||
|
box-shadow: 0 0 20px rgba(22, 163, 74, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.interactive-glow:focus {
|
||||||
|
box-shadow: 0 0 20px rgba(22, 163, 74, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Nigerian Flag Colors */
|
||||||
|
.nigerian-gradient {
|
||||||
|
background: linear-gradient(90deg, #16a34a 0%, #ffffff 50%, #16a34a 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Kente Pattern Inspired Background */
|
||||||
|
.kente-pattern {
|
||||||
|
background-image:
|
||||||
|
repeating-linear-gradient(
|
||||||
|
45deg,
|
||||||
|
#f59e0b 0px,
|
||||||
|
#f59e0b 10px,
|
||||||
|
#dc2626 10px,
|
||||||
|
#dc2626 20px,
|
||||||
|
#16a34a 20px,
|
||||||
|
#16a34a 30px
|
||||||
|
);
|
||||||
|
opacity: 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gallery Hover Effects */
|
||||||
|
.gallery-item {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-item::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(
|
||||||
|
90deg,
|
||||||
|
transparent,
|
||||||
|
rgba(255, 255, 255, 0.4),
|
||||||
|
transparent
|
||||||
|
);
|
||||||
|
transition: left 0.5s;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-item:hover::before {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Button Styles */
|
||||||
|
.btn-nigerian {
|
||||||
|
background: linear-gradient(135deg, #16a34a 0%, #f59e0b 50%, #dc2626 100%);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 0.75rem 1.5rem;
|
||||||
|
border-radius: 0.75rem;
|
||||||
|
font-weight: 600;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-nigerian::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(135deg, #15803d 0%, #d97706 50%, #b91c1c 100%);
|
||||||
|
transition: left 0.3s ease;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-nigerian:hover::before {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-nigerian:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Section Transitions */
|
||||||
|
.section-enter {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(30px);
|
||||||
|
transition: all 0.6s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-enter.visible {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mobile Optimizations */
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.hero-content {
|
||||||
|
padding: 0 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-title-shine {
|
||||||
|
font-size: 2rem;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-element {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-item {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dark Mode Support (if needed) */
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
.bg-white {
|
||||||
|
background-color: #1f2937;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-gray-900 {
|
||||||
|
color: #f9fafb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-gray-600 {
|
||||||
|
color: #d1d5db;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-gray-400 {
|
||||||
|
color: #9ca3af;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user