This commit is contained in:
Cat /dev/Nulo 2023-07-30 22:20:01 -03:00
parent 811445a6d0
commit 36187c9620

View file

@ -41,209 +41,214 @@ export async function render(data) {
); );
const CuadradoDatos = await loadSvg("src/assets/cuadrados/datos.svg"); const CuadradoDatos = await loadSvg("src/assets/cuadrados/datos.svg");
const CuadradoEscuelas = await loadSvg("src/assets/cuadrados/escuelas.svg"); const CuadradoEscuelas = await loadSvg("src/assets/cuadrados/escuelas.svg");
//TODO: doctype
return ( return (
<html lang="es"> "<!doctype html>" +
<head> (
<meta charset="utf-8" /> <html lang="es">
<meta <head>
name="viewport" <meta charset="utf-8" />
content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover" <meta
/> name="viewport"
{/* TODO: SEO */} content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover"
<title>Alfadatizar</title> />
<style dangerouslySetInnerHTML={{ __html: css }}></style> {/* TODO: SEO */}
</head> <title>Alfadatizar</title>
<body class="flex flex-col font-sans"> <style dangerouslySetInnerHTML={{ __html: css }}></style>
<div class="flex min-h-screen w-full flex-col items-stretch"> </head>
<nav class="w-full bg-blanco px-16 py-4"> <body class="flex flex-col font-sans">
<LogoInline class="h-12" /> <div class="flex min-h-screen w-full flex-col items-stretch">
</nav> <nav class="w-full bg-blanco px-16 py-4">
<section class="grid flex-1 grid-cols-1 md:grid-cols-2"> <LogoInline class="h-12" />
<div class="flex min-h-[40vh] items-center justify-center bg-naranja p-[15%]"> </nav>
<LogoGrande containerClass="flex-1 min-w-[25vw]" class="w-100" /> <section class="grid flex-1 grid-cols-1 md:grid-cols-2">
<div class="flex min-h-[40vh] items-center justify-center bg-naranja p-[15%]">
<LogoGrande
containerClass="flex-1 min-w-[25vw]"
class="w-100"
/>
</div>
<div class="flex flex-col bg-celeste px-[20%] py-[20%]">
<IconosLanding class="w-3xl min-w-[20vw] md:max-w-[50%]" />
<h2 class="my-[20%] text-[5vmax] leading-none md:my-[10%] md:text-[5vmin]">
Hackeamos
<br />
la educación
<br />
digital
<br />
<strong>equitativa</strong>
</h2>
<Wave class="mt-4 w-32" />
</div>
</section>
</div>
<section class="min-h-screen bg-blanco">
<WobbleVioleta />
<div class="mx-auto w-full max-w-[12rem] pt-8">
<CaritasFelices />
</div> </div>
<div class="flex flex-col bg-celeste px-[20%] py-[20%]"> <div class="p-[10%] py-16">
<IconosLanding class="w-3xl min-w-[20vw] md:max-w-[50%]" /> <h2 class="flex items-center justify-center gap-4 pb-8 text-5xl font-bold leading-none">
<h2 class="my-[20%] text-[5vmax] leading-none md:my-[10%] md:text-[5vmin]"> <Estrellita class="h-[1em] w-[1em] shrink-0" />{" "}
Hackeamos <span class="text-center">Nuevos saberes</span>{" "}
<br /> <Estrellita class="h-[1em] w-[1em] shrink-0" />
la educación
<br />
digital
<br />
<strong>equitativa</strong>
</h2> </h2>
<Wave class="mt-4 w-32" /> <div class="grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-4">
{data.frontpageNuevosSaberes.map(
({ número, título, content }) => (
<div class="flex-1 border-l border-current px-6 py-6">
<h3 class="pb-4 text-2xl italic">{número}</h3>
<h3 class="pb-4 text-2xl font-bold">{título}</h3>
<p>{content}</p>
</div>
)
)}
</div>
<div class="mt-8 flex items-center justify-between">
<Circulo class="h-6" />
<div class="relative">
<Cruces class="h-8" />
<Cruces class="absolute top-0 h-8 -scale-y-100" />
</div>
<Circulo class="h-6" />
</div>
</div> </div>
</section> </section>
</div> <section class="bg-blanco">
<section class="min-h-screen bg-blanco"> <div class="mx-auto max-w-5xl p-2">
<WobbleVioleta /> <div class="mb-4 flex justify-center gap-4">
<div class="mx-auto w-full max-w-[12rem] pt-8"> <img
<CaritasFelices /> class="aspect-[1.3] w-1/2"
</div> src="assets/img/imagen_naranja.webp"
<div class="p-[10%] py-16"> />
<h2 class="flex items-center justify-center gap-4 pb-8 text-5xl font-bold leading-none"> <img
<Estrellita class="h-[1em] w-[1em] shrink-0" />{" "} class="aspect-[1.3] w-1/2"
<span class="text-center">Nuevos saberes</span>{" "} src="assets/img/imagen_violeta.webp"
<Estrellita class="h-[1em] w-[1em] shrink-0" /> />
</h2> </div>
<div class="grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-4"> <div class="flex items-center gap-4">
{data.frontpageNuevosSaberes.map( <Wave
({ número, título, content }) => ( containerClass="mx-8 shrink-[2] max-w-[10vw]"
<div class="flex-1 border-l border-current px-6 py-6"> class="w-full"
<h3 class="pb-4 text-2xl italic">{número}</h3> />
<h3 class="pb-4 text-2xl font-bold">{título}</h3> <img
<p>{content}</p> class="mx-auto aspect-[1.94] w-8/12 flex-auto object-contain"
</div> src="assets/img/imagen_celeste.webp"
) />
<Wave
containerClass="mx-8 shrink-[2] max-w-[10vw]"
class="w-full"
/>
</div>
</div>
<VinculosPuntos class="m-16 mx-auto h-16" />
</section>
<section class="flex place-content-center bg-blanco">
<div class="grid grid-cols-1 place-content-center xl:grid-cols-2">
{Object.entries(data.frontpageCuadrados).map(
([color, { título, content }]) => {
// ¿por qué así en vez de `bg-${color}`? para que lo detecte tailwind.
const classes = {
celeste: "bg-celeste",
amarillo: "bg-amarillo lg:order-last xl:order-none",
naranja: "bg-naranja xl:order-last",
violeta: "bg-violeta lg:order-last",
};
const iconos = {
celeste: <CuadradoAlfabetizaciones class="w-32" />,
amarillo: <CuadradoCaraDeLapiz class="w-32" />,
naranja: <CuadradoDatos class="w-32" />,
violeta: <CuadradoEscuelas class="w-32" />,
};
return (
<div class="grid lg:grid-cols-2">
<div
class={`aspect-square h-auto w-full max-w-[24rem] ${classes[color]} flex items-center justify-center`}
>
{iconos[color]}
</div>
<div class="h-auto w-full max-w-[24rem] overflow-y-auto break-words p-8 lg:aspect-square">
<h2 class="mb-4 text-4xl font-bold">{título}</h2>
<p class="text-2xl leading-6">{content}</p>
</div>
</div>
);
}
)} )}
</div> </div>
<div class="mt-8 flex items-center justify-between"> </section>
<Circulo class="h-6" /> <section class="flex min-h-screen items-center bg-[black] text-[white]">
<div class="relative"> <div class="mx-auto grid max-w-7xl grid-rows-1 items-end lg:grid-cols-4">
<Cruces class="h-8" /> <div class="col-span-3 flex h-full flex-col justify-end p-4">
<Cruces class="absolute top-0 h-8 -scale-y-100" /> <h2 class="mb-4 mt-16 text-3xl leading-none">
<strong>Caso:</strong>
<br />
Nuestra Señora del Rosario
</h2>
<iframe
class="aspect-video w-full"
src="https://www.youtube-nocookie.com/embed/NsT30qGayP4"
title="YouTube video player"
frameborder="0"
allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen
></iframe>
</div> </div>
<Circulo class="h-6" /> <div class="flex flex-col items-start gap-4 p-4">
</div> <p class="text-xl leading-6">
</div> Formamos a los docentes para enseñar clases híbridas,
</section> alfabetizaciones aumentadas y pensamiento computacional
<section class="bg-blanco"> aplicado.
<div class="mx-auto max-w-5xl p-2"> </p>
<div class="mb-4 flex justify-center gap-4">
<img
class="aspect-[1.3] w-1/2"
src="assets/img/imagen_naranja.webp"
/>
<img
class="aspect-[1.3] w-1/2"
src="assets/img/imagen_violeta.webp"
/>
</div>
<div class="flex items-center gap-4">
<Wave
containerClass="mx-8 shrink-[2] max-w-[10vw]"
class="w-full"
/>
<img
class="mx-auto aspect-[1.94] w-8/12 flex-auto object-contain"
src="assets/img/imagen_celeste.webp"
/>
<Wave
containerClass="mx-8 shrink-[2] max-w-[10vw]"
class="w-full"
/>
</div>
</div>
<VinculosPuntos class="m-16 mx-auto h-16" />
</section>
<section class="flex place-content-center bg-blanco">
<div class="grid grid-cols-1 place-content-center xl:grid-cols-2">
{Object.entries(data.frontpageCuadrados).map(
([color, { título, content }]) => {
// ¿por qué así en vez de `bg-${color}`? para que lo detecte tailwind.
const classes = {
celeste: "bg-celeste",
amarillo: "bg-amarillo lg:order-last xl:order-none",
naranja: "bg-naranja xl:order-last",
violeta: "bg-violeta lg:order-last",
};
const iconos = {
celeste: <CuadradoAlfabetizaciones class="w-32" />,
amarillo: <CuadradoCaraDeLapiz class="w-32" />,
naranja: <CuadradoDatos class="w-32" />,
violeta: <CuadradoEscuelas class="w-32" />,
};
return (
<div class="grid lg:grid-cols-2">
<div
class={`aspect-square h-auto w-full max-w-[24rem] ${classes[color]} flex items-center justify-center`}
>
{iconos[color]}
</div>
<div class="h-auto w-full max-w-[24rem] overflow-y-auto break-words p-8 lg:aspect-square">
<h2 class="mb-4 text-4xl font-bold">{título}</h2>
<p class="text-2xl leading-6">{content}</p>
</div>
</div>
);
}
)}
</div>
</section>
<section class="flex min-h-screen items-center bg-[black] text-[white]">
<div class="mx-auto grid max-w-7xl grid-rows-1 items-end lg:grid-cols-4">
<div class="col-span-3 flex h-full flex-col justify-end p-4">
<h2 class="mb-4 mt-16 text-3xl leading-none">
<strong>Caso:</strong>
<br />
Nuestra Señora del Rosario
</h2>
<iframe
class="aspect-video w-full"
src="https://www.youtube-nocookie.com/embed/NsT30qGayP4"
title="YouTube video player"
frameborder="0"
allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen
></iframe>
</div>
<div class="flex flex-col items-start gap-4 p-4">
<p class="text-xl leading-6">
Formamos a los docentes para enseñar clases híbridas,
alfabetizaciones aumentadas y pensamiento computacional
aplicado.
</p>
<a
class="border border-[white] bg-[black] p-3 text-xl font-bold uppercase leading-none"
target="_blank"
rel="noreferrer"
href="https://www.youtube.com/watch?v=NsT30qGayP4"
>
VER +
</a>
</div>
</div>
</section>
<section class="grid w-full grid-cols-2 justify-center gap-[1px] gap-y-6 bg-amarillo px-[10%] py-12 md:grid-cols-4">
{data.frontpageFooterButtons.map(
({ content, buttonText, buttonUrl }) => (
<div class="flex flex-col justify-end">
<h2 class="px-3 pb-4 text-xl">{content}</h2>
<a <a
href={buttonUrl} class="border border-[white] bg-[black] p-3 text-xl font-bold uppercase leading-none"
class="px-4 py-3 font-bold outline outline-1 outline-[black]" target="_blank"
rel="noreferrer"
href="https://www.youtube.com/watch?v=NsT30qGayP4"
> >
{buttonText} VER +
</a> </a>
</div> </div>
) </div>
)} </section>
</section> <section class="grid w-full grid-cols-2 justify-center gap-[1px] gap-y-6 bg-amarillo px-[10%] py-12 md:grid-cols-4">
<section class="grid grid-cols-1 gap-8 bg-blanco px-[10%] py-8 md:grid-cols-10"> {data.frontpageFooterButtons.map(
<div class="col-span-4 border-l border-gray-500 pl-4"> ({ content, buttonText, buttonUrl }) => (
<h2 class="py-2 text-xl font-semibold">Socios</h2> <div class="flex flex-col justify-end">
<div class="grid grid-cols-3">{fillerUdesa(6)}</div> <h2 class="px-3 pb-4 text-xl">{content}</h2>
</div> <a
<div class="col-span-3 border-l border-gray-500 pl-4"> href={buttonUrl}
<h2 class="py-2 text-xl font-semibold">Socios etec lab</h2> class="px-4 py-3 font-bold outline outline-1 outline-[black]"
<div class="grid grid-cols-2">{fillerUdesa(4)}</div> >
</div> {buttonText}
<div class="col-span-3 border-l border-gray-500 pl-4"> </a>
<h2 class="py-2 text-xl font-semibold">Donantes</h2> </div>
<div class="grid grid-cols-2">{fillerUdesa(4)}</div> )
</div> )}
</section> </section>
<section class="flex flex-wrap items-end justify-between gap-8 bg-violeta px-[10%] py-24"> <section class="grid grid-cols-1 gap-8 bg-blanco px-[10%] py-8 md:grid-cols-10">
<LogoInline class="w-full max-w-[16rem]" /> <div class="col-span-4 border-l border-gray-500 pl-4">
<a class="text-xl" href="mailto:TODO@alfadatiz.ar"> <h2 class="py-2 text-xl font-semibold">Socios</h2>
TODO@alfadatiz.ar <div class="grid grid-cols-3">{fillerUdesa(6)}</div>
</a> </div>
</section> <div class="col-span-3 border-l border-gray-500 pl-4">
</body> <h2 class="py-2 text-xl font-semibold">Socios etec lab</h2>
</html> <div class="grid grid-cols-2">{fillerUdesa(4)}</div>
</div>
<div class="col-span-3 border-l border-gray-500 pl-4">
<h2 class="py-2 text-xl font-semibold">Donantes</h2>
<div class="grid grid-cols-2">{fillerUdesa(4)}</div>
</div>
</section>
<section class="flex flex-wrap items-end justify-between gap-8 bg-violeta px-[10%] py-24">
<LogoInline class="w-full max-w-[16rem]" />
<a class="text-xl" href="mailto:TODO@alfadatiz.ar">
TODO@alfadatiz.ar
</a>
</section>
</body>
</html>
)
); );
} }