From 001959957bc139d84287c6e53b472a89cbcebd02 Mon Sep 17 00:00:00 2001 From: NicoC0 Date: Wed, 22 May 2024 16:35:16 -0300 Subject: [PATCH 01/11] unnecessary titles removed --- src/app/abc/components/Subtopic.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/abc/components/Subtopic.tsx b/src/app/abc/components/Subtopic.tsx index 943b2c8..b16ccbe 100644 --- a/src/app/abc/components/Subtopic.tsx +++ b/src/app/abc/components/Subtopic.tsx @@ -4,7 +4,7 @@ import { SubtopicIF } from "./SubtopicsMap" const Subtopic = ({ subtopic }: { subtopic: SubtopicIF }) => { return ( <> -

{subtopic?.title}

+ {/*

{subtopic?.title}

*/}
{subtopic?.details.map((detail, i) => { return ( From c8c52eb7a3d942758a5b6c52c0fe650a94a5d129 Mon Sep 17 00:00:00 2001 From: NicoC0 Date: Wed, 22 May 2024 16:44:06 -0300 Subject: [PATCH 02/11] changes in style, text and logos --- src/app/about/components/Quienes.tsx | 8 ++++---- src/app/about/page.tsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/about/components/Quienes.tsx b/src/app/about/components/Quienes.tsx index 679b920..e085408 100644 --- a/src/app/about/components/Quienes.tsx +++ b/src/app/about/components/Quienes.tsx @@ -24,11 +24,11 @@ const Quienes = () => { {npo.map((org, i) => { return (
- {`Logo -

{org.name}

- - VISITÁ LA WEB + + {`Logo +

{org.name}

+
) })} diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index f6e9c9b..751e31a 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -55,8 +55,8 @@ const About = () => {

¿quiénes somos?

-

Somos varias organizaciones de la sociedad civil que buscan que el Estado asegure estándares de ciberseguridad y que atienda a las alarmas que suenan por todos lados. -

+ {/*

Somos varias organizaciones de la sociedad civil que buscan que el Estado asegure estándares de ciberseguridad y que atienda a las alarmas que suenan por todos lados. +

*/}
From c67ad8dcb1fd0447e9bf82a7fafa8632f1567d3b Mon Sep 17 00:00:00 2001 From: NicoC0 Date: Wed, 22 May 2024 17:03:03 -0300 Subject: [PATCH 03/11] navbar logo and styles --- src/app/components/NavLinks.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/components/NavLinks.tsx b/src/app/components/NavLinks.tsx index cd73944..403d76c 100644 --- a/src/app/components/NavLinks.tsx +++ b/src/app/components/NavLinks.tsx @@ -1,6 +1,9 @@ 'use client' import Link from "next/link"; +import Image from "next/image"; import { usePathname } from 'next/navigation' +import canilla from "../../../public/gifCanilla.gif" + type Navlink = { href: string, label: string @@ -23,10 +26,13 @@ const NavLinks = () => { return ( <> + + Datos en Fuga logo + {links.map((link, i) => { return ( -
  • - {link.label} +
  • + {link.label}
  • ) })} From d8c6fa10e47975ddcc02808dc790d535dbb089ad Mon Sep 17 00:00:00 2001 From: NicoC0 Date: Wed, 22 May 2024 17:10:24 -0300 Subject: [PATCH 04/11] changed text size --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 923554d..4031d0c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -89,7 +89,7 @@ export default function Home() {

    Acerca de

    -

    +

    Queremos que el Estado asegure estándares de ciberseguridad y que atienda a las alarmas que suenan por todos lados. Queremos que el Estado deje de perseguir penalmente a quienes identifican, denuncian y reportan vulnerabilidades informáticas.

    From 9d6706bf1fbf5a873f1fe040ad16c8f00eae22a5 Mon Sep 17 00:00:00 2001 From: NicoC0 Date: Wed, 22 May 2024 18:24:07 -0300 Subject: [PATCH 05/11] new text fonts added --- src/app/layout.tsx | 20 ++++++++++++++++++-- tailwind.config.ts | 5 ++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 2f33e7e..5ca3c98 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,5 @@ import type { Metadata } from 'next' -import { Inter, Lexend_Deca, Open_Sans, Raleway, Roboto } from 'next/font/google' +import { Inter, Lexend_Deca, Open_Sans, Raleway, Roboto, Monda, Mada, Kanit } from 'next/font/google' import localFont from 'next/font/local' import './globals.css' import NavBar from './components/NavBar' @@ -36,6 +36,22 @@ const openSans = Open_Sans({ subsets: ['latin'], variable: '--font-open-sans' }) +const monda = Monda({ + subsets: ['latin'], + weight: ['400', '700'], + variable: '--font-monda' +}) +const mada = Mada({ + subsets: ['latin'], + weight: ['300', '400', '700'], + variable: '--font-mada' +}) +const kanit = Kanit({ + subsets: ['latin'], + weight: ['600'], + variable: '--font-kanit' +}) + const nippo = localFont({ src: [ { @@ -91,7 +107,7 @@ export default function RootLayout({ return ( - + {children} diff --git a/tailwind.config.ts b/tailwind.config.ts index 50d4475..1f1d5a3 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -19,7 +19,10 @@ const config: Config = { roboto: ['var(--font-roboto)'], raleway: ['var(--font-raleway)'], "lexend-deca": ['var(--font-lexend-deca)'], - "open-sans": ['var(--font-open-sans)'] + "open-sans": ['var(--font-open-sans)'], + monda: ['var(--font-monda)'], + mada: ['var(--font-mada)'], + kanit: ['var(--font-kanit)'] }, listStyleType: { disc: 'disc' From 4281491e3fa479fc3f40c0da7e5b3537958141df Mon Sep 17 00:00:00 2001 From: NicoC0 Date: Wed, 22 May 2024 18:45:36 -0300 Subject: [PATCH 06/11] color changes in the backgrounds --- src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 4031d0c..cc48eba 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -83,12 +83,12 @@ export default function Home() {
    -
    +
    -

    Acerca de

    +

    Acerca de

    Queremos que el Estado asegure estándares de ciberseguridad y que atienda a las alarmas que suenan por todos lados. Queremos que el Estado deje de perseguir penalmente a quienes identifican, denuncian y reportan vulnerabilidades informáticas.

    From c25ea35940a66fde23a5382c49d5562256528a28 Mon Sep 17 00:00:00 2001 From: Gerardo Rodriguez Date: Thu, 23 May 2024 14:35:49 -0300 Subject: [PATCH 07/11] TitleCase #Hashtags + Novedades renamed to Blog + ABC main header text --- src/app/abc/page.tsx | 2 +- src/app/amparo/page.tsx | 2 +- src/app/components/Footer.tsx | 2 +- src/app/components/LandingArticles.tsx | 4 ++-- src/app/components/NavLinks.tsx | 2 +- src/app/novedades/[slug]/page.tsx | 2 +- src/app/novedades/components/EventsCard.tsx | 2 +- src/app/novedades/loading.tsx | 2 +- src/app/novedades/page.tsx | 8 ++++---- src/app/page.tsx | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/app/abc/page.tsx b/src/app/abc/page.tsx index e97f07e..24a5dad 100644 --- a/src/app/abc/page.tsx +++ b/src/app/abc/page.tsx @@ -24,7 +24,7 @@ const page = () => { return (
    -

    Lo que siempre quisiste saber del tema y no te animaste a preguntar

    +

    La ciberseguridad no es un tema tabú

    diff --git a/src/app/amparo/page.tsx b/src/app/amparo/page.tsx index eb6cbfe..d2eb17b 100644 --- a/src/app/amparo/page.tsx +++ b/src/app/amparo/page.tsx @@ -22,7 +22,7 @@ const Amparo = () => {

    - #CONMISDATOSNO + #ConMisDatosNo

    PRESENTAMOS UN AMPARO CONTRA EL
    ESTADO PARA PROTEGER NUESTROS DATOS
    PERSONALES EN UN AÑO DE ELECCIONES. diff --git a/src/app/components/Footer.tsx b/src/app/components/Footer.tsx index 7a04338..fac3638 100644 --- a/src/app/components/Footer.tsx +++ b/src/app/components/Footer.tsx @@ -4,7 +4,7 @@ import Link from "next/link" import { usePathname } from "next/navigation" import { sharedImages } from "~/shared/index" -const darkThemeSegments = ['about', 'abc', 'novedades'] +const darkThemeSegments = ['about', 'abc', 'blog'] const isDarkTheme = (path: string) => darkThemeSegments.some(segment => segment === path.split('/')[1]) const Footer = () => { diff --git a/src/app/components/LandingArticles.tsx b/src/app/components/LandingArticles.tsx index 1149132..258bb24 100644 --- a/src/app/components/LandingArticles.tsx +++ b/src/app/components/LandingArticles.tsx @@ -25,11 +25,11 @@ const LandingArticles = async () => { <> {articles.length > 0 && ( <> -

    Novedades

    +

    Blog

    {articles.map((story: ISbStoryData) => )}
    - + Más novedades ) diff --git a/src/app/components/NavLinks.tsx b/src/app/components/NavLinks.tsx index 403d76c..ff47636 100644 --- a/src/app/components/NavLinks.tsx +++ b/src/app/components/NavLinks.tsx @@ -14,7 +14,7 @@ const links: Navlink[] = [ { href: "/amparo", label: "amparo" }, { href: "/casos", label: "casos" }, { href: "/reporta", label: "reportá" }, - { href: "/novedades", label: "novedades" }, + { href: "/blog", label: "blog" }, { href: "/about", label: "acerca de" }, { href: "/abc", label: "ABC" } ] diff --git a/src/app/novedades/[slug]/page.tsx b/src/app/novedades/[slug]/page.tsx index e46189a..e472fc1 100644 --- a/src/app/novedades/[slug]/page.tsx +++ b/src/app/novedades/[slug]/page.tsx @@ -31,7 +31,7 @@ const EventosBySlug = async ({ params }: { params: { slug: string } }) => { return (
    -

    Novedades > {name}

    +

    Blog > {name}

    {content.title}

    diff --git a/src/app/novedades/components/EventsCard.tsx b/src/app/novedades/components/EventsCard.tsx index 889615a..69de4ca 100644 --- a/src/app/novedades/components/EventsCard.tsx +++ b/src/app/novedades/components/EventsCard.tsx @@ -7,7 +7,7 @@ import EventsCardImage from "./EventsCardImage" const EventsCard = ({ story }: { story: ISbStoryData }) => { const formattedDate = story.first_published_at ? format(new Date(story.first_published_at), "dd/MM/yyyy") : '' return ( - +
    diff --git a/src/app/novedades/loading.tsx b/src/app/novedades/loading.tsx index 03f3ef7..719917f 100644 --- a/src/app/novedades/loading.tsx +++ b/src/app/novedades/loading.tsx @@ -5,7 +5,7 @@ const EventosLoading = () => {

    - NOVEDADES + BLOG

    QUE ACCIONES HEMOS LLEVADO A CABO EN EL PROYECTO diff --git a/src/app/novedades/page.tsx b/src/app/novedades/page.tsx index 144e529..143c5d8 100644 --- a/src/app/novedades/page.tsx +++ b/src/app/novedades/page.tsx @@ -2,13 +2,13 @@ import { ISbStoriesParams, getStoryblokApi } from "@storyblok/react/rsc"; import EventsMasonry from "./components/EventsMasonry"; import { Metadata } from "next"; -const metaTitle = 'Novedades' -const metaDescription = 'Novedades' +const metaTitle = 'Blog' +const metaDescription = 'Blog de Datos en Fuga' export const metadata: Metadata = { title: metaTitle, description: metaDescription, - keywords: 'debate, presentaciones, seguridad informática, ciberseguridad, justicia', + keywords: 'blog, debate, presentaciones, seguridad informática, ciberseguridad, justicia', openGraph: { title: metaTitle, description: metaDescription @@ -21,7 +21,7 @@ const Eventos = async () => {

    - NOVEDADES + BLOG

    QUÉ ACCIONES HEMOS LLEVADO A CABO EN EL PROYECTO diff --git a/src/app/page.tsx b/src/app/page.tsx index cc48eba..9318118 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -22,7 +22,7 @@ export default function Home() {

    -

    #DATOSENFUGA

    +

    #DatosEnFuga

    ¿QUÉ ESTÁ PASANDO EN ARGENTINA?

    From f9cd7b337226d438bdf8c9899068da56bdb094d3 Mon Sep 17 00:00:00 2001 From: Gerardo Rodriguez Date: Thu, 23 May 2024 18:09:49 -0300 Subject: [PATCH 08/11] routing to blog fixed + added category and authors to news preview --- package-lock.json | 6 ++--- package.json | 2 +- .../[slug]/components/Content.tsx | 0 .../[slug]/components/RelatedArticles.tsx | 0 .../[slug]/components/YTVideo.tsx | 0 .../{novedades => blog}/[slug]/loading.tsx | 0 src/app/{novedades => blog}/[slug]/page.tsx | 21 +++++++++--------- .../components/EventsCard.tsx | 22 +++++++++++++++---- .../components/EventsCardImage.tsx | 0 .../components/EventsMasonry.tsx | 0 src/app/blog/components/MapAuthors.tsx | 10 +++++++++ .../components/SuspenseMasonry.tsx | 0 src/app/{novedades => blog}/loading.tsx | 0 src/app/{novedades => blog}/page.tsx | 0 src/app/components/LandingArticles.tsx | 2 +- src/app/components/LandingTopics.tsx | 2 +- 16 files changed, 45 insertions(+), 20 deletions(-) rename src/app/{novedades => blog}/[slug]/components/Content.tsx (100%) rename src/app/{novedades => blog}/[slug]/components/RelatedArticles.tsx (100%) rename src/app/{novedades => blog}/[slug]/components/YTVideo.tsx (100%) rename src/app/{novedades => blog}/[slug]/loading.tsx (100%) rename src/app/{novedades => blog}/[slug]/page.tsx (89%) rename src/app/{novedades => blog}/components/EventsCard.tsx (58%) rename src/app/{novedades => blog}/components/EventsCardImage.tsx (100%) rename src/app/{novedades => blog}/components/EventsMasonry.tsx (100%) create mode 100644 src/app/blog/components/MapAuthors.tsx rename src/app/{novedades => blog}/components/SuspenseMasonry.tsx (100%) rename src/app/{novedades => blog}/loading.tsx (100%) rename src/app/{novedades => blog}/page.tsx (100%) diff --git a/package-lock.json b/package-lock.json index f59e236..919d29d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1054,9 +1054,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001561", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001561.tgz", - "integrity": "sha512-NTt0DNoKe958Q0BE0j0c1V9jbUzhBxHIEJy7asmGrpE0yG63KTV7PLHPnK2E1O9RsQrQ081I3NLuXGS6zht3cw==", + "version": "1.0.30001621", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001621.tgz", + "integrity": "sha512-+NLXZiviFFKX0fk8Piwv3PfLPGtRqJeq2TiNoUff/qB5KJgwecJTvCXDpmlyP/eCI/GUEmp/h/y5j0yckiiZrA==", "funding": [ { "type": "opencollective", diff --git a/package.json b/package.json index f7794d1..d53e5e5 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "start": "next start", "lint": "next lint", "export": "next export", - "serveOut": "npx serve@latest out" + "serveOut": "npx serve@latest out" }, "dependencies": { "@storyblok/react": "^2.4.7", diff --git a/src/app/novedades/[slug]/components/Content.tsx b/src/app/blog/[slug]/components/Content.tsx similarity index 100% rename from src/app/novedades/[slug]/components/Content.tsx rename to src/app/blog/[slug]/components/Content.tsx diff --git a/src/app/novedades/[slug]/components/RelatedArticles.tsx b/src/app/blog/[slug]/components/RelatedArticles.tsx similarity index 100% rename from src/app/novedades/[slug]/components/RelatedArticles.tsx rename to src/app/blog/[slug]/components/RelatedArticles.tsx diff --git a/src/app/novedades/[slug]/components/YTVideo.tsx b/src/app/blog/[slug]/components/YTVideo.tsx similarity index 100% rename from src/app/novedades/[slug]/components/YTVideo.tsx rename to src/app/blog/[slug]/components/YTVideo.tsx diff --git a/src/app/novedades/[slug]/loading.tsx b/src/app/blog/[slug]/loading.tsx similarity index 100% rename from src/app/novedades/[slug]/loading.tsx rename to src/app/blog/[slug]/loading.tsx diff --git a/src/app/novedades/[slug]/page.tsx b/src/app/blog/[slug]/page.tsx similarity index 89% rename from src/app/novedades/[slug]/page.tsx rename to src/app/blog/[slug]/page.tsx index e472fc1..83425e1 100644 --- a/src/app/novedades/[slug]/page.tsx +++ b/src/app/blog/[slug]/page.tsx @@ -4,6 +4,7 @@ import { notFound } from "next/navigation"; import Content from "./components/Content"; import RelatedArticles from "./components/RelatedArticles"; import Link from "next/link"; +import { mapAuthors } from "../components/MapAuthors"; export async function generateStaticParams() { const events = await fetchData() @@ -101,15 +102,15 @@ const fetchData = async () => { return await storyblokApi.get(`cdn/stories`, sbParams); } -const mapAuthors = (authors: any) => { - let authorsString = '' - authors.forEach((author: { name: string }, i: number) => { - if (authors.length > 1 && i + 2 < authors.length) authorsString = `${authorsString}${author.name}, ` - else if (authors.length > 1 && i + 1 < authors.length) authorsString = `${authorsString}${author.name} ` - else if (authors.length > 1) authorsString = `${authorsString}y ${author.name}` - else authorsString = `${authorsString}${author.name}` - }) - return authorsString -} +// const mapAuthors = (authors: any) => { +// let authorsString = '' +// authors.forEach((author: { name: string }, i: number) => { +// if (authors.length > 1 && i + 2 < authors.length) authorsString = `${authorsString}${author.name}, ` +// else if (authors.length > 1 && i + 1 < authors.length) authorsString = `${authorsString}${author.name} ` +// else if (authors.length > 1) authorsString = `${authorsString}y ${author.name}` +// else authorsString = `${authorsString}${author.name}` +// }) +// return authorsString +// } const formatDate = (date: string) => format(new Date(date), "dd/MM/yyyy") \ No newline at end of file diff --git a/src/app/novedades/components/EventsCard.tsx b/src/app/blog/components/EventsCard.tsx similarity index 58% rename from src/app/novedades/components/EventsCard.tsx rename to src/app/blog/components/EventsCard.tsx index 69de4ca..6c7ec0d 100644 --- a/src/app/novedades/components/EventsCard.tsx +++ b/src/app/blog/components/EventsCard.tsx @@ -3,6 +3,7 @@ import { format } from "date-fns" import Image from "next/image" import Link from "next/link" import EventsCardImage from "./EventsCardImage" +import { mapAuthors } from "./MapAuthors" const EventsCard = ({ story }: { story: ISbStoryData }) => { const formattedDate = story.first_published_at ? format(new Date(story.first_published_at), "dd/MM/yyyy") : '' @@ -11,10 +12,23 @@ const EventsCard = ({ story }: { story: ISbStoryData }) => {
    -

    {formattedDate}

    +

    { + story.content?.category && + + {story.content.category} + + }{formattedDate} +

    +

    {story.content.title}

    -

    {story.content.brief}

    -
    +
    +

    {story.content.brief}

    + {story.content.authors ? +

    + {`Autor${story.content.authors.length > 1 ? 'es' : ''}: `}{mapAuthors(story.content.authors)}

    : + null} +
    + {/*
    { story.tag_list.map((tag: string) => { return ( @@ -24,7 +38,7 @@ const EventsCard = ({ story }: { story: ISbStoryData }) => { ) }) } -
    +
    */}
    diff --git a/src/app/novedades/components/EventsCardImage.tsx b/src/app/blog/components/EventsCardImage.tsx similarity index 100% rename from src/app/novedades/components/EventsCardImage.tsx rename to src/app/blog/components/EventsCardImage.tsx diff --git a/src/app/novedades/components/EventsMasonry.tsx b/src/app/blog/components/EventsMasonry.tsx similarity index 100% rename from src/app/novedades/components/EventsMasonry.tsx rename to src/app/blog/components/EventsMasonry.tsx diff --git a/src/app/blog/components/MapAuthors.tsx b/src/app/blog/components/MapAuthors.tsx new file mode 100644 index 0000000..f889ec5 --- /dev/null +++ b/src/app/blog/components/MapAuthors.tsx @@ -0,0 +1,10 @@ +export const mapAuthors = (authors: any) => { + let authorsString = '' + authors.forEach((author: { name: string }, i: number) => { + if (authors.length > 1 && i + 2 < authors.length) authorsString = `${authorsString}${author.name}, ` + else if (authors.length > 1 && i + 1 < authors.length) authorsString = `${authorsString}${author.name} ` + else if (authors.length > 1) authorsString = `${authorsString}y ${author.name}` + else authorsString = `${authorsString}${author.name}` + }) + return authorsString +} \ No newline at end of file diff --git a/src/app/novedades/components/SuspenseMasonry.tsx b/src/app/blog/components/SuspenseMasonry.tsx similarity index 100% rename from src/app/novedades/components/SuspenseMasonry.tsx rename to src/app/blog/components/SuspenseMasonry.tsx diff --git a/src/app/novedades/loading.tsx b/src/app/blog/loading.tsx similarity index 100% rename from src/app/novedades/loading.tsx rename to src/app/blog/loading.tsx diff --git a/src/app/novedades/page.tsx b/src/app/blog/page.tsx similarity index 100% rename from src/app/novedades/page.tsx rename to src/app/blog/page.tsx diff --git a/src/app/components/LandingArticles.tsx b/src/app/components/LandingArticles.tsx index 258bb24..9baa414 100644 --- a/src/app/components/LandingArticles.tsx +++ b/src/app/components/LandingArticles.tsx @@ -1,5 +1,5 @@ import { ISbStoriesParams, ISbStoryData, StoryblokComponentType, getStoryblokApi } from "@storyblok/react"; -import EventsCard from "../novedades/components/EventsCard"; +import EventsCard from "../blog/components/EventsCard"; import Link from "next/link"; const fetchLatestArticles = async () => { diff --git a/src/app/components/LandingTopics.tsx b/src/app/components/LandingTopics.tsx index 551fad6..97ccbbb 100644 --- a/src/app/components/LandingTopics.tsx +++ b/src/app/components/LandingTopics.tsx @@ -29,7 +29,7 @@ const Card = ({ backgroundColor, title, description, size }: { backgroundColor: const LandingTopics = () => { return (
    -

    ¿QUÉ ES #DATOSENFUGA?

    +

    ¿QUÉ ES #DatosEnFuga?

    Cuidar tus datos no solo depende de que tengas una contraseña segura

    Date: Fri, 24 May 2024 17:56:44 -0300 Subject: [PATCH 09/11] unified fonts + swipe for cases --- src/app/abc/page.tsx | 8 +-- src/app/about/components/ActionsList.tsx | 2 +- src/app/about/page.tsx | 10 ++-- src/app/amparo/page.tsx | 14 +++--- .../[slug]/components/RelatedArticles.tsx | 2 +- src/app/blog/[slug]/loading.tsx | 2 +- src/app/blog/[slug]/page.tsx | 4 +- src/app/blog/components/EventsCard.tsx | 8 +-- src/app/blog/loading.tsx | 4 +- src/app/blog/page.tsx | 4 +- src/app/casos/[id]/page.tsx | 4 +- src/app/casos/components/CaseItem.tsx | 49 +++++++++++++++++++ src/app/casos/components/CaseSelector.tsx | 31 +++++------- src/app/casos/components/CasesHeader.tsx | 2 +- src/app/casos/components/HowToReport.tsx | 2 +- src/app/casos/page.tsx | 4 +- src/app/components/CollapseNavBar.tsx | 4 +- src/app/components/Footer.tsx | 4 +- src/app/components/LandingArticles.tsx | 2 +- src/app/components/LandingTopics.tsx | 2 +- src/app/components/NavBar.tsx | 2 +- src/app/components/SiteMapFooter.tsx | 2 +- src/app/layout.tsx | 2 +- src/app/loading.tsx | 2 +- src/app/page.tsx | 8 +-- src/app/reporta/page.tsx | 10 ++-- 26 files changed, 115 insertions(+), 73 deletions(-) create mode 100644 src/app/casos/components/CaseItem.tsx diff --git a/src/app/abc/page.tsx b/src/app/abc/page.tsx index 24a5dad..6845416 100644 --- a/src/app/abc/page.tsx +++ b/src/app/abc/page.tsx @@ -24,13 +24,13 @@ const page = () => { return (
    -

    La ciberseguridad no es un tema tabú

    +

    La ciberseguridad no es un tema tabú

    -

    recursos útiles

    +

    recursos útiles

    AMPARO

    { height={96} width={96} /> -

    +

    Presentamos un amparo colectivo solicitando el pronunciamiento de inconstitucionalidad de la DA 431/2020 y de determinados artículos de Ley de Datos Personales (art. 5, inc. 2 ap. b - ley 25.326) y solicitando se dicte una medida cautelar que ordena la suspensión de lo que disponen. Estas normas habilitan la transferencia de los datos personales de los ciudadanos entre todas las dependencias de la Administración pública, sin contar con el consentimiento expreso de sus titulares para su tratamiento.

    @@ -51,7 +51,7 @@ const page = () => {
    -
    +

    estado:

    El amparo colectivo se presento el 18 de abril de 2023 y radica en el juzgado Contencioso Administrativo Federal N 8, a cargo de la Jueza Dra. María Cecilia GILARDI MADARIAGA de NEGRE. Luego de 5 meses, el 07/09/2023, la Sra. Jueza se pronuncio sobre la medida cautelar solicitada por nosotros y rechazo la misma. Este rechazo fue apelado por nosotros y desde el 11 de septiembre aguardamos que la Sala V del mismo fuero revise la decisión del Juzgado de origen y nos conceda la medida cautelar.

    Ultima actualización: 21/11/2023

    diff --git a/src/app/about/components/ActionsList.tsx b/src/app/about/components/ActionsList.tsx index 12b30d6..d8be842 100644 --- a/src/app/about/components/ActionsList.tsx +++ b/src/app/about/components/ActionsList.tsx @@ -1,7 +1,7 @@ const ActionsList = () => { return ( <> -

    ¿que hicimos?

    +

    ¿que hicimos?

    Estas son algunas de las acciones que hemos llevado a acabo en el proyecto, en nuestro objetivo de aumentar al conciencia sobre la importancia de la ciberseguridad, la inversión del estado en este campo y la concienciación de la ciudadanía.

    1. diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 751e31a..013fadb 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -28,17 +28,17 @@ const About = () => { title: "El Estado debe invertir en ciberseguridad y dejar de perseguir a reportantes | Datos en Fuga" }] return ( -
      +
      -

      ¿qué queremos?

      +

      ¿qué queremos?

      Queremos que el Estado asegure estándares de ciberseguridad y que atienda a las alarmas que suenan por todos lados.

      Queremos que el Estado deje de perseguir penalmente a quienes identifican, denuncian y reportan vulnerabilidades informáticas.

      -

      ¿por qué datos en fuga?

      +

      ¿por qué datos en fuga?

      @@ -48,13 +48,13 @@ const About = () => {
      */}
      -

      ¿POR QUÉ NOS INTERESA?

      +

      ¿POR QUÉ NOS INTERESA?

      Porque las filtraciones que sufrieron diversas reparticiones del Estado en el último tiempo nos hacen temer que sus sistemas son vulnerables. Porque nos sentimos cada vez más expuestos al mal uso de nuestros datos para distintos fines, ninguno bueno. Porque se persigue penalmente a activistas de la comunidad de seguridad informática, que podrían ayudar. Porque se legitima una “cultura del miedo” que silencia el debate en materia de seguridad informática.

      -

      ¿quiénes somos?

      +

      ¿quiénes somos?

      {/*

      Somos varias organizaciones de la sociedad civil que buscan que el Estado asegure estándares de ciberseguridad y que atienda a las alarmas que suenan por todos lados.

      */}
      diff --git a/src/app/amparo/page.tsx b/src/app/amparo/page.tsx index d2eb17b..d2dd1e2 100644 --- a/src/app/amparo/page.tsx +++ b/src/app/amparo/page.tsx @@ -21,7 +21,7 @@ const Amparo = () => { return (
      -

      +

      #ConMisDatosNo

      @@ -29,7 +29,7 @@ const Amparo = () => {

      -

      +

      PRESENTAMOS UN AMPARO PARA PROTEGER NUESTROS DATOS PERSONALES Y NUESTRA DEMOCRACIA

      @@ -60,7 +60,7 @@ const Amparo = () => {
      -

      ¿Y QUÉ ES LO QUE PUEDE PASAR MIENTRAS SIGA VIGENTE?

      +

      ¿Y QUÉ ES LO QUE PUEDE PASAR MIENTRAS SIGA VIGENTE?

      amparo { className='block md:hidden w-full h-auto max-w-[535px]' />
      -

      PERO, ADEMÁS, EL USO DE DATOS PERSONALES TAMBIÉN AMENAZA LA DEMOCRACIA Y TIENE GRANDES ANTECEDENTES…

      +

      PERO, ADEMÁS, EL USO DE DATOS PERSONALES TAMBIÉN AMENAZA LA DEMOCRACIA Y TIENE GRANDES ANTECEDENTES…

      amparo {
      -

      ¿QUÉ PRESENTAMOS? +

      ¿QUÉ PRESENTAMOS?

      AMPARO

      @@ -131,7 +131,7 @@ const Amparo = () => { height={96} width={96} /> -

      +

      Presentamos un amparo colectivo contra el Estado solicitando el pronunciamiento de inconstitucionalidad de la DA 431/2020 y de determinados artículos de Ley de Datos Personales, y solicitando se dicte una medida cautelar que ordena la suspensión de lo que disponen para evitar la transferencia y el mal uso de nuestros datos personales.

      @@ -143,7 +143,7 @@ const Amparo = () => {
      -
      +

      estado:

      El amparo colectivo se presento el 18 de abril de 2023 y radica en el juzgado Contencioso Administrativo Federal N 8, a cargo de la Jueza Dra. María Cecilia GILARDI MADARIAGA de NEGRE. Luego de 5 meses, el 07/09/2023, la Sra. Jueza se pronuncio sobre la medida cautelar solicitada por nosotros y rechazo la misma. Este rechazo fue apelado por nosotros y desde el 11 de septiembre aguardamos que la Sala V del mismo fuero revise la decisión del Juzgado de origen y nos conceda la medida cautelar.

      Ultima actualización: 21/11/2023

      diff --git a/src/app/blog/[slug]/components/RelatedArticles.tsx b/src/app/blog/[slug]/components/RelatedArticles.tsx index 32cef96..28b9788 100644 --- a/src/app/blog/[slug]/components/RelatedArticles.tsx +++ b/src/app/blog/[slug]/components/RelatedArticles.tsx @@ -9,7 +9,7 @@ const RelatedArticles = async ({ uid, tags }: { uid: string, tags: string[] }) = return ( <> -

      Artículos relacionados

      +

      Artículos relacionados

      {articles.length > 0 ? articles.map((story) => ) : diff --git a/src/app/blog/[slug]/loading.tsx b/src/app/blog/[slug]/loading.tsx index 6b67f85..91882fb 100644 --- a/src/app/blog/[slug]/loading.tsx +++ b/src/app/blog/[slug]/loading.tsx @@ -1,6 +1,6 @@ const EventoBySlugLoading = () => { return ( -
      +

      diff --git a/src/app/blog/[slug]/page.tsx b/src/app/blog/[slug]/page.tsx index 83425e1..4e7f139 100644 --- a/src/app/blog/[slug]/page.tsx +++ b/src/app/blog/[slug]/page.tsx @@ -35,7 +35,7 @@ const EventosBySlug = async ({ params }: { params: { slug: string } }) => {

      Blog > {name}

      -

      {content.title}

      +

      {content.title}

      Por {content.authors ? mapAuthors(content.authors) : 'Anónimo'}

      @@ -61,7 +61,7 @@ const EventosBySlug = async ({ params }: { params: { slug: string } }) => {
      {tag_list.length > 0 ? tag_list.map((tag) => { return ( - + {tag} ) diff --git a/src/app/blog/components/EventsCard.tsx b/src/app/blog/components/EventsCard.tsx index 6c7ec0d..d8a014d 100644 --- a/src/app/blog/components/EventsCard.tsx +++ b/src/app/blog/components/EventsCard.tsx @@ -14,17 +14,17 @@ const EventsCard = ({ story }: { story: ISbStoryData }) => {

      { story.content?.category && - + {story.content.category} }{formattedDate}

      -

      {story.content.title}

      +

      {story.content.title}

      {story.content.brief}

      {story.content.authors ? -

      +

      {`Autor${story.content.authors.length > 1 ? 'es' : ''}: `}{mapAuthors(story.content.authors)}

      : null}
      @@ -32,7 +32,7 @@ const EventsCard = ({ story }: { story: ISbStoryData }) => { { story.tag_list.map((tag: string) => { return ( - + {tag} ) diff --git a/src/app/blog/loading.tsx b/src/app/blog/loading.tsx index 719917f..a5e406e 100644 --- a/src/app/blog/loading.tsx +++ b/src/app/blog/loading.tsx @@ -4,10 +4,10 @@ const EventosLoading = () => { return (
      -

      +

      BLOG

      -

      +

      QUE ACCIONES HEMOS LLEVADO A CABO EN EL PROYECTO

      diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index 143c5d8..054ab6c 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -20,10 +20,10 @@ const Eventos = async () => { return (
      -

      +

      BLOG

      -

      +

      QUÉ ACCIONES HEMOS LLEVADO A CABO EN EL PROYECTO

      diff --git a/src/app/casos/[id]/page.tsx b/src/app/casos/[id]/page.tsx index 459b563..58f5155 100644 --- a/src/app/casos/[id]/page.tsx +++ b/src/app/casos/[id]/page.tsx @@ -43,8 +43,8 @@ const ID = ({ params }: { params: { id: string } }) => {
      -

      LLEGÓ TARDE PARA ELLOS

      -

      +

      LLEGÓ TARDE PARA ELLOS

      +

      TE CONTAMOS QUIÉNES SON Y CUÁL ES SU HISTORIA

      diff --git a/src/app/casos/components/CaseItem.tsx b/src/app/casos/components/CaseItem.tsx new file mode 100644 index 0000000..a6a33c9 --- /dev/null +++ b/src/app/casos/components/CaseItem.tsx @@ -0,0 +1,49 @@ +"use client" +import Image from "next/image" +import Link from "next/link" +import { useState } from "react" +import { useRouter } from "next/navigation" + +const CaseItem = ({ c, id, previousCaseUrl, nextCaseUrl }: + { + c: any, + id: string, + previousCaseUrl: string, + nextCaseUrl: string + }) => { + const [touchStart, setTouchStart] = useState(0) + const router = useRouter() + const handleTouch = (e: any) => { + if (e.type === 'touchstart') { + setTouchStart(e.changedTouches[0].clientX) + } + else if (e.type === "touchend") { + const initialX = touchStart + const currentX = e.changedTouches[0].clientX + if (initialX + 200 > currentX) { + router.push(nextCaseUrl, { scroll: false }) + } else if (initialX - 200 < currentX) { + router.push(previousCaseUrl, { scroll: false }) + } + } + + } + return ( + +
      +

      {c.name}

      + {c.name} +
      + + ) +} +export default CaseItem \ No newline at end of file diff --git a/src/app/casos/components/CaseSelector.tsx b/src/app/casos/components/CaseSelector.tsx index b49f23e..5f2eaed 100644 --- a/src/app/casos/components/CaseSelector.tsx +++ b/src/app/casos/components/CaseSelector.tsx @@ -1,6 +1,7 @@ import ChevronSVG from "@/app/components/ChevronSVG" import Image from "next/image" import Link from 'next/link' +import CaseItem from "./CaseItem" const CaseSelector = ({ id, cases }: { id: string, cases: any[] }) => { // const [caso, setCaso] = useState('') @@ -16,33 +17,25 @@ const CaseSelector = ({ id, cases }: { id: string, cases: any[] }) => { const selectedCaseIdx = cases.findIndex((c) => c.id === id) const previousCaseIdx = selectedCaseIdx === 0 ? cases.length - 1 : selectedCaseIdx - 1 const nextCaseIdx = selectedCaseIdx === cases.length - 1 ? 0 : selectedCaseIdx + 1 + const previousCaseUrl = `/casos/${cases[previousCaseIdx].id}` + const nextCaseUrl = `/casos/${cases[nextCaseIdx].id}` return (
      - +
      - +
      { - cases.map((c: any, idx: number, casesArray: any) => { - return ( - <> - -
      -

      {c.name}

      - {c.name} -
      - - - ) - }) + cases.map((c: any) => { + return + } + ) }
      ) diff --git a/src/app/casos/components/CasesHeader.tsx b/src/app/casos/components/CasesHeader.tsx index afd813d..56eeeb0 100644 --- a/src/app/casos/components/CasesHeader.tsx +++ b/src/app/casos/components/CasesHeader.tsx @@ -1,7 +1,7 @@ const CasesHeader = () => { return (
      -

      +

      ¿SABÍAS QUE EN ARGENTINA
      HAY UNA MANERA SEGURA DE REPORTAR VULNERABILIDADES INFORMÁTICAS?

      diff --git a/src/app/casos/components/HowToReport.tsx b/src/app/casos/components/HowToReport.tsx index 082423d..f28b3a9 100644 --- a/src/app/casos/components/HowToReport.tsx +++ b/src/app/casos/components/HowToReport.tsx @@ -4,7 +4,7 @@ import { otherLogos } from '~/reporta/' const HowToReport = () => { return (
      -

      ¿QUÉ Y CÓMO REPORTAR? +

      ¿QUÉ Y CÓMO REPORTAR?

      diff --git a/src/app/casos/page.tsx b/src/app/casos/page.tsx index 196b2b1..01cca87 100644 --- a/src/app/casos/page.tsx +++ b/src/app/casos/page.tsx @@ -32,8 +32,8 @@ const Casos = () => {
      -

      LLEGÓ TARDE PARA ELLOS

      -

      +

      LLEGÓ TARDE PARA ELLOS

      +

      TE CONTAMOS QUIÉNES SON Y CUÁL ES SU HISTORIA

      diff --git a/src/app/components/CollapseNavBar.tsx b/src/app/components/CollapseNavBar.tsx index b38406c..fabab13 100644 --- a/src/app/components/CollapseNavBar.tsx +++ b/src/app/components/CollapseNavBar.tsx @@ -12,7 +12,7 @@ const CollapseNavBar = () => { const navElemsSize = "w-8 h-8" if (!showMenu) burgerMenuClass = 'hidden opacity-0' - else burgerMenuClass = 'flex flex-col items-center content-center z-20 fixed top-0 left-0 bg-der-black w-full h-full opacity-100' + else burgerMenuClass = 'flex flex-col items-center content-center z-20 fixed top-0 left-0 bg-black w-full h-full opacity-100' return ( <> @@ -35,7 +35,7 @@ const CollapseNavBar = () => { -
        +
      diff --git a/src/app/components/Footer.tsx b/src/app/components/Footer.tsx index fac3638..7f404ff 100644 --- a/src/app/components/Footer.tsx +++ b/src/app/components/Footer.tsx @@ -22,7 +22,7 @@ const Footer = () => { className="block h-2/3 w-auto" priority /> -
      +
      Desarrollado por Democracia en Red @@ -67,7 +67,7 @@ const Footer = () => {
      -

      contacto@democraciaenred.org

      +

      contacto@democraciaenred.org

      diff --git a/src/app/components/LandingArticles.tsx b/src/app/components/LandingArticles.tsx index 9baa414..d7016e0 100644 --- a/src/app/components/LandingArticles.tsx +++ b/src/app/components/LandingArticles.tsx @@ -25,7 +25,7 @@ const LandingArticles = async () => { <> {articles.length > 0 && ( <> -

      Blog

      +

      Blog

      {articles.map((story: ISbStoryData) => )}
      diff --git a/src/app/components/LandingTopics.tsx b/src/app/components/LandingTopics.tsx index 97ccbbb..3cdcabc 100644 --- a/src/app/components/LandingTopics.tsx +++ b/src/app/components/LandingTopics.tsx @@ -29,7 +29,7 @@ const Card = ({ backgroundColor, title, description, size }: { backgroundColor: const LandingTopics = () => { return (
      -

      ¿QUÉ ES #DatosEnFuga?

      +

      ¿QUÉ ES #DatosEnFuga?

      Cuidar tus datos no solo depende de que tengas una contraseña segura

      { return ( <> diff --git a/src/app/components/SiteMapFooter.tsx b/src/app/components/SiteMapFooter.tsx index 8982da1..07cb89f 100644 --- a/src/app/components/SiteMapFooter.tsx +++ b/src/app/components/SiteMapFooter.tsx @@ -7,7 +7,7 @@ const SiteMapFooter = () => { return (
      -

      Un proyecto de

      +

      Un proyecto de

      Democracia en Red Democracia en Red diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 5ca3c98..d5c532a 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -107,7 +107,7 @@ export default function RootLayout({ return ( - + {children} diff --git a/src/app/loading.tsx b/src/app/loading.tsx index 4b9fec1..edfb1c9 100644 --- a/src/app/loading.tsx +++ b/src/app/loading.tsx @@ -1,7 +1,7 @@ const Loading = () => { return (
      -

      datos en fuga

      +

      datos en fuga

      ) } diff --git a/src/app/page.tsx b/src/app/page.tsx index 9318118..de26941 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -22,12 +22,12 @@ export default function Home() {
      -

      #DatosEnFuga

      -

      ¿QUÉ ESTÁ PASANDO EN ARGENTINA?

      +

      #DatosEnFuga

      +

      ¿QUÉ ESTÁ PASANDO EN ARGENTINA?

      -

      CIBERINCIDENTES EN ARGENTINA

      +

      CIBERINCIDENTES EN ARGENTINA

      @@ -88,7 +88,7 @@ export default function Home() { style={{ backgroundImage: `url(https://democraciaenred.github.io/datosenfuga-next/home/DER.png)` }}>
      -

      Acerca de

      +

      Acerca de

      Queremos que el Estado asegure estándares de ciberseguridad y que atienda a las alarmas que suenan por todos lados. Queremos que el Estado deje de perseguir penalmente a quienes identifican, denuncian y reportan vulnerabilidades informáticas.

      diff --git a/src/app/reporta/page.tsx b/src/app/reporta/page.tsx index 8e69619..091552d 100644 --- a/src/app/reporta/page.tsx +++ b/src/app/reporta/page.tsx @@ -16,7 +16,7 @@ const Reportes = () => { height={356} priority /> -

      ¿ENCONTRASTE UNA FALLA DE SEGURIDAD Y TEMÉS REPORTARLA?

      +

      ¿ENCONTRASTE UNA FALLA DE SEGURIDAD Y TEMÉS REPORTARLA?

      ¿CÓMO REPORTAR SEGURO? @@ -55,7 +55,7 @@ const Reportes = () => { REPORTÁ -

      ¿CÓMO TE PROTEGEMOS?

      +

      ¿CÓMO TE PROTEGEMOS?

      {squaresData2.map((square) => { @@ -112,7 +112,7 @@ const Reportes = () => {
      -

      Entonces, ¿Qué y cómo reportar?

      +

      Entonces, ¿Qué y cómo reportar?

      La Fundación Via Libre se encarga de recibir reportes sobre defectos en aplicaciones empleadas por organizaciones públicas o privadas que afecten derechos de las personas. En particular, cuando se ponen en riesgo sus datos personales. Así, si encontraste una falla en una aplicación que permite que alguien no autorizado extraiga o modifique datos, tuyos o de otras personas, este es el lugar para poder informarlo. También sirve para informar sobre vulnerabilidades potenciales, por ejemplo si encontraste que un sitio está corriendo una versión obsoleta (por "obsoleta" entendemos una versión que ya no recibe soporte ni parches de seguridad) o insegura de software.

      @@ -136,14 +136,14 @@ const Reportes = () => {
      -

      ¿QUÉ SE HACE CON TUS REPORTES?

      +

      ¿QUÉ SE HACE CON TUS REPORTES?

      La Fundación Via Libre se encarga de recibir reportes anónimos sobre fallas de ciberseguridad. Trabajamos para proteger la identidad de quienes nos informan y tomamos medidas para asegurarnos de que se les dé el seguimiento adecuado. En caso de ser relevante, presentamos los informes a organismos competentes, además de explorar mecanismos de reclamo judiciales. Tu seguridad y confidencialidad son nuestra prioridad.

      -

      SOBRE EL PROYECTO

      +

      SOBRE EL PROYECTO

      Desde Fundación Vía Libre, ODIA y Democracia en Red realizamos todos los esfuerzos técnicos para no conservar datos personales a través de los reportes recibidos. Tal como se puede consultar en la sección “¿Cómo te protegemos?”, la información que envíes es absolutamente anónima para nosotros: la plataforma está diseñada de forma tal que únicamente conserva el contenido presentado en la denuncia y genera en consecuencia un código único para identificarla, sin quedar asociada a quien la realiza. No accedemos a ni conservamos registros que permitan individualizar o identificar a quienes completan el formulario: no empleamos ningún mecanismo para trazar tu conexión ni guardamos registro de las direcciones de red desde las que te hayas conectado o cualquier otro metadato que pueda identificarte. De todas formas, recomendamos como precaución general no incluir información personal y, en lo posible, acceder a través del navegador TOR.

      From 1c8934da22d65b9b9969efa223978d4709e0f3b2 Mon Sep 17 00:00:00 2001 From: Gerardo Rodriguez Date: Fri, 24 May 2024 18:06:06 -0300 Subject: [PATCH 10/11] fonts cleanup + collapse navbar style --- src/app/abc/components/Subtopic.tsx | 2 +- src/app/abc/page.tsx | 2 +- src/app/components/NavLinks.tsx | 4 +- src/app/layout.tsx | 62 ++--------------------------- tailwind.config.ts | 12 +++--- 5 files changed, 14 insertions(+), 68 deletions(-) diff --git a/src/app/abc/components/Subtopic.tsx b/src/app/abc/components/Subtopic.tsx index b16ccbe..724e001 100644 --- a/src/app/abc/components/Subtopic.tsx +++ b/src/app/abc/components/Subtopic.tsx @@ -4,7 +4,7 @@ import { SubtopicIF } from "./SubtopicsMap" const Subtopic = ({ subtopic }: { subtopic: SubtopicIF }) => { return ( <> - {/*

      {subtopic?.title}

      */} + {/*

      {subtopic?.title}

      */}
      {subtopic?.details.map((detail, i) => { return ( diff --git a/src/app/abc/page.tsx b/src/app/abc/page.tsx index 6845416..746809d 100644 --- a/src/app/abc/page.tsx +++ b/src/app/abc/page.tsx @@ -61,7 +61,7 @@ const page = () => {
      {/*
      -

      videos informativos

      +

      videos informativos

      diff --git a/src/app/components/NavLinks.tsx b/src/app/components/NavLinks.tsx index ff47636..8ef1f7e 100644 --- a/src/app/components/NavLinks.tsx +++ b/src/app/components/NavLinks.tsx @@ -26,9 +26,11 @@ const NavLinks = () => { return ( <> - +
    2. + Datos en Fuga logo +
    3. {links.map((link, i) => { return (
    4. diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d5c532a..171be66 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,12 +1,10 @@ import type { Metadata } from 'next' -import { Inter, Lexend_Deca, Open_Sans, Raleway, Roboto, Monda, Mada, Kanit } from 'next/font/google' -import localFont from 'next/font/local' +import { Monda, Mada, Kanit } from 'next/font/google' import './globals.css' import NavBar from './components/NavBar' import { storyblokInit, apiPlugin } from "@storyblok/react"; import ScrollTopButton from './components/ScrollTopButton' -// import Footer from './components/Footer' import GoogleAnalytics from './components/GoogleAnalytics' storyblokInit({ @@ -14,28 +12,6 @@ storyblokInit({ use: [apiPlugin] }); -const inter = Inter({ - subsets: ['latin'], - variable: '--font-inter' -}) -const lexendDeca = Lexend_Deca({ - subsets: ['latin'], - variable: '--font-lexend-deca' -}) -const raleway = Raleway({ - subsets: ['latin'], - variable: '--font-raleway' -}) -const roboto = Roboto({ - weight: ['400', '700'], - style: ['normal', 'italic'], - subsets: ['latin'], - variable: '--font-roboto' -}) -const openSans = Open_Sans({ - subsets: ['latin'], - variable: '--font-open-sans' -}) const monda = Monda({ subsets: ['latin'], weight: ['400', '700'], @@ -52,37 +28,6 @@ const kanit = Kanit({ variable: '--font-kanit' }) -const nippo = localFont({ - src: [ - { - path: './fonts/NIPPO-EXTRALIGHT.otf', - weight: '200', - style: 'normal', - }, - { - path: './fonts/NIPPO-LIGHT.otf', - weight: '300', - style: 'normal', - }, - { - path: './fonts/NIPPO-REGULAR.otf', - weight: '400', - style: 'normal', - }, - { - path: './fonts/NIPPO-MEDIUM.otf', - weight: '500', - style: 'normal', - }, - { - path: './fonts/NIPPO-BOLD.otf', - weight: '700', - style: 'normal', - }, - ], - variable: '--font-nippo', - display: 'swap' -}) const metaTitle = 'Datos en Fuga | ¿Tu información está segura?' const metaDescription = 'Queremos que el Estado asegure estándares de ciberseguridad y que deje de perseguir hackers que realizan denuncias.' @@ -92,7 +37,7 @@ export const metadata: Metadata = { title: metaTitle, description: metaDescription, colorScheme: 'dark', - openGraph:{ + openGraph: { title: metaTitle, description: metaDescription } @@ -107,11 +52,10 @@ export default function RootLayout({ return ( - + {children} - {/*