-
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.
added requirements page; added flyer; cleaning up
- Loading branch information
Showing
12 changed files
with
100 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { NextPage } from "next"; | ||
import RequirementsPage from "@/templates/RequirementsPage"; | ||
|
||
const Requirements: NextPage = () => { | ||
return <RequirementsPage />; | ||
}; | ||
|
||
export default Requirements; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,52 @@ | ||
import Image from "@/components/Image"; | ||
import {requirements} from '@/constants/badgerequirements'; | ||
|
||
type MainProps = {}; | ||
|
||
interface Requirement { | ||
badge: string; | ||
age: string; | ||
grade: string; | ||
rank: string; | ||
cost: string; | ||
prerequisites: string; | ||
} | ||
|
||
const RequirementsTable: React.FC = () => { | ||
return ( | ||
<div> | ||
<table className="table-auto w-full border-collapse border border-n-300d"> | ||
<thead> | ||
<tr> | ||
<th title="Field #1">Merit Badge</th> | ||
<th title="Field #2">Min. Age:</th> | ||
<th title="Field #3">Min. Grade</th> | ||
<th title="Field #4">Min. Rank:</th> | ||
<th title="Field #6">Prerequisites</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{requirements.map((r: Requirement, index: number) => ( | ||
<tr key={index}> | ||
<td className="border border-n-300 px-4 py-2 text-left">{r.badge}</td> | ||
<td className="border border-n-300 px-4 py-2 text-left">{r.age}</td> | ||
<td className="border border-n-300 px-4 py-2 text-left">{r.grade}</td> | ||
<td className="border border-n-300 px-4 py-2 text-left">{r.rank}</td> | ||
<td className="border border-n-300 px-4 py-2 text-left">{r.prerequisites}</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
</div> | ||
); | ||
}; | ||
|
||
|
||
const Main = ({}: MainProps) => ( | ||
<div className="py-20 lg:px-10 xlg:px-10 2xlg:px-20 text-black overflow-x-scroll xs:overflow-x-scroll md:overflow-x-scroll"> | ||
<h2 className="text-h4 font-bold my-4 text-center">Merit Badge Requirements</h2> | ||
<RequirementsTable /> | ||
</div> | ||
); | ||
|
||
export default Main; |
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,14 @@ | ||
"use client"; | ||
|
||
import Layout from "@/components/Layout"; | ||
import Main from "./Main"; | ||
|
||
const RequirementsPage = () => { | ||
return ( | ||
<Layout> | ||
<Main /> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default RequirementsPage; |