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:
@@ -1,13 +1,12 @@
|
||||
---
|
||||
// Homepage with Header component import
|
||||
import Header from '../components/Header.astro';
|
||||
// Standalone homepage with no external dependencies
|
||||
---
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<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" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
@@ -26,7 +25,91 @@ import Header from '../components/Header.astro';
|
||||
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 {
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: 8px;
|
||||
@@ -61,9 +144,9 @@ import Header from '../components/Header.astro';
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
/* Main Content - adjust for imported Header */
|
||||
/* Main Content */
|
||||
.main-content {
|
||||
padding-top: 6rem; /* Account for Header component height */
|
||||
padding-top: 5rem;
|
||||
}
|
||||
|
||||
/* Hero Section */
|
||||
@@ -453,9 +536,17 @@ import Header from '../components/Header.astro';
|
||||
.about-grid {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
@@ -476,7 +567,30 @@ import Header from '../components/Header.astro';
|
||||
</head>
|
||||
<body>
|
||||
<!-- 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 class="main-content">
|
||||
@@ -489,7 +603,7 @@ import Header from '../components/Header.astro';
|
||||
<div class="hero-content">
|
||||
<h1 class="hero-title">
|
||||
<span class="hero-title-shine">Welcome to<br/>
|
||||
Omoluabi Foundation</span>
|
||||
Omoluabi Association</span>
|
||||
</h1>
|
||||
|
||||
<p class="hero-subtitle">
|
||||
@@ -525,7 +639,6 @@ import Header from '../components/Header.astro';
|
||||
<div class="about-image-container">
|
||||
<img src="/images/whoAreWe.webp" alt="About Omoluabi Association" />
|
||||
</div>
|
||||
<div class="about-badge">Est. 2018</div>
|
||||
</div>
|
||||
|
||||
<div class="about-content">
|
||||
@@ -947,6 +1060,7 @@ import Header from '../components/Header.astro';
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<!-- Gallery Section -->
|
||||
<section class="section" style="background: linear-gradient(135deg, #f9fafb 0%, #f0fdf4 100%);">
|
||||
@@ -1272,7 +1386,7 @@ import Header from '../components/Header.astro';
|
||||
<!-- Footer -->
|
||||
<footer class="footer">
|
||||
<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>
|
||||
|
||||
<nav class="footer-nav">
|
||||
@@ -1283,7 +1397,7 @@ import Header from '../components/Header.astro';
|
||||
</nav>
|
||||
|
||||
<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;">
|
||||
"Omoluabi ni wa" - We are people of good character
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user