diff --git a/public/icon-colored.svg b/public/icon-colored.svg new file mode 100644 index 0000000..956cce0 --- /dev/null +++ b/public/icon-colored.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/image/juri2.png b/public/image/juri2.png new file mode 100644 index 0000000..7093a6c Binary files /dev/null and b/public/image/juri2.png differ diff --git a/public/image/juri3.png b/public/image/juri3.png new file mode 100644 index 0000000..2f0fac3 Binary files /dev/null and b/public/image/juri3.png differ diff --git a/public/image/juri_placeholder.png b/public/image/juri_placeholder.png deleted file mode 100644 index 53a0ef8..0000000 Binary files a/public/image/juri_placeholder.png and /dev/null differ diff --git a/src/app/(main)/components/Hero.tsx b/src/app/(main)/components/Hero.tsx index d8a300f..14021eb 100644 --- a/src/app/(main)/components/Hero.tsx +++ b/src/app/(main)/components/Hero.tsx @@ -1,13 +1,15 @@ import { RightArrow } from "@/app/components/global/Icons"; import { SecondaryLinkButton } from "@/app/components/global/LinkButton"; import { H1, H3, LargeP, P } from "@/app/components/global/Text"; -import Image from "next/image"; - +import { getServerSession } from "@/lib/next-auth"; import dynamic from "next/dynamic"; +import Image from "next/image"; const Countdown = dynamic(() => import("./parts/Countdown"), { ssr: false }); -export default function Hero() { +export default async function Hero() { + const session = await getServerSession(); + return (
JAWARA - Daftar Sekarang + {session ? "Lihat Dashboard" : "Daftar Sekarang"} diff --git a/src/app/(main)/components/Juri.tsx b/src/app/(main)/components/Juri.tsx index cbee3b0..25b83f9 100644 --- a/src/app/(main)/components/Juri.tsx +++ b/src/app/(main)/components/Juri.tsx @@ -3,17 +3,23 @@ import { H3, P } from "@/app/components/global/Text"; import SectionWrapper from "@/app/components/global/Wrapper"; import Image from "next/image"; -const dummy = { - image: "/image/juri1.png", - name: "Adi Prasetyo Utomo", - title: "Juri", -}; - -const comingSoon = { - image: "/image/juri_placeholder.png", - name: "Coming Soon!", - title: "", -} +const juris = [ + { + image: "/image/juri1.png", + name: "Adi Prasetyo Utomo", + title: "Juri", + }, + { + image: "/image/juri2.png", + name: "Sendy Cahyono S.Tr.T", + title: "Juri", + }, + { + image: "/image/juri3.png", + name: "Peltu Herman Nurcahya", + title: "Juri", + }, +]; interface JuriCardProps { image: string; @@ -60,9 +66,9 @@ export default function Juri() {
- - - + + +
diff --git a/src/app/components/global/Navbar.tsx b/src/app/components/global/Navbar.tsx index 9d664af..a2759a7 100644 --- a/src/app/components/global/Navbar.tsx +++ b/src/app/components/global/Navbar.tsx @@ -40,7 +40,7 @@ export default function Navbar() {