This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
generated from caffeine-addictt/waku
-
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 branch 'main' into feature/userAccount
Signed-off-by: Jy <[email protected]>
- Loading branch information
Showing
62 changed files
with
3,732 additions
and
599 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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].3 | ||
with: | ||
cache: npm | ||
|
||
|
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].3 | ||
with: | ||
cache: npm | ||
|
||
|
@@ -46,7 +46,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].3 | ||
with: | ||
cache: npm | ||
|
||
|
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,17 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "default", | ||
"rsc": false, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "src/styles/globals.css", | ||
"baseColor": "neutral", | ||
"cssVariables": false, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@components", | ||
"utils": "@utils/tailwind" | ||
} | ||
} |
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.
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,61 @@ | |
*/ | ||
|
||
import * as React from 'react'; | ||
import { Location } from 'react-router-dom'; | ||
|
||
export type FooterProps = { location: Location; isAdmin: boolean }; | ||
const Footer = (props: FooterProps): React.ReactNode => { | ||
return <footer>Footer at {props.location.pathname}</footer>; | ||
const Footer = (): React.ReactNode => { | ||
return ( | ||
<footer className="bg-accent-dark text-text-dark"> | ||
<div className="mx-auto max-h-full p-4 py-6 md:max-h-48 lg:max-h-64 lg:py-8"> | ||
<div className="md:flex md:justify-between"> | ||
<div className="mb-3 text-center md:mb-0 md:text-left"> | ||
<a href="/" className="flex items-center"> | ||
<span className="mx-auto self-center whitespace-nowrap text-lg font-semibold md:mx-0 md:text-lg lg:text-2xl xl:text-3xl"> | ||
Green Bites SG | ||
</span> | ||
</a> | ||
<p className="self-center text-sm md:text-base xl:text-lg"> | ||
A passion project by a group of students from Nanyang Polytechnic, | ||
Singapore. | ||
</p> | ||
</div> | ||
<div className="mt-3 grid grid-cols-1 gap-5 md:mr-10 md:mt-8 md:grid-cols-2 md:gap-6 xl:gap-12"> | ||
<div className="mx-auto text-center md:mx-0 md:text-right"> | ||
<h2 className="mb-2 font-normal uppercase md:text-base xl:mb-3 xl:text-lg"> | ||
Legal | ||
</h2> | ||
<ul className="text-xs font-normal underline md:text-sm xl:text-base"> | ||
<li className="mb-1"> | ||
<a href="/privacy">Privacy Policy</a> | ||
</li> | ||
<li> | ||
<a href="/tos">Terms & Conditions</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div className="mx-auto text-center md:mx-0 md:text-right"> | ||
<h2 className="mb-2 font-normal uppercase md:text-base xl:mb-3 xl:text-lg"> | ||
Contact Us | ||
</h2> | ||
<ul className="text-xs font-normal underline md:text-sm xl:text-base"> | ||
<li className="mb-1"> | ||
<a href="mailto:contact@[email protected]">Email</a> | ||
</li> | ||
<li> | ||
<a href="https://github.com/caffeine-addictt/greenbitessg"> | ||
Github | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<p className="text-center text-xs md:text-left xl:text-sm"> | ||
© Copyright 2024 GreenBitesSG. All Rights Reserved. | ||
</p> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
}; | ||
export default Footer; |
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,24 @@ | ||
/** | ||
* SPDX-FileCopyrightText: 2024 Ng Jun Xiang <[email protected]> | ||
* | ||
* SPDX-License-Identifier: GPL-3.0-only | ||
*/ | ||
|
||
import { useEffect, useState } from 'react'; | ||
|
||
export const useMediaQuery = (query: string): boolean => { | ||
const [matches, setMatches] = useState(false); | ||
|
||
useEffect(() => { | ||
const matchQuery = matchMedia(query); | ||
const handleChange = (e: unknown) => | ||
setMatches((e as typeof matchQuery).matches); | ||
|
||
setMatches(matchQuery.matches); | ||
|
||
matchQuery.addEventListener('change', handleChange); | ||
return () => matchQuery.removeEventListener('change', handleChange); | ||
}, [query]); | ||
|
||
return matches; | ||
}; |
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
Oops, something went wrong.