-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update _app.tsx fix * Update leaderboard.tsx * Rename permission * Remove user specific store 404 details * remove magic var and type children correctly * Refactor community logos to support future changes * Update index.tsx * Fix package * fix build * Update style.module.scss * test pwa * Upgrade node from 18 to 21 * Update yarn.lock * Change to LTS * Change to LTS Upgrade node from 18 to 21 Update yarn.lock * Revert "Change to LTS" This reverts commit 6761d5b. * Revert * undo undo undo * Update yarn.lock * Update .nvmrc * Update package.json * Update yarn.lock * Update yarn.lock * Configure PWA * Disable lint in service worker * fix navbar border * Update style.module.scss * date selection * center page * center grid items better * fixes
- Loading branch information
1 parent
de359ef
commit 9bd9620
Showing
42 changed files
with
1,719 additions
and
161 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
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.
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 |
---|---|---|
@@ -1,15 +1,32 @@ | ||
{ | ||
"short_name": "ACM Membership Portal", | ||
"name": "Association for Computing Machinery at UC San Diego Student Membership Portal", | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone", | ||
"scope": "/", | ||
"start_url": "/", | ||
"name": "ACM at UCSD Membership Portal", | ||
"short_name": "ACM Portal", | ||
"description": "Association for Computing Machinery at UC San Diego Student Membership Portal", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 16x16", | ||
"type": "image/x-icon" | ||
"src": "/icon-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/icon-256x256.png", | ||
"sizes": "256x256", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/icon-384x384.png", | ||
"sizes": "384x384", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/icon-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,29 +1,22 @@ | ||
import { communityLogos } from '@/lib/constants/communityLogos'; | ||
import { Community } from '@/lib/types/enums'; | ||
import { capitalize } from '@/lib/utils'; | ||
import Image from 'next/image'; | ||
|
||
import AILogo from '@/public/assets/acm-logos/communities/ai.png'; | ||
import CyberLogo from '@/public/assets/acm-logos/communities/cyber.png'; | ||
import DesignLogo from '@/public/assets/acm-logos/communities/design.png'; | ||
import HackLogo from '@/public/assets/acm-logos/communities/hack.png'; | ||
import ACMLogo from '@/public/assets/acm-logos/general/light-mode.png'; | ||
|
||
interface CommunityLogoProps { | ||
community: string; | ||
size: number; | ||
} | ||
|
||
const CommunityLogo = ({ community, size }: CommunityLogoProps) => { | ||
switch (community.toLowerCase()) { | ||
case 'hack': | ||
return <Image src={HackLogo} width={size} alt="ACM Hack Logo" />; | ||
case 'ai': | ||
return <Image src={AILogo} width={size} alt="ACM AI Logo" />; | ||
case 'cyber': | ||
return <Image src={CyberLogo} width={size} alt="ACM Cyber Logo" />; | ||
case 'design': | ||
return <Image src={DesignLogo} width={size} alt="ACM Design Logo" />; | ||
default: | ||
return <Image src={ACMLogo} width={size} alt="ACM General Logo" />; | ||
} | ||
const formattedName = capitalize(community) as Community; | ||
|
||
if (!Object.values(Community).includes(formattedName)) | ||
return <Image src={communityLogos.General} width={size} alt="ACM General Logo" />; | ||
|
||
return ( | ||
<Image src={communityLogos[formattedName]} width={size} alt={`ACM ${formattedName} Logo`} /> | ||
); | ||
}; | ||
|
||
export default CommunityLogo; |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
.container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 1rem; | ||
column-gap: 1rem; | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); | ||
place-items: center; | ||
row-gap: 2rem; | ||
} |
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 |
---|---|---|
|
@@ -132,6 +132,7 @@ | |
} | ||
|
||
.image { | ||
margin: 0 auto; | ||
max-height: 1080px; | ||
max-width: 1920px; | ||
object-fit: cover; | ||
|
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
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,16 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
import { Community } from '@/lib/types/enums'; | ||
import AILogo from '@/public/assets/acm-logos/communities/ai.png'; | ||
import CyberLogo from '@/public/assets/acm-logos/communities/cyber.png'; | ||
import DesignLogo from '@/public/assets/acm-logos/communities/design.png'; | ||
import HackLogo from '@/public/assets/acm-logos/communities/hack.png'; | ||
import ACMLogo from '@/public/assets/acm-logos/general/light-mode.png'; | ||
import type { StaticImageData } from 'next/image'; | ||
|
||
export const communityLogos: Record<Community, StaticImageData> = { | ||
AI: AILogo, | ||
Cyber: CyberLogo, | ||
Design: DesignLogo, | ||
Hack: HackLogo, | ||
General: ACMLogo, | ||
}; |
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
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.
9bd9620
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
membership-portal-ui-v2 – ./
membership-portal-ui-v2.vercel.app
v2.members.acmucsd.com
membership-portal-ui-v2-git-main-acmucsd.vercel.app
membership-portal-ui-v2-acmucsd.vercel.app