Refactor project structure to use Vite with React, add Docker support, and implement Nginx for serving static files
This commit is contained in:
@@ -6,3 +6,6 @@ __pycache__/
|
|||||||
.gitignore
|
.gitignore
|
||||||
venv/
|
venv/
|
||||||
.venv/
|
.venv/
|
||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
.vite/
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -5,3 +5,6 @@ __pycache__/
|
|||||||
venv/
|
venv/
|
||||||
env/
|
env/
|
||||||
.env
|
.env
|
||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
.vite/
|
||||||
|
|||||||
22
Dockerfile
22
Dockerfile
@@ -1,17 +1,17 @@
|
|||||||
FROM python:3.12-slim
|
FROM node:20-alpine AS build
|
||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
||||||
PYTHONUNBUFFERED=1 \
|
|
||||||
FLASK_APP=app.py \
|
|
||||||
FLASK_RUN_HOST=0.0.0.0 \
|
|
||||||
FLASK_RUN_PORT=5000
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt ./
|
COPY package.json ./
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN npm install --no-audit --no-fund
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
EXPOSE 5000
|
FROM nginx:alpine
|
||||||
CMD ["flask", "run"]
|
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|||||||
@@ -2,10 +2,4 @@ services:
|
|||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "8080:80"
|
||||||
volumes:
|
|
||||||
- .:/app
|
|
||||||
environment:
|
|
||||||
- FLASK_ENV=development
|
|
||||||
- FLASK_DEBUG=1
|
|
||||||
- FLASK_RUN_HOST=0.0.0.0
|
|
||||||
|
|||||||
18
index.html
Normal file
18
index.html
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Camping Fénix | Misiones</title>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
|
<link
|
||||||
|
href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap"
|
||||||
|
rel="stylesheet"
|
||||||
|
/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
<script type="module" src="/src/main.jsx"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
16
nginx.conf
Normal file
16
nginx.conf
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name _;
|
||||||
|
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /assets/ {
|
||||||
|
expires 1y;
|
||||||
|
add_header Cache-Control "public, immutable";
|
||||||
|
}
|
||||||
|
}
|
||||||
19
package.json
Normal file
19
package.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"name": "camping-fenix",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.1.0",
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vite build",
|
||||||
|
"preview": "vite preview --host"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"react": "^18.2.0",
|
||||||
|
"react-dom": "^18.2.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vitejs/plugin-react": "^4.2.1",
|
||||||
|
"vite": "^5.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
211
src/App.jsx
Normal file
211
src/App.jsx
Normal file
@@ -0,0 +1,211 @@
|
|||||||
|
const HERO_FEATURES = ['WiFi Satelital', 'Arroyo Natural', 'Parrillas', 'Pet Friendly']
|
||||||
|
|
||||||
|
const FEATURES = [
|
||||||
|
'WiFi en todo el camping',
|
||||||
|
'Arroyo dentro de la propiedad',
|
||||||
|
'Parrillas listas para usar',
|
||||||
|
'Cantina y proveeduría'
|
||||||
|
]
|
||||||
|
|
||||||
|
const GALLERY_ITEMS = [
|
||||||
|
{
|
||||||
|
title: 'Río y vegetación',
|
||||||
|
description: 'Senderos junto al agua con sombra natural.',
|
||||||
|
image: 'https://placehold.co/800x600/2F4F4F/FFFFFF?text=Rio+y+Naturaleza'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Área de fogón',
|
||||||
|
description: 'Espacio amplio para compartir y cocinar al fuego.',
|
||||||
|
image: 'https://placehold.co/800x600/EAD7C3/2F4F4F?text=Area+de+Fogon'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Cabañas acogedoras',
|
||||||
|
description: 'Descanso cómodo rodeado de naturaleza.',
|
||||||
|
image: 'https://placehold.co/800x600/2F4F4F/FFFFFF?text=Cabanas'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Zona de acampe',
|
||||||
|
description: 'Amplios espacios verdes para instalar tu carpa.',
|
||||||
|
image: 'https://placehold.co/800x600/EAD7C3/2F4F4F?text=Zona+de+Acampe'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Parrillas equipadas',
|
||||||
|
description: 'Parrillas listas con todo lo necesario para cocinar.',
|
||||||
|
image: 'https://placehold.co/800x600/2F4F4F/FFFFFF?text=Parrillas'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Arroyo cristalino',
|
||||||
|
description: 'Agua fresca y clara dentro del predio para disfrutar.',
|
||||||
|
image: 'https://placehold.co/800x600/EAD7C3/2F4F4F?text=Arroyo'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Senderos naturales',
|
||||||
|
description: 'Caminos rodeados de vegetación para explorar.',
|
||||||
|
image: 'https://placehold.co/800x600/2F4F4F/FFFFFF?text=Senderos'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Área de descanso',
|
||||||
|
description: 'Espacios con sombra para relajarse y disfrutar.',
|
||||||
|
image: 'https://placehold.co/800x600/EAD7C3/2F4F4F?text=Descanso'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Vista panorámica',
|
||||||
|
description: 'Hermosos paisajes de la selva misionera.',
|
||||||
|
image: 'https://placehold.co/800x600/2F4F4F/FFFFFF?text=Vista+Panoramica'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
const MAP_EMBED_URL = 'https://www.google.com/maps?q=Fenix%20Camping%20Misiones&output=embed'
|
||||||
|
const MAP_LINK = 'https://maps.app.goo.gl/7LycqCiKgPXpbSUf8'
|
||||||
|
const WHATSAPP_NUMBER = '+543765253409'
|
||||||
|
const WHATSAPP_LINK = `https://wa.me/${WHATSAPP_NUMBER.replace('+', '')}`
|
||||||
|
|
||||||
|
function App() {
|
||||||
|
const year = new Date().getFullYear()
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<nav className="nav">
|
||||||
|
<div className="container nav-container">
|
||||||
|
<div className="logo">Camping Fénix</div>
|
||||||
|
<div className="nav-links">
|
||||||
|
<a className="nav-link" href="#servicios">
|
||||||
|
Servicios
|
||||||
|
</a>
|
||||||
|
<a className="nav-link" href="#galeria">
|
||||||
|
Galería
|
||||||
|
</a>
|
||||||
|
<a className="nav-link" href="#ubicacion">
|
||||||
|
Ubicación
|
||||||
|
</a>
|
||||||
|
<a className="nav-cta" href={WHATSAPP_LINK} target="_blank" rel="noopener noreferrer">
|
||||||
|
Reservar
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<header className="hero">
|
||||||
|
<div className="container hero-content">
|
||||||
|
<span className="eyebrow">Naturaleza en Misiones</span>
|
||||||
|
<h1>
|
||||||
|
Tu refugio para <br />reconectar con la calma.
|
||||||
|
</h1>
|
||||||
|
<p className="hero-subtitle">
|
||||||
|
Camping Fénix ofrece acceso directo al río, espacios verdes y todas las comodidades para una escapada
|
||||||
|
perfecta en la selva.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div className="hero-actions">
|
||||||
|
<a className="button primary" href="#galeria">
|
||||||
|
Ver Galería
|
||||||
|
</a>
|
||||||
|
<a className="button ghost" href={WHATSAPP_LINK} target="_blank" rel="noopener noreferrer">
|
||||||
|
Consultar disponibilidad
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="hero-features">
|
||||||
|
{HERO_FEATURES.map((feature) => (
|
||||||
|
<div className="feature-pill" key={feature}>
|
||||||
|
{feature}
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<section id="servicios" className="section services">
|
||||||
|
<div className="container">
|
||||||
|
<div className="section-header">
|
||||||
|
<span className="eyebrow">Comodidades</span>
|
||||||
|
<h2>Todo lo necesario</h2>
|
||||||
|
<p>Disfruta de la experiencia de acampar sin renunciar a la comodidad.</p>
|
||||||
|
</div>
|
||||||
|
<div className="features-grid">
|
||||||
|
{FEATURES.map((feature) => (
|
||||||
|
<div className="service-card" key={feature}>
|
||||||
|
<h3>{feature}</h3>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section id="galeria" className="section">
|
||||||
|
<div className="container">
|
||||||
|
<div className="section-header">
|
||||||
|
<span className="eyebrow">Galería</span>
|
||||||
|
<h2>Nuestros espacios</h2>
|
||||||
|
<p>Explora el camping antes de tu visita.</p>
|
||||||
|
</div>
|
||||||
|
<div className="gallery-grid">
|
||||||
|
{GALLERY_ITEMS.map((item) => (
|
||||||
|
<article className="gallery-item" key={item.title}>
|
||||||
|
<div className="gallery-image-wrapper">
|
||||||
|
<img src={item.image} alt={item.title} loading="lazy" />
|
||||||
|
</div>
|
||||||
|
<div className="gallery-content">
|
||||||
|
<h3>{item.title}</h3>
|
||||||
|
<p>{item.description}</p>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section id="ubicacion" className="section map-section">
|
||||||
|
<div className="container">
|
||||||
|
<div className="section-header">
|
||||||
|
<span className="eyebrow">Ubicación</span>
|
||||||
|
<h2>Cómo llegar</h2>
|
||||||
|
</div>
|
||||||
|
<div className="map-container">
|
||||||
|
<iframe
|
||||||
|
className="map-frame"
|
||||||
|
title="Mapa Camping Fénix"
|
||||||
|
src={MAP_EMBED_URL}
|
||||||
|
allowFullScreen
|
||||||
|
loading="lazy"
|
||||||
|
referrerPolicy="no-referrer-when-downgrade"
|
||||||
|
></iframe>
|
||||||
|
</div>
|
||||||
|
<div style={{ textAlign: 'center', marginTop: '2rem' }}>
|
||||||
|
<a className="button primary" href={MAP_LINK} target="_blank" rel="noopener noreferrer">
|
||||||
|
Abrir en Google Maps
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer className="footer">
|
||||||
|
<div className="container">
|
||||||
|
<div className="contact-box">
|
||||||
|
<h2>¿Listo para tu escapada?</h2>
|
||||||
|
<p style={{ color: 'rgba(255,255,255,0.8)', marginBottom: '2rem' }}>
|
||||||
|
Coordina tu visita o haz tu reserva directamente por WhatsApp.
|
||||||
|
</p>
|
||||||
|
<a
|
||||||
|
className="button"
|
||||||
|
style={{ background: 'white', color: 'var(--primary)', fontWeight: 700 }}
|
||||||
|
href={WHATSAPP_LINK}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
Chatear al {WHATSAPP_NUMBER}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="footer-bottom">
|
||||||
|
<p>© {year} Camping Fénix. Misiones, Argentina.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default App
|
||||||
10
src/main.jsx
Normal file
10
src/main.jsx
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import ReactDOM from 'react-dom/client'
|
||||||
|
import App from './App.jsx'
|
||||||
|
import './styles.css'
|
||||||
|
|
||||||
|
ReactDOM.createRoot(document.getElementById('root')).render(
|
||||||
|
<React.StrictMode>
|
||||||
|
<App />
|
||||||
|
</React.StrictMode>
|
||||||
|
)
|
||||||
468
src/styles.css
Normal file
468
src/styles.css
Normal file
@@ -0,0 +1,468 @@
|
|||||||
|
:root {
|
||||||
|
/* Color Palette - Green, Earth, Yellow */
|
||||||
|
--primary: #2F4F4F; /* Deep Forest Green */
|
||||||
|
--primary-hover: #264040;
|
||||||
|
--secondary: #EAD7C3; /* Earthy Sand/Beige */
|
||||||
|
--accent: #F4D35E; /* Muted Sun Yellow */
|
||||||
|
|
||||||
|
--bg-body: #FAFAF9; /* Off-white */
|
||||||
|
--bg-surface: #FFFFFF; /* Pure white for cards */
|
||||||
|
--bg-alt: #F2F0E9; /* Light earthy background for sections */
|
||||||
|
|
||||||
|
--text-main: #1A1C1B; /* Dark Grey/Green */
|
||||||
|
--text-muted: #5C5F5E; /* Muted Grey */
|
||||||
|
--text-light: #F9F9F9; /* Light text for dark backgrounds */
|
||||||
|
|
||||||
|
--border-light: rgba(47, 79, 79, 0.1);
|
||||||
|
|
||||||
|
/* Spacing & Layout */
|
||||||
|
--container-width: 1200px;
|
||||||
|
--header-height: 80px;
|
||||||
|
|
||||||
|
/* Effects */
|
||||||
|
--shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
|
||||||
|
--shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
|
||||||
|
--radius-sm: 8px;
|
||||||
|
--radius-md: 16px;
|
||||||
|
--radius-lg: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Reset & Base */
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: 'Manrope', sans-serif;
|
||||||
|
background-color: var(--bg-body);
|
||||||
|
color: var(--text-main);
|
||||||
|
line-height: 1.6;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Typography */
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1.2;
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: clamp(2.5rem, 5vw, 4rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: clamp(2rem, 4vw, 2.5rem);
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.eyebrow {
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
color: var(--accent); /* Yellow accent */
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Buttons */
|
||||||
|
.button {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0.75rem 1.5rem;
|
||||||
|
border-radius: var(--radius-sm);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button.primary {
|
||||||
|
background-color: var(--primary);
|
||||||
|
color: var(--text-light);
|
||||||
|
border: 2px solid var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button.primary:hover {
|
||||||
|
background-color: var(--primary-hover);
|
||||||
|
border-color: var(--primary-hover);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button.ghost {
|
||||||
|
background-color: transparent;
|
||||||
|
color: var(--primary);
|
||||||
|
border: 2px solid var(--border-light);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button.ghost:hover {
|
||||||
|
border-color: var(--primary);
|
||||||
|
background-color: var(--bg-surface);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button.full {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout Utilities */
|
||||||
|
.container {
|
||||||
|
max-width: var(--container-width);
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section {
|
||||||
|
padding: 5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navigation */
|
||||||
|
.nav {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: var(--header-height);
|
||||||
|
background: rgba(250, 250, 249, 0.95); /* matching bg-body */
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
z-index: 1000;
|
||||||
|
border-bottom: 1px solid var(--border-light);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
color: var(--primary);
|
||||||
|
letter-spacing: -0.03em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.nav-container {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links {
|
||||||
|
gap: 1rem;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero {
|
||||||
|
padding-top: calc(var(--header-height) + 8rem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link {
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
color: var(--text-main);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link:hover {
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-cta {
|
||||||
|
background-color: var(--accent);
|
||||||
|
color: var(--primary); /* Contrast on yellow */
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
border-radius: var(--radius-sm);
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-cta:hover {
|
||||||
|
background-color: #e3c048; /* darker yellow */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hero Section */
|
||||||
|
.hero {
|
||||||
|
padding-top: calc(var(--header-height) + 4rem);
|
||||||
|
padding-bottom: 6rem;
|
||||||
|
background-color: var(--bg-body);
|
||||||
|
text-align: center;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Abstract background shapes */
|
||||||
|
.hero::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: -10%;
|
||||||
|
right: -5%;
|
||||||
|
width: 40vw;
|
||||||
|
height: 40vw;
|
||||||
|
background: var(--secondary);
|
||||||
|
border-radius: 50%;
|
||||||
|
opacity: 0.3;
|
||||||
|
filter: blur(80px);
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10%;
|
||||||
|
left: -5%;
|
||||||
|
width: 30vw;
|
||||||
|
height: 30vw;
|
||||||
|
background: var(--accent);
|
||||||
|
border-radius: 50%;
|
||||||
|
opacity: 0.2;
|
||||||
|
filter: blur(80px);
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-content {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-subtitle {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 0 auto 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-features {
|
||||||
|
display: flex;
|
||||||
|
gap: 1.5rem;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-pill {
|
||||||
|
background: var(--bg-surface);
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
border-radius: 100px;
|
||||||
|
border: 1px solid var(--border-light);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
box-shadow: var(--shadow-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-pill::before {
|
||||||
|
content: '';
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Services Section */
|
||||||
|
.services {
|
||||||
|
background-color: var(--bg-alt);
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-header {
|
||||||
|
text-align: center;
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 0 auto 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.features-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.service-card {
|
||||||
|
background: var(--bg-surface);
|
||||||
|
padding: 2rem;
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
box-shadow: var(--shadow-soft);
|
||||||
|
border: 1px solid transparent;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.service-card:hover {
|
||||||
|
border-color: var(--secondary);
|
||||||
|
transform: translateY(-5px);
|
||||||
|
box-shadow: var(--shadow-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gallery Section */
|
||||||
|
.gallery-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-item {
|
||||||
|
background: var(--bg-surface);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
overflow: hidden;
|
||||||
|
box-shadow: var(--shadow-soft);
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-item:hover {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
box-shadow: var(--shadow-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-image-wrapper {
|
||||||
|
width: 100%;
|
||||||
|
height: 250px;
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: var(--secondary); /* placeholder color */
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-image-wrapper img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
transition: transform 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-item:hover .gallery-image-wrapper img {
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-content {
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gallery-content h3 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Map Section */
|
||||||
|
.map-section {
|
||||||
|
background-color: var(--bg-alt);
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-container {
|
||||||
|
background: var(--bg-surface);
|
||||||
|
padding: 1rem;
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
box-shadow: var(--shadow-soft);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-frame {
|
||||||
|
width: 100%;
|
||||||
|
height: 400px;
|
||||||
|
border: none;
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
filter: grayscale(0.2); /* mute the map slightly */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Contact/Footer */
|
||||||
|
.footer {
|
||||||
|
background-color: var(--primary);
|
||||||
|
color: var(--text-light);
|
||||||
|
padding: 4rem 0 2rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-box {
|
||||||
|
background-color: rgba(255, 255, 255, 0.05);
|
||||||
|
padding: 3rem;
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 0 auto 3rem;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-box h2 {
|
||||||
|
color: var(--text-light);
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-bottom {
|
||||||
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
padding-top: 2rem;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: rgba(255, 255, 255, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Utilities */
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
h1 {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
.hero-actions {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.button {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
10
vite.config.js
Normal file
10
vite.config.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { defineConfig } from 'vite'
|
||||||
|
import react from '@vitejs/plugin-react'
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [react()],
|
||||||
|
server: {
|
||||||
|
host: true,
|
||||||
|
port: 5173
|
||||||
|
}
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user