-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add location, organizers, information and attendees components
- Loading branch information
1 parent
c76ae75
commit b53bfbb
Showing
17 changed files
with
1,762 additions
and
92 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
app/(transition)/(root)/events/[id]/_components/Attendees/Attendees.tsx
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,20 @@ | ||
import { FC } from "react"; | ||
import { AttendeesTypes } from "./types"; | ||
import { UserCircleIcon } from "@heroicons/react/24/outline"; | ||
|
||
export const Attendees: FC<AttendeesTypes> = ({ attendees }) => { | ||
return ( | ||
<section className="flex w-full flex-col gap-4 bg-slate-900 p-6 dark:bg-slate-50"> | ||
<h2 className="text-xl text-slate-50 dark:text-slate-900 md:text-4xl"> | ||
{`Asistentes (${attendees?.length || 0})`} | ||
</h2> | ||
<ol className="flex flex-wrap"> | ||
{attendees?.map(({email}) => ( | ||
<li className="text-slate-50 dark:text-slate-900" key={email}> | ||
<UserCircleIcon className="h-7 w-7 shrink-0" /> | ||
</li> | ||
))} | ||
</ol> | ||
</section> | ||
); | ||
}; |
10 changes: 10 additions & 0 deletions
10
app/(transition)/(root)/events/[id]/_components/Attendees/types.d.ts
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,10 @@ | ||
type Attendee = { | ||
name: string; | ||
lastname: string; | ||
email: string; | ||
image: string; | ||
} | ||
|
||
export type AttendeesTypes = { | ||
attendees: Attendee[]; | ||
}; |
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
6 changes: 5 additions & 1 deletion
6
app/(transition)/(root)/events/[id]/_components/Hero/types.d.ts
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
type Location = { | ||
address: string; | ||
} | ||
|
||
export type HeroTypes = { | ||
name: string; | ||
location: string; | ||
location: Location; | ||
organizer: string; | ||
datetime: string; | ||
}; |
18 changes: 18 additions & 0 deletions
18
app/(transition)/(root)/events/[id]/_components/Information/Information.tsx
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,18 @@ | ||
import { FC } from "react"; | ||
import Markdown from "react-markdown"; | ||
import remarkGfm from "remark-gfm"; | ||
import { InformationTypes } from "./types"; | ||
|
||
export const Information: FC<InformationTypes> = ({ information }) => ( | ||
<section className="flex w-full flex-col gap-4 bg-slate-900 p-6 dark:bg-slate-50"> | ||
<h2 className="text-xl text-slate-50 dark:text-slate-900 md:text-4xl"> | ||
El Evento | ||
</h2> | ||
<Markdown | ||
className="prose prose-sm prose-invert dark:prose lg:prose-base" | ||
remarkPlugins={[remarkGfm]} | ||
> | ||
{information} | ||
</Markdown> | ||
</section> | ||
); |
3 changes: 3 additions & 0 deletions
3
app/(transition)/(root)/events/[id]/_components/Information/types.d.ts
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,3 @@ | ||
export type InformationTypes = { | ||
information: string; | ||
}; |
23 changes: 13 additions & 10 deletions
23
app/(transition)/(root)/events/[id]/_components/Location/Location.tsx
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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
import { GoogleMapsEmbed } from '@next/third-parties/google' | ||
import { FC } from "react"; | ||
import { GoogleMapsEmbed } from "@next/third-parties/google"; | ||
import { LocationType } from "./types"; | ||
|
||
export const Location = () => { | ||
export const Location: FC<LocationType> = ({ location }) => { | ||
return ( | ||
<section className="flex w-full flex-col gap-2 bg-slate-900 p-6 dark:bg-slate-50"> | ||
<h2 className='text-xl text-slate-50 dark:text-slate-900 md:text-4xl'>Lugar</h2> | ||
<section className="flex w-full flex-col gap-4 bg-slate-900 p-6 dark:bg-slate-50"> | ||
<h2 className="text-xl text-slate-50 dark:text-slate-900 md:text-4xl"> | ||
Lugar | ||
</h2> | ||
<GoogleMapsEmbed | ||
apiKey={process.env.NEXT_PUBLIC_GOOGLE_MAPS_KEY} | ||
height={400} | ||
width="100%" | ||
mode="place" | ||
q="Brooklyn+Bridge,New+York,NY" | ||
q="Los Jesuitas 881, 7501300 Providencia, Región Metropolitana" | ||
/> | ||
<p className='text-slate-50 dark:text-slate-900'> | ||
Hub Providencia, Calle Falsa, 1234, Santiago Centro, Santiago, Chile. | ||
<p className="text-slate-50 dark:text-slate-900"> | ||
{location?.address} | ||
</p> | ||
<p className='text-slate-50 dark:text-slate-900'> | ||
Más descripción de como llegar al evento. Tocar la puerta X, subir por las escaleras de la derecha, etc. | ||
<p className="text-slate-50 dark:text-slate-900"> | ||
{location?.information} | ||
</p> | ||
</section> | ||
); | ||
}; | ||
|
8 changes: 8 additions & 0 deletions
8
app/(transition)/(root)/events/[id]/_components/Location/types.d.ts
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,8 @@ | ||
type Location = { | ||
address: string; | ||
information: string; | ||
}; | ||
|
||
export type LocationType = { | ||
location: Location; | ||
}; |
23 changes: 23 additions & 0 deletions
23
app/(transition)/(root)/events/[id]/_components/Organizers/Organizers.tsx
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,23 @@ | ||
import { FC } from "react"; | ||
import { OrganizersTypes } from "./types"; | ||
import { UserCircleIcon } from "@heroicons/react/24/outline"; | ||
|
||
export const Organizers: FC<OrganizersTypes> = ({ organizers }) => { | ||
return ( | ||
<section className="flex w-full flex-col gap-4 bg-slate-900 p-6 dark:bg-slate-50"> | ||
<h2 className="text-xl text-slate-50 dark:text-slate-900 md:text-4xl"> | ||
Organizadores | ||
</h2> | ||
<ol className="flex flex-col gap-4"> | ||
{organizers?.map(({ name, lastname, email }) => ( | ||
<li key={email}> | ||
<span className="flex gap-2 text-slate-50 dark:text-slate-900"> | ||
<UserCircleIcon className="h-7 w-7 shrink-0" /> | ||
{`${name} ${lastname}`} | ||
</span> | ||
</li> | ||
))} | ||
</ol> | ||
</section> | ||
); | ||
}; |
10 changes: 10 additions & 0 deletions
10
app/(transition)/(root)/events/[id]/_components/Organizers/types.d.ts
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,10 @@ | ||
type Organizer = { | ||
name: string; | ||
lastname: string; | ||
email: string; | ||
image: string; | ||
} | ||
|
||
export type OrganizersTypes = { | ||
organizers: Organizer[]; | ||
}; |
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,172 @@ | ||
const information = ` | ||
# TechCon 2023: Innovación y Futuro | ||
## Descripción del Evento | ||
Bienvenidos a TechCon 2023, el evento anual líder donde la innovación, la tecnología y las ideas del futuro se encuentran. Durante tres días emocionantes, del 10 al 12 de septiembre, nos sumergiremos en el mundo de las últimas tendencias y desarrollos en el ámbito tecnológico. | ||
Con la presencia de expertos reconocidos a nivel mundial, TechCon 2023 será el lugar perfecto para expandir tus conocimientos, conectar con profesionales de la industria y descubrir las tecnologías que están dando forma a nuestro futuro. | ||
## Ponentes Destacados | ||
- **Dr. Ana Martínez**: Pionera en inteligencia artificial y aprendizaje automático. Con más de 20 años de experiencia, la Dra. Martínez compartirá su visión sobre cómo la IA está transformando los negocios y la sociedad. | ||
- **Carlos Hernández**: Experto en ciberseguridad y tecnologías blockchain. Carlos discutirá las últimas tendencias en seguridad digital y cómo la blockchain está revolucionando la forma en que pensamos sobre la privacidad y las transacciones online. | ||
- **Sarah Lee**: Innovadora en el campo de la realidad aumentada y virtual. Sarah nos llevará a través de un viaje por las aplicaciones prácticas de AR y VR en educación y entretenimiento. | ||
## Talleres y Sesiones Interactivas | ||
Participa en una variedad de talleres prácticos y sesiones interactivas dirigidas por líderes de la industria. Algunos de los temas incluyen: | ||
Desarrollo de aplicaciones con React y TypeScript: Aprende las mejores prácticas y técnicas avanzadas de manos de desarrolladores experimentados. | ||
Automatización con Python y FastAPI: Descubre cómo simplificar tus flujos de trabajo y mejorar la eficiencia en tus proyectos. | ||
Tecnologías emergentes en Cloud Computing: Explora las últimas innovaciones y soluciones en la nube. | ||
## Networking y Exposición | ||
TechCon 2023 también ofrece amplias oportunidades para networking. Conéctate con otros profesionales, encuentra posibles colaboradores y descubre nuevas oportunidades de carrera en nuestra feria de exposiciones, donde empresas líderes en tecnología presentarán sus productos y servicios más recientes. | ||
## Registro e Información Adicional | ||
¡No te pierdas esta oportunidad única de estar a la vanguardia de la tecnología! Para más información y para registrarte, visita nuestro sitio web: www.techcon2023.com. | ||
`; | ||
|
||
const location = { | ||
address: 'Los Jesuitas 881, 7501300 Providencia, Región Metropolitana', | ||
information: 'Más descripción de como llegar al evento. Tocar la puerta X, subir por las escaleras de la derecha, etc.' | ||
} | ||
|
||
const organizers = [ | ||
{ | ||
name: "Pillippa", | ||
lastname: "", | ||
email: "[email protected]", | ||
image: "string", | ||
}, | ||
{ | ||
name: "Felipe", | ||
lastname: "Torres", | ||
email: "[email protected]", | ||
image: "string", | ||
}, | ||
{ | ||
name: "Rod", | ||
lastname: "Bustamante", | ||
email: "[email protected]", | ||
image: "string", | ||
}, | ||
{ | ||
name: "Claudio", | ||
lastname: "Mágico", | ||
email: "[email protected]", | ||
image: "string", | ||
}, | ||
]; | ||
|
||
const attendees = [ | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
{ | ||
name: "Katherine", | ||
lastname: "Zboncak", | ||
email: "[email protected]", | ||
image: "", | ||
}, | ||
]; | ||
|
||
export const event = { | ||
name: "Javascript Meetup — Enero", | ||
organizer: "Javascript Chile", | ||
datetime: "Jueves, 27 Enero, 2024 | 6:30 PM", | ||
location, | ||
information, | ||
organizers, | ||
attendees, | ||
}; |
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.