generated from include-davis/Next.js-App-Router-Starter
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #146 from HackDavis/refactor/repo-structure
Refactor/repo structure
- Loading branch information
Showing
10 changed files
with
56 additions
and
157 deletions.
There are no files selected for viewing
136 changes: 0 additions & 136 deletions
136
app/(pages)/judging-app/_components/JudgingHub/HubHero.module.scss
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
28 changes: 28 additions & 0 deletions
28
app/(pages)/judging-app/_components/JudgingHub/Waiting.tsx
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,28 @@ | ||
const tips = [ | ||
'🔋 Charge your phone!', | ||
'👋 Say hi to other judges!', | ||
'🍿 Grab a snack and water!', | ||
]; | ||
|
||
const TipCard = (tip: string) => { | ||
return ( | ||
<div className="tw-flex tw-text-xl tw-items-center tw-justify-center tw-bg-white tw-rounded-[16px] tw-py-[20px]"> | ||
{tip} | ||
</div> | ||
); | ||
}; | ||
|
||
export default function Waiting() { | ||
return ( | ||
<div className="tw-flex tw-flex-col tw-p-4 tw-bg-[#f2f2f7] tw-gap-4 tw-py-8"> | ||
<h3 className="tw-font-bold tw-text-2xl"> | ||
While you're waiting, feel free to... | ||
</h3> | ||
<div className="tw-flex tw-flex-col tw-gap-4"> | ||
{tips.map((tip, index) => ( | ||
<div key={index}>{TipCard(tip)}</div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} |
22 changes: 14 additions & 8 deletions
22
app/(pages)/judging-app/_components/LoginPage/LoginPage.tsx
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,14 +1,20 @@ | ||
import ProtectedDisplay from '@components/ProtectedDisplay/ProtectedDisplay'; | ||
import JudgingHub from '../JudgingHub/JudgingHub'; | ||
import LoginForm from './LoginForm'; | ||
import Image from 'next/image'; | ||
import styles from './LoginPage.module.scss'; | ||
|
||
export default function LoginPage() { | ||
return ( | ||
<ProtectedDisplay | ||
loadingDisplay={<div>Loading...</div>} | ||
failDisplay={<LoginForm />} | ||
> | ||
<JudgingHub /> | ||
</ProtectedDisplay> | ||
<div className={styles.container}> | ||
<div className={styles.section}> | ||
<Image src="/login/hd_logo.svg" alt="hd_logo" height={50} width={50} /> | ||
</div> | ||
<div className={styles.section}> | ||
<h3>Welcome Judges!</h3> | ||
<p>Enter your username and password.</p> | ||
</div> | ||
<div className={styles.section}> | ||
<LoginForm></LoginForm> | ||
</div> | ||
</div> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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