Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
MCSS-133: Make Schedule Static
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonytedja committed Feb 21, 2024
1 parent c097731 commit 6a5f5a1
Show file tree
Hide file tree
Showing 8 changed files with 957 additions and 40 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
[![Build Status](https://api.netlify.com/api/v1/badges/e85686f6-63b4-4028-94f2-c27d34c488d7/deploy-status)](https://app.netlify.com/sites/deerhacks/deploys)
[![Website Status](https://img.shields.io/website?down_color=red&down_message=offline&up_color=green&up_message=online&url=https%3A%2F%2Fdeerhacks.ca)](https://deerhacks.ca)

## Open Source & Attribution

This project is an open source archive of the DeerHacks 2024 Website & Dashboard and is licensed under the [GPL v3.0 License](LICENSE). We also ask that you keep the footer attribution to the original creators if you decide to use this project for any derivative works.

## Setup

1. Run `yarn install` to install dependencies
Expand Down
919 changes: 918 additions & 1 deletion api/schema.ts

Large diffs are not rendered by default.

24 changes: 6 additions & 18 deletions components/Dashboard/TileGallery/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ const TileGallery = (props: Props) => {
sx={{
width: '100%',
background:
"linear-gradient( rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25) ), url('/photos/2023.webp')",
"linear-gradient( rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25) ), url('/photos/2024.webp')",
backgroundSize: 'cover',
backgroundPosition: 'center',
backgroundPosition: 'top',
}}
>
<CardActionArea href="/gallery" LinkComponent={NextLink}>
<CardContent
sx={{
justifyContent: 'center',
alignItems: 'center',
minHeight: resize ? { xs: '300px', md: '400px', lg: '500px' } : '329px',
justifyContent: 'end',
minHeight: resize
? { xs: '300px', md: '400px', lg: '500px' }
: { xs: '300px', md: '250px', lg: '329px' },
}}
>
<Typography
variant="h1"
display="flex"
alignItems="center"
textAlign="left"
gap="0.5rem"
mb="0 !important"
Expand All @@ -53,18 +53,6 @@ const TileGallery = (props: Props) => {
<CameraEnhanceIcon fontSize="inherit" />
Gallery
</Typography>
<Typography
color="text.primary"
variant="body2"
textAlign="center"
{...(resize && {
'data-aos': 'fade',
'data-aos-offset': '25',
'data-aos-once': 'false',
})}
>
DeerHacks in photos, contributed by you!
</Typography>
</CardContent>
</CardActionArea>
</Card>
Expand Down
37 changes: 21 additions & 16 deletions components/HomePage/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,23 +173,28 @@ const Navbar = (props: Props) => {
top="2.5rem"
left={{ xs: '1.5rem', lg: '2.5rem' }}
>
<Tooltip
title={toggles.dashboard ? 'Take me to my dashboard' : ''}
placement="right"
arrow
data-aos="fade"
data-aos-delay="500"
data-aos-duration="1000"
>
<Button
href="/login"
component={NextLink}
disabled={!toggles.dashboard}
sx={{ p: '0', borderRadius: '50%' }}
{toggles.dashboard ? (
<Tooltip
title="Take me to my dashboard"
placement="right"
arrow
data-aos="fade"
data-aos-delay="500"
data-aos-duration="1000"
>
<Image src="/icons/neon.png" alt="DeerHacks Logo" width={80} height={80} priority />
</Button>
</Tooltip>
<Button href="/login" component={NextLink} sx={{ p: '0', borderRadius: '50%' }}>
<Image
src="/icons/neon.png"
alt="DeerHacks Logo"
width={80}
height={80}
priority
/>
</Button>
</Tooltip>
) : (
<Image src="/icons/neon.png" alt="DeerHacks Logo" width={80} height={80} priority />
)}
</Box>
<span />
<Slide in={!loading} timeout={500} mountOnEnter>
Expand Down
2 changes: 1 addition & 1 deletion hooks/Event/useEventList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type Props = {
}

export const useEventList = (props?: Props) => {
return useAPI().useQuery(['eventList', null], {
return useAPI().useQuery(['mockEventList', null], {
enabled: props?.enabled,
retry: false,
staleTime: Infinity,
Expand Down
2 changes: 1 addition & 1 deletion pages/gallery/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const Gallery = () => {
},
}}
>
{!uploadLink ? 'Share your photos, coming soon!' : 'Share your photos here!'}
{!uploadLink ? 'Photo drive coming soon!' : 'Full photo drive here!'}
</Button>
<ImageList
variant="masonry"
Expand Down
Binary file added public/photos/2024.webp
Binary file not shown.
9 changes: 6 additions & 3 deletions types/Event/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ export type RespEvent = {
attributes: {
title: string
description: string
location?: string
location?: string | null
createdAt: string
updatedAt: string
publishedAt: string
startTime: string
endTime?: string
endTime?: string | null
important: boolean
host: EventHosts
presenter?: string
presenter?: string | null
type: EventTypes
}
}
Expand Down

0 comments on commit 6a5f5a1

Please sign in to comment.