Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Coming soon pages for puzzle and leaderboard #72

Merged
merged 1 commit into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/app/(client)/(pages)/crossword/_components/question-box.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import Image from "next/image";

export default function QuestionBox() {
return (
<div className="flex gap-1">
<Image
alt="start"
src="/assets/question-box.png"
width={50}
height={50}
/>
<Image
alt="start"
src="/assets/question-box.png"
width={50}
height={50}
/>
<Image
alt="start"
src="/assets/question-box.png"
width={50}
height={50}
/>
</div>
);
}
34 changes: 34 additions & 0 deletions src/app/(client)/(pages)/crossword/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import Image from "next/image";
import QuestionBox from "./_components/question-box";

export default function Page() {
return (
<div className="w-full h-full relative bg-slate-900">
<Image
alt="Mountains"
src="/assets/bg-img.webp"
layout="fill"
objectFit="cover"
/>
<div className="w-full h-[85vh] relative flex justify-center items-center flex-col gap-8">
<Image
alt="start"
src="/assets/start.png"
width={150}
height={150}
className="animate-bounce hover:animate-spin"
/>
<h1
className="text-black text-5xl text-center "
style={{
textShadow:
"2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff",
}}
>
The Crossword will be available when the event starts!
</h1>
<QuestionBox />
</div>
</div>
);
}
26 changes: 26 additions & 0 deletions src/app/(client)/(pages)/leaderboard/_components/question-box.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import Image from "next/image";

export default function QuestionBox() {
return (
<div className="flex gap-1">
<Image
alt="start"
src="/assets/question-box.png"
width={50}
height={50}
/>
<Image
alt="start"
src="/assets/question-box.png"
width={50}
height={50}
/>
<Image
alt="start"
src="/assets/question-box.png"
width={50}
height={50}
/>
</div>
);
}
39 changes: 33 additions & 6 deletions src/app/(client)/(pages)/leaderboard/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,34 @@
import React from 'react'
import Image from "next/image";
import QuestionBox from "./_components/question-box";

export default function LeaderboardPage() {
return (
<div>Leaderboard</div>
)
}
export default function Page() {
return (
<div className="w-full h-full relative bg-slate-900">
<Image
alt="Mountains"
src="/assets/bg-img.webp"
layout="fill"
objectFit="cover"
/>
<div className="w-full h-[85vh] relative flex justify-center items-center flex-col gap-8">
<Image
alt="start"
src="/assets/start.png"
width={150}
height={150}
className="animate-bounce hover:animate-spin"
/>
<h1
className="text-black text-5xl text-center "
style={{
textShadow:
"2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff",
}}
>
The Leaderboard will be available when the event starts!
</h1>
<QuestionBox />
</div>
</div>
);
}
4 changes: 2 additions & 2 deletions src/data/nav/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const NavigationLinks: INavBar[] = [
},
{
id: 2,
title: "PUZZLES",
link: "/",
title: "PUZZLE",
link: "/crossword",
},
{
id: 3,
Expand Down
Loading