diff --git a/app/(transition)/(root)/events/[id]/_components/Hero/Hero.tsx b/app/(transition)/(root)/events/[id]/_components/Hero/Hero.tsx index 5903977..14bd9c2 100644 --- a/app/(transition)/(root)/events/[id]/_components/Hero/Hero.tsx +++ b/app/(transition)/(root)/events/[id]/_components/Hero/Hero.tsx @@ -1,27 +1,31 @@ -// import { FC } from 'react'; -import { MapPinIcon } from '@heroicons/react/24/solid' +import { FC } from 'react'; +import { MapPinIcon } from '@heroicons/react/24/solid'; +import { HeroTypes } from './types'; -// export const Hero = ({ name, image, organizer, datime, location }) => ( -export const Hero = () => ( -
-
-
-

- Javascript Meetup — Enero -

-
-
-

por Javascript Chile

-

Jueves, 27 Enero, 2024 | 6:30 PM

-
-
- -

- Hub Providencia, Calle Falsa, 1234, Santiago -

+export const Hero: FC = ({ name, organizer, datetime, location }) => { + return ( +
+
+
+
+

+ {name} +

+
+
+

por {organizer}

+

{datetime}

+
+
+ +

+ {location} +

+
+
-
-
-); + + ); +}; diff --git a/app/(transition)/(root)/events/[id]/_components/Hero/types.d.ts b/app/(transition)/(root)/events/[id]/_components/Hero/types.d.ts index db84f56..b3ea211 100644 --- a/app/(transition)/(root)/events/[id]/_components/Hero/types.d.ts +++ b/app/(transition)/(root)/events/[id]/_components/Hero/types.d.ts @@ -1,6 +1,5 @@ export type HeroTypes = { name: string; - image: string; location: string; organizer: string; datetime: string; diff --git a/app/(transition)/(root)/events/[id]/_components/Register/Register.tsx b/app/(transition)/(root)/events/[id]/_components/Register/Register.tsx new file mode 100644 index 0000000..1c4d8f4 --- /dev/null +++ b/app/(transition)/(root)/events/[id]/_components/Register/Register.tsx @@ -0,0 +1,22 @@ +import { Button } from '@/components/ui/button'; +import { InformationCircleIcon } from '@heroicons/react/24/outline'; + +export const Register = () => { + return ( +
+

Registro

+
    +
  1. + + El evento requiere aprobación de los organizadores +
  2. +
  3. + + Apúrate! Quedan pocas entradas +
  4. +
+

Para registrarte, por favor haz click en el botón.

+ +
+ ); +}; diff --git a/app/(transition)/(root)/events/[id]/page.tsx b/app/(transition)/(root)/events/[id]/page.tsx index 8cecdb1..826a039 100644 --- a/app/(transition)/(root)/events/[id]/page.tsx +++ b/app/(transition)/(root)/events/[id]/page.tsx @@ -5,10 +5,10 @@ import { FetchExampleEventsQuery, } from "../../../../../src/components/features/LandingPageEvents/graphql/FetchExampleEvents.generated"; import { Hero } from "./_components/Hero/Hero"; +import { Register } from "./_components/Register/Register"; const event = { name: 'Javascript Meetup — Enero', - image: 'https://www.slingacademy.com/wp-content/uploads/2022/10/hero-image-example.webp', organizer: 'Javascript Chile', datetime: 'Jueves, 27 Enero, 2024 | 6:30 PM', location: 'Hub Providencia, Calle Falsa, 1234, Santiago' @@ -20,8 +20,11 @@ export default async function Event() { query: FetchExampleEventsDocument, }); return ( -
- +
+
+ + +
); } diff --git a/package-lock.json b/package-lock.json index 07403cb..560098b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -58,7 +58,7 @@ "eslint-plugin-tailwindcss": "^3.13.0", "graphql-config": "^5.0.3", "prettier": "^3.1.1", - "prettier-plugin-tailwindcss": "^0.3.0", + "prettier-plugin-tailwindcss": "^0.4.0", "ts-node": "^10.9.1", "typescript": "^5.1.6" }, @@ -10297,9 +10297,9 @@ } }, "node_modules/prettier-plugin-tailwindcss": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.3.0.tgz", - "integrity": "sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.4.1.tgz", + "integrity": "sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==", "dev": true, "engines": { "node": ">=12.17.0" @@ -10310,7 +10310,7 @@ "@shopify/prettier-plugin-liquid": "*", "@shufo/prettier-plugin-blade": "*", "@trivago/prettier-plugin-sort-imports": "*", - "prettier": ">=2.2.0", + "prettier": "^2.2 || ^3.0", "prettier-plugin-astro": "*", "prettier-plugin-css-order": "*", "prettier-plugin-import-sort": "*", diff --git a/package.json b/package.json index 7ee7063..c61d7a3 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "eslint-plugin-tailwindcss": "^3.13.0", "graphql-config": "^5.0.3", "prettier": "^3.1.1", - "prettier-plugin-tailwindcss": "^0.3.0", + "prettier-plugin-tailwindcss": "^0.4.0", "ts-node": "^10.9.1", "typescript": "^5.1.6" }, diff --git a/src/components/Navbar/ThemeSwitcher.tsx b/src/components/Navbar/ThemeSwitcher.tsx index b6ee497..c95640b 100644 --- a/src/components/Navbar/ThemeSwitcher.tsx +++ b/src/components/Navbar/ThemeSwitcher.tsx @@ -33,7 +33,7 @@ export function ThemeSwitcher() {