-
-
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.
chore: move events components to src/components folder
- Loading branch information
1 parent
b53bfbb
commit 876657b
Showing
16 changed files
with
169 additions
and
93 deletions.
There are no files selected for viewing
31 changes: 0 additions & 31 deletions
31
app/(transition)/(root)/events/[id]/_components/Hero/Hero.tsx
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
app/(transition)/(root)/events/[id]/_components/Hero/types.d.ts
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
app/(transition)/(root)/events/[id]/_components/Register/Register.tsx
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,5 +6,7 @@ type Attendee = { | |
} | ||
|
||
export type AttendeesTypes = { | ||
title: string; | ||
attendees: Attendee[]; | ||
className?: string; | ||
}; |
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 { HeroTypes } from "./types"; | ||
|
||
export const Hero: FC<HeroTypes> = ({ children, className }) => { | ||
return ( | ||
<section | ||
className={`flex h-80 w-full place-items-end bg-[url(https://images.unsplash.com/photo-1604014237800-1c9102c219da?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1770&q=80)] bg-cover bg-center bg-no-repeat md:h-96 ${ | ||
className ?? "" | ||
}`} | ||
> | ||
<div className="flex h-full w-full flex-col justify-end bg-slate-100/75 dark:bg-slate-900/75"> | ||
<div className="mx-auto flex w-full max-w-screen-xl px-4 py-8 md:grid-cols-12 lg:gap-8 xl:gap-0"> | ||
{children} | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
}; |
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,6 @@ | ||
import { ReactNode } from "react"; | ||
|
||
export type HeroTypes = { | ||
className?: string; | ||
children: ReactNode; | ||
}; |
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
2 changes: 2 additions & 0 deletions
2
...s/[id]/_components/Information/types.d.ts → src/components/Event/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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export type InformationTypes = { | ||
title: string; | ||
information: string; | ||
className?: string; | ||
}; |
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 |
---|---|---|
|
@@ -4,5 +4,7 @@ type Location = { | |
}; | ||
|
||
export type LocationType = { | ||
title: string; | ||
location: Location; | ||
className?: string; | ||
}; |
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,36 @@ | ||
import { Button } from "@/components/ui/button"; | ||
import { InformationCircleIcon } from "@heroicons/react/24/outline"; | ||
import { FC } from "react"; | ||
import { RegisterType } from "./types"; | ||
|
||
export const Register: FC<RegisterType> = ({ className }) => { | ||
return ( | ||
<section | ||
className={`flex w-full flex-col gap-4 bg-slate-900 p-6 dark:bg-slate-50 ${ | ||
className ?? "" | ||
}`} | ||
> | ||
<h2 className="text-xl text-slate-50 dark:text-slate-900 md:text-4xl"> | ||
Registro | ||
</h2> | ||
<ol> | ||
<li className="flex content-center gap-2 text-slate-50 dark:text-slate-900"> | ||
<InformationCircleIcon className="h-6 w-6 shrink-0" /> | ||
<span className="text-sm italic"> | ||
El evento requiere aprobación de los organizadores | ||
</span> | ||
</li> | ||
<li className="flex content-center gap-2 text-slate-50 dark:text-slate-900"> | ||
<InformationCircleIcon className="h-6 w-6 shrink-0" /> | ||
<span className="text-sm italic">Apúrate! Quedan pocas entradas</span> | ||
</li> | ||
</ol> | ||
<p className="text-slate-50 dark:text-slate-900"> | ||
Para registrarte, por favor haz click en el botón. | ||
</p> | ||
<Button variant={"secondary"} size={"lg"}> | ||
Registrarse | ||
</Button> | ||
</section> | ||
); | ||
}; |
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 RegisterType = { | ||
className?: string; | ||
}; |