From 379a1272f61833b9b4d7304b91c5c339effb6c7e Mon Sep 17 00:00:00 2001 From: Miguel Nieto <39246879+miguelnietoa@users.noreply.github.com> Date: Wed, 30 Oct 2024 20:00:48 -0500 Subject: [PATCH] fix: Update NavBar options and fix mobile behaviour --- all-organizers.json => all-founders.json | 20 +++++++------- jsconfig.json | 6 ++--- .../aldair-moreno.jpeg | Bin .../brianith-navarro.jpeg | Bin .../fabian-altahona.png | Bin .../francisco-quintero.jpg | Bin .../gabriel-coronado.jpg | Bin .../{organizers => founders}/javier-daza.jpeg | Bin .../{organizers => founders}/jesus-bossa.jpeg | Bin .../jesus-hernandez.jpeg | Bin .../{organizers => founders}/kelly-villa.png | Bin .../{organizers => founders}/luis-porras.jpg | Bin schedule.json | 4 +-- src/components/Header/index.js | 4 +-- src/components/Menu/index.js | 25 ++++++++++++------ src/pages/index.js | 24 ++++++++--------- 16 files changed, 46 insertions(+), 37 deletions(-) rename all-organizers.json => all-founders.json (77%) rename public/images/{organizers => founders}/aldair-moreno.jpeg (100%) rename public/images/{organizers => founders}/brianith-navarro.jpeg (100%) rename public/images/{organizers => founders}/fabian-altahona.png (100%) rename public/images/{organizers => founders}/francisco-quintero.jpg (100%) rename public/images/{organizers => founders}/gabriel-coronado.jpg (100%) rename public/images/{organizers => founders}/javier-daza.jpeg (100%) rename public/images/{organizers => founders}/jesus-bossa.jpeg (100%) rename public/images/{organizers => founders}/jesus-hernandez.jpeg (100%) rename public/images/{organizers => founders}/kelly-villa.png (100%) rename public/images/{organizers => founders}/luis-porras.jpg (100%) diff --git a/all-organizers.json b/all-founders.json similarity index 77% rename from all-organizers.json rename to all-founders.json index 49bb63e..0444958 100644 --- a/all-organizers.json +++ b/all-founders.json @@ -1,8 +1,8 @@ { - "organizers": [ + "founders": [ { "name": "Jesus Hernandez", - "image": "/images/organizers/jesus-hernandez.jpeg", + "image": "/images/founders/jesus-hernandez.jpeg", "social": { "twitter": "https://twitter.com/jesuhrz", "github": "https://github.com/jesuhrz", @@ -11,7 +11,7 @@ }, { "name": "Kelly Villa", - "image": "/images/organizers/kelly-villa.png", + "image": "/images/founders/kelly-villa.png", "social": { "twitter": "https://twitter.com/02kellyv", "github": "https://github.com/02KellyV" @@ -19,7 +19,7 @@ }, { "name": "Brianith Navarro", - "image": "/images/organizers/brianith-navarro.jpeg", + "image": "/images/founders/brianith-navarro.jpeg", "social": { "twitter": "https://twitter.com/briaenrose", "github": "https://github.com/briaenrose" @@ -27,7 +27,7 @@ }, { "name": "Javier Daza", - "image": "/images/organizers/javier-daza.jpeg", + "image": "/images/founders/javier-daza.jpeg", "social": { "twitter": "https://twitter.com/pyjavo", "github": "https://github.com/pyjavo", @@ -36,7 +36,7 @@ }, { "name": "Aldair Moreno", - "image": "/images/organizers/aldair-moreno.jpeg", + "image": "/images/founders/aldair-moreno.jpeg", "social": { "twitter": "https://twitter.com/_aldamc", "github": "https://github.com/AldairMC", @@ -45,7 +45,7 @@ }, { "name": "Jesus Bossa", - "image": "/images/organizers/jesus-bossa.jpeg", + "image": "/images/founders/jesus-bossa.jpeg", "social": { "twitter": "https://twitter.com/jesMakinox", "github": "https://github.com/makinox", @@ -54,7 +54,7 @@ }, { "name": "Fabian Altahona", - "image": "/images/organizers/fabian-altahona.png", + "image": "/images/founders/fabian-altahona.png", "social": { "twitter": "https://twitter.com/fabolivar23", "github": "https://github.com/fabolivar" @@ -62,7 +62,7 @@ }, { "name": "Luis Porras", - "image": "/images/organizers/luis-porras.jpg", + "image": "/images/founders/luis-porras.jpg", "social": { "twitter": "https://twitter.com/lporras16", "github": "https://github.com/lporras", @@ -71,7 +71,7 @@ }, { "name": "Francisco Quintero", - "image": "/images/organizers/francisco-quintero.jpg", + "image": "/images/founders/francisco-quintero.jpg", "social": { "twitter": "https://twitter.com/cescquintero", "github": "https://github.com/cesc1989" diff --git a/jsconfig.json b/jsconfig.json index cac64e4..5433bd9 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -7,8 +7,8 @@ "@/all-communities": [ "./all-communities.json" ], - "@/all-organizers": [ - "./all-organizers.json" + "@/all-founders": [ + "./all-founders.json" ], "@/all-social-media": [ "./all-social-media.json" @@ -21,4 +21,4 @@ ], } } -} \ No newline at end of file +} diff --git a/public/images/organizers/aldair-moreno.jpeg b/public/images/founders/aldair-moreno.jpeg similarity index 100% rename from public/images/organizers/aldair-moreno.jpeg rename to public/images/founders/aldair-moreno.jpeg diff --git a/public/images/organizers/brianith-navarro.jpeg b/public/images/founders/brianith-navarro.jpeg similarity index 100% rename from public/images/organizers/brianith-navarro.jpeg rename to public/images/founders/brianith-navarro.jpeg diff --git a/public/images/organizers/fabian-altahona.png b/public/images/founders/fabian-altahona.png similarity index 100% rename from public/images/organizers/fabian-altahona.png rename to public/images/founders/fabian-altahona.png diff --git a/public/images/organizers/francisco-quintero.jpg b/public/images/founders/francisco-quintero.jpg similarity index 100% rename from public/images/organizers/francisco-quintero.jpg rename to public/images/founders/francisco-quintero.jpg diff --git a/public/images/organizers/gabriel-coronado.jpg b/public/images/founders/gabriel-coronado.jpg similarity index 100% rename from public/images/organizers/gabriel-coronado.jpg rename to public/images/founders/gabriel-coronado.jpg diff --git a/public/images/organizers/javier-daza.jpeg b/public/images/founders/javier-daza.jpeg similarity index 100% rename from public/images/organizers/javier-daza.jpeg rename to public/images/founders/javier-daza.jpeg diff --git a/public/images/organizers/jesus-bossa.jpeg b/public/images/founders/jesus-bossa.jpeg similarity index 100% rename from public/images/organizers/jesus-bossa.jpeg rename to public/images/founders/jesus-bossa.jpeg diff --git a/public/images/organizers/jesus-hernandez.jpeg b/public/images/founders/jesus-hernandez.jpeg similarity index 100% rename from public/images/organizers/jesus-hernandez.jpeg rename to public/images/founders/jesus-hernandez.jpeg diff --git a/public/images/organizers/kelly-villa.png b/public/images/founders/kelly-villa.png similarity index 100% rename from public/images/organizers/kelly-villa.png rename to public/images/founders/kelly-villa.png diff --git a/public/images/organizers/luis-porras.jpg b/public/images/founders/luis-porras.jpg similarity index 100% rename from public/images/organizers/luis-porras.jpg rename to public/images/founders/luis-porras.jpg diff --git a/schedule.json b/schedule.json index 25caa21..59174f1 100644 --- a/schedule.json +++ b/schedule.json @@ -5,14 +5,14 @@ "title": "\"Creando conexiones auténticas a través de la conversación\"", "name": "Brianith Navarro", "time": "9:15 AM - 9:35 AM", - "photo": "/images/organizers/brianith-navarro.jpeg" + "photo": "/images/founders/brianith-navarro.jpeg" }, { "label": "red", "title": "\"Backend: Más allá de las APIs\"", "name": "Gabriel Coronado", "time": "9:40 AM - 10:10 AM", - "photo": "/images/organizers/gabriel-coronado.jpg" + "photo": "/images/founders/gabriel-coronado.jpg" }, { "label": "white", diff --git a/src/components/Header/index.js b/src/components/Header/index.js index a8fff30..0f3004f 100644 --- a/src/components/Header/index.js +++ b/src/components/Header/index.js @@ -43,7 +43,7 @@ export function Header() { 'after:md:h-full': scrollTop, })} > - +
Caribe Dev logo @@ -58,7 +58,7 @@ export function Header() {
- + diff --git a/src/components/Menu/index.js b/src/components/Menu/index.js index 67fe626..73487e0 100644 --- a/src/components/Menu/index.js +++ b/src/components/Menu/index.js @@ -1,23 +1,32 @@ import classNames from 'classnames' import Link from 'next/link' +import { useCallback } from 'react' + +export function Menu({ className, isOpen, setOpen }) { + + const onClick = useCallback(() => { + if (isOpen) setOpen(false) + }) -export function Menu({ className, isOpen }) { return (