-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from Dosbodoke/develop
Festival
- Loading branch information
Showing
37 changed files
with
652 additions
and
298 deletions.
There are no files selected for viewing
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
File renamed without changes.
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
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 Image from "next/image"; | ||
import { useTranslations } from "next-intl"; | ||
import React from "react"; | ||
|
||
import { BorderBeam } from "@/components/ui/border-beam"; | ||
import { Link } from "@/navigation"; | ||
|
||
export const HeroPromoCard = () => { | ||
const t = useTranslations("festival"); | ||
|
||
return ( | ||
<Link | ||
href="/festival" | ||
className="relative flex h-52 w-full cursor-pointer items-end overflow-hidden rounded-md shadow-md sm:h-96 sm:rounded-2xl" | ||
> | ||
<Image | ||
className="absolute z-0" | ||
src="/cardBanner.JPG" | ||
alt="Person walking on a Highline" | ||
fill | ||
sizes="100vw" | ||
style={{ | ||
objectFit: "cover", | ||
objectPosition: "center", | ||
}} | ||
/> | ||
<BorderBeam className="z-50" duration={10} /> | ||
<div className="relative w-full bg-gradient-to-t from-neutral-700 from-20% to-transparent p-2 pt-4 text-white sm:p-4 sm:pt-8"> | ||
<p className="text-2xl font-bold sm:text-4xl"> | ||
Festival Chooselife 2024 | ||
</p> | ||
<p className="text-sm sm:text-base">{t("cardSubTitle")}</p> | ||
</div> | ||
</Link> | ||
); | ||
}; |
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,56 @@ | ||
import { cookies } from "next/headers"; | ||
import React from "react"; | ||
|
||
import { getHighline } from "@/app/actions/getHighline"; | ||
import { Ranking } from "@/components/Ranking"; | ||
import { TabsContent } from "@/components/ui/tabs"; | ||
import { useSupabaseServer } from "@/utils/supabase/server"; | ||
|
||
import { Highline } from "../../_components/Highline"; | ||
|
||
export const FestivalTabs = async () => { | ||
const cookieStore = cookies(); | ||
const supabase = useSupabaseServer(cookieStore); | ||
|
||
const { data: sectors } = await supabase | ||
.from("sector") | ||
.select("*, highline(id)"); | ||
|
||
const highline_ids = sectors?.flatMap((sector) => | ||
sector.highline.map((high) => high.id) | ||
); | ||
|
||
const { data: highlines } = await getHighline({ | ||
id: sectors?.flatMap((sector) => sector.highline.map((high) => high.id)), | ||
}); | ||
|
||
return ( | ||
<> | ||
<TabsContent className="mt-4" value="ranking"> | ||
<Ranking | ||
highlines_ids={highline_ids || []} | ||
visibleCategories={["cadenas", "distance", "fullLine"]} | ||
/> | ||
</TabsContent> | ||
<TabsContent className="mt-4" value="highlines"> | ||
{sectors?.map((sector) => ( | ||
<section key={sector.id}> | ||
<h2 className="mt-4 text-2xl font-bold">{sector.name}</h2> | ||
<div className="flex gap-8 overflow-x-auto"> | ||
{sector.highline.map((high) => { | ||
const highline = highlines?.find((h) => h.id === high.id); | ||
return highline ? ( | ||
<Highline | ||
key={highline.id} | ||
highline={highline} | ||
classname="flex-grow-0 flex-shrink-0 flex max-w-[18rem]" | ||
/> | ||
) : null; | ||
})} | ||
</div> | ||
</section> | ||
))} | ||
</TabsContent> | ||
</> | ||
); | ||
}; |
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,118 @@ | ||
import { ClockIcon } from "lucide-react"; | ||
import React from "react"; | ||
|
||
export const timeline = () => {}; | ||
|
||
// import { AvatarImage, AvatarFallback, Avatar } from "@/components/ui/avatar" | ||
|
||
export const Timeline = () => { | ||
return ( | ||
<div className="mx-auto w-full max-w-4xl p-6 sm:p-10"> | ||
<div className="relative grid gap-10 pl-6 after:absolute after:inset-y-0 after:left-0 after:w-px after:bg-gray-500/20 dark:after:bg-gray-400/20"> | ||
<div className="relative grid gap-1 text-sm"> | ||
<div className="absolute left-0 top-1 z-10 aspect-square w-3 translate-x-[-29.5px] rounded-full bg-gray-900 dark:bg-gray-50" /> | ||
<div className="flex items-center justify-between"> | ||
<div className="font-medium">Ínicio de festival</div> | ||
<div className="inline-flex items-center rounded-md bg-green-500 px-2 py-0.5 text-xs font-semibold text-gray-50 shadow transition-colors hover:bg-green-500/80 focus:outline-none focus:ring-2 focus:ring-green-700 focus:ring-offset-2 dark:border-gray-800 dark:bg-green-500 dark:text-gray-50 dark:hover:bg-green-500/80 dark:focus:ring-green-300"> | ||
<ClockIcon className="mr-1 h-3 w-3" /> | ||
9:00 AM | ||
</div> | ||
</div> | ||
<div className="text-gray-500 dark:text-gray-400"> | ||
Abertura oficila das vias de Highline | ||
</div> | ||
</div> | ||
<div className="relative grid gap-1 text-sm"> | ||
<div className="absolute left-0 top-1 z-10 aspect-square w-3 translate-x-[-29.5px] rounded-full bg-gray-900 dark:bg-gray-50" /> | ||
<div className="flex items-center justify-between"> | ||
<div className="font-medium">Oficina de resgate</div> | ||
<div className="inline-flex items-center rounded-md bg-green-500 px-2 py-0.5 text-xs font-semibold text-gray-50 shadow transition-colors hover:bg-green-500/80 focus:outline-none focus:ring-2 focus:ring-green-700 focus:ring-offset-2 dark:border-gray-800 dark:bg-green-500 dark:text-gray-50 dark:hover:bg-green-500/80 dark:focus:ring-green-300"> | ||
<ClockIcon className="mr-1 h-3 w-3" /> | ||
11:00 AM | ||
</div> | ||
</div> | ||
<div className="text-gray-500 dark:text-gray-400"> | ||
Ministrada por ..., você vai aprender tudo sobre resgate | ||
</div> | ||
<div className="flex items-center space-x-2"> | ||
{/* <img | ||
alt="Sponsor Logo" | ||
className="rounded-full bg-gray-600" | ||
height="40" | ||
src="/placeholder.svg" | ||
style={{ | ||
aspectRatio: "40/40", | ||
objectFit: "cover", | ||
}} | ||
width="40" | ||
/> */} | ||
<div> | ||
<div className="font-medium">Pessoa XXX</div> | ||
<div className="text-sm text-gray-500 dark:text-gray-400"> | ||
Highliner | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="relative grid gap-1 text-sm"> | ||
<div className="absolute left-0 top-1 z-10 aspect-square w-3 translate-x-[-29.5px] rounded-full bg-gray-900 dark:bg-gray-50" /> | ||
<div className="flex items-center justify-between"> | ||
<div className="font-medium">Panel Discussion</div> | ||
<div className="inline-flex items-center rounded-md bg-green-500 px-2 py-0.5 text-xs font-semibold text-gray-50 shadow transition-colors hover:bg-green-500/80 focus:outline-none focus:ring-2 focus:ring-green-700 focus:ring-offset-2 dark:border-gray-800 dark:bg-green-500 dark:text-gray-50 dark:hover:bg-green-500/80 dark:focus:ring-green-300"> | ||
<ClockIcon className="mr-1 h-3 w-3" /> | ||
2:00 PM | ||
</div> | ||
</div> | ||
<div className="text-gray-500 dark:text-gray-400"> | ||
Join our panel of experts for an insightful discussion on the future | ||
of the industry. | ||
</div> | ||
<div className="flex items-center space-x-2"> | ||
{/* <Avatar> | ||
<AvatarImage alt="Jane Smith" src="/placeholder-avatar.jpg" /> | ||
<AvatarFallback>JS</AvatarFallback> | ||
</Avatar> */} | ||
<div> | ||
<div className="font-medium">Jane Smith</div> | ||
<div className="text-sm text-gray-500 dark:text-gray-400"> | ||
Industry Analyst | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="relative grid gap-1 text-sm"> | ||
<div className="absolute left-0 top-1 z-10 aspect-square w-3 translate-x-[-29.5px] rounded-full bg-gray-900 dark:bg-gray-50" /> | ||
<div className="flex items-center justify-between"> | ||
<div className="font-medium">Networking Reception</div> | ||
<div className="inline-flex items-center rounded-md bg-green-500 px-2 py-0.5 text-xs font-semibold text-gray-50 shadow transition-colors hover:bg-green-500/80 focus:outline-none focus:ring-2 focus:ring-green-700 focus:ring-offset-2 dark:border-gray-800 dark:bg-green-500 dark:text-gray-50 dark:hover:bg-green-500/80 dark:focus:ring-green-300"> | ||
<ClockIcon className="mr-1 h-3 w-3" /> | ||
5:00 PM | ||
</div> | ||
</div> | ||
<div className="text-gray-500 dark:text-gray-400"> | ||
Join us for drinks and hors oeuvres to network with other attendees. | ||
</div> | ||
<div className="flex items-center space-x-2"> | ||
{/* <img | ||
alt="Sponsor Logo" | ||
className="rounded-lg" | ||
height="40" | ||
src="/placeholder.svg" | ||
style={{ | ||
aspectRatio: "40/40", | ||
objectFit: "cover", | ||
}} | ||
width="40" | ||
/> */} | ||
<div> | ||
<div className="font-medium">Globex Corporation</div> | ||
<div className="text-sm text-gray-500 dark:text-gray-400"> | ||
Gold Sponsor | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.