-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from DemocraciaEnRed/main
Deploy
- Loading branch information
Showing
25 changed files
with
193 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Iframe from "@/app/components/Iframe" | ||
import { iframes } from "../_data" | ||
|
||
const SubtopicVideo = ({ videoKey }: { videoKey: string }) => { | ||
const v = iframes.find((v) => v.key === videoKey) | ||
if (v) { | ||
return ( | ||
<div className="rounded-md overflow-hidden mb-4"> | ||
<Iframe title={v.title} source={v.src} /> | ||
</div> | ||
) | ||
} else null | ||
} | ||
export default SubtopicVideo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { ISbStoriesParams, ISbStoryData, StoryblokComponentType, getStoryblokApi } from "@storyblok/react"; | ||
import EventsCard from "../novedades/components/EventsCard"; | ||
import Link from "next/link"; | ||
|
||
const fetchLatestArticles = async () => { | ||
const storyblokApi = getStoryblokApi() | ||
|
||
let sbParams: ISbStoriesParams = { | ||
version: 'draft', | ||
starts_with: "events/", | ||
excluding_fields: 'body,_editable,_uid', | ||
sort_by: "created_at:desc", | ||
page: 1, | ||
per_page: 3 | ||
}; | ||
|
||
const article = await storyblokApi.get(`cdn/stories`, sbParams); | ||
|
||
return article | ||
} | ||
|
||
const LandingArticles = async () => { | ||
const articles = (await fetchLatestArticles()).data.stories | ||
return ( | ||
<> | ||
{articles.length > 0 && ( | ||
<> | ||
<h2 className="text-center text-4xl text-der-black mb-5 uppercase font-bold">Novedades</h2> | ||
<div className="flex gap-4 [&_a]:max-w-[374px] justify-center flex-wrap"> | ||
{articles.map((story: ISbStoryData) => <EventsCard key={story.id} story={story} />)} | ||
</div> | ||
<Link href="/novedades" type="button" className="block border-full border-[#CC4356] rounded-full py-4 px-16 bg-[#CC4356] text-white w-fit text-center uppercase text-lg mx-auto mt-[4vw]"> | ||
<span className="uppercase">conocé todas las novedades</span> | ||
</Link> | ||
</>) | ||
} | ||
</> | ||
) | ||
} | ||
export default LandingArticles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
'use client' | ||
import { useState } from "react"; | ||
|
||
const Card = ({ backgroundColor, title, description }: { backgroundColor: string, title: string, description: string }) => { | ||
const [showText, setShowText] = useState(true); | ||
|
||
return ( | ||
<div | ||
className={`h-[260px] w-[389px] bg-[${backgroundColor}] flex flex-col justify-center items-center rounded-md max-[584px]:min-w-[300px] relative overflow-hidden`} | ||
onMouseEnter={() => setShowText(false)} | ||
onMouseLeave={() => setShowText(true)} | ||
> | ||
<div className={`text-white text-center transition-all duration-500 ease-in-out transform ${showText ? 'translate-y-0 opacity-100' : '-translate-y-full opacity-0'}`}> | ||
<p className='uppercase text-3xl font-bold'>{title}</p> | ||
</div> | ||
<div className="absolute bottom-0 left-0 w-full text-white text-center transition-all duration-500 ease-in-out transform flex items-center flex-col my-8 max-[768px]:my-4"> | ||
<div className={`transition-all duration-500 ease-in-out ${showText ? 'translate-y-[100%] opacity-0' : 'translate-y-0 opacity-100'}`}> | ||
<p className='uppercase text-3xl font-bold'>{title}</p> | ||
</div> | ||
<div className={`transition-all duration-500 ease-in-out ${showText ? 'translate-y-[100%] opacity-0' : 'translate-y-0 opacity-100'}`}> | ||
<p className='uppercase text-sm my-2 mx-2'>{description}</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const LandingTopics = () => { | ||
return ( | ||
<div className='bg-white text-black text-center flex flex-col items-center justify-center py-12 w-full'> | ||
<h2 className='font-bold text-4xl'>¿QUÉ ES #DATOSENFUGA?</h2> | ||
<p className='uppercase'>Cuidar tus datos no solo depende de que tengas una contraseña segura</p> | ||
<div className='flex flex-row flex-wrap justify-around gap-4 my-12 text-white w-1/2'> | ||
<div className="h-[260px] w-[389px]"> | ||
<Card | ||
backgroundColor="#CC4356" | ||
title="Ley de datos personales" | ||
description="La Ley 25.326 establece normas para el tratamiento de información personal, garantizando que los ciudadanos tengan derechos de privacidad y control sobre sus datos personales, tanto en manos del sector público como privado. " | ||
/> | ||
</div> | ||
<div className="h-[260px] w-[389px]"> | ||
<Card | ||
backgroundColor="#008BB4" | ||
title="Ciberseguridad" | ||
description="Es el conjunto de medidas y prácticas destinadas a proteger la integridad de la información en entornos digitales. Se busca prevenir y responder a amenazas, garantizando la seguridad de sistemas, redes, datos y la privacidad de los usuarios." | ||
/> | ||
</div> | ||
<div className="h-[260px] w-[389px]"> | ||
<Card | ||
backgroundColor="#00D79E" | ||
title="Reportes de vulnerabilidades" | ||
description="Es el acto de informar sobre fallos de seguridad o debilidades en sistemas informáticos, aplicaciones o redes, a las autoridades competentes, empresas u organizaciones responsables, con el objetivo principal de mejorar la ciberseguridad al al corregir riesgos antes de su explotación." | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LandingTopics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.