feat(git): initial commit,
This commit is contained in:
+235
@@ -0,0 +1,235 @@
|
||||
/*
|
||||
* Remigración.es — estilos base para la versión React del sitio.
|
||||
* Color de acento (#bd4a2a) tomado del HTML original, donde aparece
|
||||
* embebido en los <span style="color: #bd4a2a"> del contenido de Elementor.
|
||||
*/
|
||||
|
||||
:root {
|
||||
--color-bg: #ffffff;
|
||||
--color-bg-alt: #f2ede6;
|
||||
--color-bg-dark: #1a1a1a;
|
||||
--color-text: #1f1f1f;
|
||||
--color-text-dim: #555;
|
||||
--color-accent: #bd4a2a;
|
||||
--color-accent-dark: #8a3419;
|
||||
--font-display: "Playfair Display", Georgia, serif;
|
||||
--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
--max-width: 1100px;
|
||||
}
|
||||
|
||||
/* Reset mínimo */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text);
|
||||
font-family: var(--font-body);
|
||||
line-height: 1.6;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* ------- Navbar ------- */
|
||||
.nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: saturate(180%) blur(10px);
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.nav-inner {
|
||||
max-width: var(--max-width);
|
||||
margin: 0 auto;
|
||||
padding: 0.9rem 1.25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
.brand {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
font-size: 1.25rem;
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.brand:hover {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
.nav-links {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
gap: 1.25rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.nav-links a {
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
.nav-links a:hover {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
/* ------- Secciones ------- */
|
||||
.section {
|
||||
padding: 5rem 1.25rem;
|
||||
}
|
||||
.section-inner {
|
||||
max-width: var(--max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.section--default {
|
||||
background: var(--color-bg);
|
||||
}
|
||||
.section--alt {
|
||||
background: var(--color-bg-alt);
|
||||
}
|
||||
.section--hero {
|
||||
background: linear-gradient(180deg, #14110f 0%, #2a1f18 100%);
|
||||
color: #fff;
|
||||
padding: 7rem 1.25rem 6rem;
|
||||
text-align: center;
|
||||
}
|
||||
.section--hero .section-heading,
|
||||
.section--hero .section-paragraph {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
margin: 0 0 1rem;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.section-heading--h1 {
|
||||
font-size: clamp(2.2rem, 5vw, 3.8rem);
|
||||
}
|
||||
.section-heading--h2 {
|
||||
font-size: clamp(1.8rem, 4vw, 2.8rem);
|
||||
}
|
||||
.section-heading--h3 {
|
||||
font-size: clamp(1.4rem, 3vw, 2rem);
|
||||
}
|
||||
.section-heading--h4,
|
||||
.section-heading--h5,
|
||||
.section-heading--h6 {
|
||||
font-size: 1.15rem;
|
||||
}
|
||||
|
||||
.section-paragraph {
|
||||
font-size: 1.05rem;
|
||||
margin: 0 0 1.25rem;
|
||||
color: var(--color-text);
|
||||
}
|
||||
.section--hero .section-paragraph {
|
||||
max-width: 750px;
|
||||
margin-inline: auto;
|
||||
font-size: 1.15rem;
|
||||
opacity: 0.92;
|
||||
}
|
||||
.section-paragraph p {
|
||||
margin: 0 0 1em;
|
||||
}
|
||||
.section-paragraph strong {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
/* Respetar el <span style="color: #bd4a2a"> que viene del HTML original */
|
||||
.section-paragraph span[style*='bd4a2a'],
|
||||
.section-heading span[style*='bd4a2a'] {
|
||||
color: var(--color-accent) !important;
|
||||
}
|
||||
|
||||
.section-figure {
|
||||
margin: 2rem 0;
|
||||
}
|
||||
.section-figure img {
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
.section-list {
|
||||
padding-left: 1.2rem;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
.section-list li {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
/* ------- Footer ------- */
|
||||
.site-footer {
|
||||
background: var(--color-bg-dark);
|
||||
color: #d8d6d4;
|
||||
padding: 3rem 1.25rem;
|
||||
}
|
||||
.site-footer-inner {
|
||||
max-width: var(--max-width);
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
.site-footer-brand {
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.25rem;
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
}
|
||||
.site-footer-copy {
|
||||
margin: 0;
|
||||
font-size: 0.9rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
.site-footer-links {
|
||||
list-style: none;
|
||||
margin: 0.5rem 0 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
.site-footer-links a {
|
||||
color: #d8d6d4;
|
||||
text-decoration: none;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.site-footer-links a:hover {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
/* ------- Responsive ------- */
|
||||
@media (max-width: 640px) {
|
||||
.nav-inner {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
.nav-links {
|
||||
font-size: 0.85rem;
|
||||
gap: 0.9rem;
|
||||
}
|
||||
.section {
|
||||
padding: 3.5rem 1rem;
|
||||
}
|
||||
.section--hero {
|
||||
padding: 4.5rem 1rem 4rem;
|
||||
}
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
import Navbar from './components/Navbar'
|
||||
import Section from './components/Section'
|
||||
import Footer from './components/Footer'
|
||||
import siteData from './content/site.json'
|
||||
import './App.css'
|
||||
|
||||
// Variantes visuales por anchor para romper la monotonía
|
||||
const VARIANTS = {
|
||||
'first-section': 'hero',
|
||||
significa: 'default',
|
||||
'inmigración_masiva': 'alt',
|
||||
detener_el_reemplazo_poblacional: 'default',
|
||||
que_podemoshacer: 'alt',
|
||||
precedentes_historicos: 'default',
|
||||
contacto: 'hero',
|
||||
}
|
||||
|
||||
// Orden en que aparecen en la página — coincide con el orden del menú
|
||||
const SECTION_ORDER = [
|
||||
'first-section',
|
||||
'significa',
|
||||
'inmigración_masiva',
|
||||
'detener_el_reemplazo_poblacional',
|
||||
'que_podemoshacer',
|
||||
'precedentes_historicos',
|
||||
'contacto',
|
||||
]
|
||||
|
||||
function App() {
|
||||
const byAnchor = Object.fromEntries(
|
||||
siteData.sections.map((s) => [s.anchor, s])
|
||||
)
|
||||
|
||||
return (
|
||||
<>
|
||||
<Navbar />
|
||||
<main>
|
||||
{SECTION_ORDER.map((anchor) => {
|
||||
const s = byAnchor[anchor]
|
||||
if (!s) return null
|
||||
return (
|
||||
<Section
|
||||
key={anchor}
|
||||
section={s}
|
||||
variant={VARIANTS[anchor] || 'default'}
|
||||
/>
|
||||
)
|
||||
})}
|
||||
</main>
|
||||
<Footer />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default App
|
||||
@@ -0,0 +1,23 @@
|
||||
import siteData from '../content/site.json'
|
||||
|
||||
export default function Footer() {
|
||||
const { site } = siteData
|
||||
return (
|
||||
<footer className="site-footer" id="contacto-footer">
|
||||
<div className="site-footer-inner">
|
||||
<p className="site-footer-brand">{site.name}</p>
|
||||
<p className="site-footer-copy">
|
||||
{site.description} — Todos los derechos reservados
|
||||
</p>
|
||||
<ul className="site-footer-links">
|
||||
<li>
|
||||
<a href="/informacion-sobre-las-cookies">Cookies</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/aviso-legal-y-proteccion-de-datos">Aviso legal</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import siteData from '../content/site.json'
|
||||
|
||||
export default function Navbar() {
|
||||
const { site, menu } = siteData
|
||||
return (
|
||||
<nav className="nav">
|
||||
<div className="nav-inner">
|
||||
<a href="#first-section" className="brand">
|
||||
{site.name}
|
||||
</a>
|
||||
<ul className="nav-links">
|
||||
{menu.map((item) => (
|
||||
<li key={item.order}>
|
||||
<a href={item.url}>{item.title}</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Renderiza una sección del JSON extraído del export de Elementor.
|
||||
*
|
||||
* Los campos `html` contienen HTML tal cual lo guardaba Elementor (con <br>,
|
||||
* <span style="color: #bd4a2a">…</span>, etc.). Lo inyectamos con
|
||||
* dangerouslySetInnerHTML porque son datos nuestros ya saneados en origen.
|
||||
*/
|
||||
export default function Section({ section, variant = 'default' }) {
|
||||
const { anchor, headings, paragraphs, images, lists } = section
|
||||
|
||||
return (
|
||||
<section id={anchor} className={`section section--${variant}`}>
|
||||
<div className="section-inner">
|
||||
{headings.slice(0, 2).map((h, i) => {
|
||||
const Tag = (h.level || 'h2').toLowerCase()
|
||||
return (
|
||||
<Tag
|
||||
key={`h-${i}`}
|
||||
className={`section-heading section-heading--${Tag}`}
|
||||
dangerouslySetInnerHTML={{ __html: h.html }}
|
||||
/>
|
||||
)
|
||||
})}
|
||||
|
||||
{images.slice(0, 1).map((img, i) => (
|
||||
<figure key={`img-${i}`} className="section-figure">
|
||||
<img src={img.url} alt={img.alt || ''} loading="lazy" />
|
||||
</figure>
|
||||
))}
|
||||
|
||||
{paragraphs.slice(0, 5).map((p, i) => (
|
||||
<div
|
||||
key={`p-${i}`}
|
||||
className="section-paragraph"
|
||||
dangerouslySetInnerHTML={{ __html: p }}
|
||||
/>
|
||||
))}
|
||||
|
||||
{lists.length > 0 && (
|
||||
<div className="section-lists">
|
||||
{lists.map((l, i) => (
|
||||
<ul key={`l-${i}`} className="section-list">
|
||||
{l.map((item, j) => (
|
||||
<li
|
||||
key={j}
|
||||
dangerouslySetInnerHTML={{ __html: item }}
|
||||
/>
|
||||
))}
|
||||
</ul>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
http://remigracion.es/wp-content/uploads/2025/10/f.elconfidencial.com_original_f8e_780_24a_f8e78024ab9c646d096e6ac8c2f8e503.jpg
|
||||
http://remigracion.es/wp-content/uploads/2025/11/question-2.png
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Imagen2.png
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-1-e1769969819361.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-11.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-15.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-18.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-20.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-22.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-23.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-24.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-29.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-3-e1769970459949.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-30.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-31.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-4-e1769970494226.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-5-e1769970526297.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/Sin-titulo-50.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/placeholder-10.png
|
||||
http://remigracion.es/wp-content/uploads/2026/02/placeholder-11.png
|
||||
http://remigracion.es/wp-content/uploads/2026/02/placeholder-8.png
|
||||
http://remigracion.es/wp-content/uploads/2026/02/placeholder-9.png
|
||||
http://remigracion.es/wp-content/uploads/2026/02/remigracion.jpg
|
||||
http://remigracion.es/wp-content/uploads/2026/02/titular-final-.png_0000_Sin-titulo-7.png
|
||||
http://remigracion.es/wp-content/uploads/2026/02/titular-final-.png_0001_Sin-titulo-6.png
|
||||
http://remigracion.es/wp-content/uploads/2026/02/z-9.jpg
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,27 @@
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Oxygen,
|
||||
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
color: #1f1f1f;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
#root {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Anclas offset para no quedar debajo del navbar sticky */
|
||||
:target {
|
||||
scroll-margin-top: 80px;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import './index.css'
|
||||
import App from './App.jsx'
|
||||
|
||||
createRoot(document.getElementById('root')).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
Reference in New Issue
Block a user