-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(HeroBanner): add HeroBanner component and add to HomePage #10
Conversation
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.
Mostly looks good two nits
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.
One comment about title margins on Discord, but otherwise looks great!
afa5cc9
to
704ed95
Compare
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.
Mostly looks really good, a few nits.
4462511
to
868c63b
Compare
868c63b
to
856ed65
Compare
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.
Code looks great :)
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.
Awesome work here, looks great to me!
components/Button.tsx
Outdated
import Link from 'next/link'; | ||
import styles from '../styles/Button.module.scss'; | ||
|
||
enum ButtonType { |
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.
Love this
@@ -18,6 +18,7 @@ const config: Config = { | |||
'hover-1': '#4db6ac', // TODO: Decide on a color for this | |||
'hover-2': '#89B4FA', // TODO: Decide on a color for this | |||
'event-banner': '#5E18EB', // Event Banner Background | |||
socials: '#7BD4CB', // Social |
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.
Is there a functional/semantic reason socials isn't in quotes and the rest are?
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.
Is there a functional/semantic reason socials isn't in quotes and the rest are?
The others have a -
in their name which means they have to be in quotes the formatter removes them on this one because they are not needed. We will probably change this name with issue #16
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.
Sorry for the second review, still think it looks great but had more thoughts
Co-authored-by: Amber Welby <[email protected]>
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.
Just two very small changes but otherwise I'm giving approval feel free to merge after that.
components/EventBanner.tsx
Outdated
|
||
if (bannerInfo.length === 0 || bannerInfo?.hidden) { | ||
if (!bannerInfo || (Array.isArray(bannerInfo) && bannerInfo.length === 0) || (bannerInfo as any)?.hidden) { |
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.
The as any
is not the way todo this can you add a todo linking to this issue like //TODO(#12): Improve yaml typechecking
.
components/EventBanner.tsx
Outdated
return null; | ||
} | ||
|
||
const eventMarkdown = bannerInfo.text; | ||
const eventMarkdown = (bannerInfo as any).text; |
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.
Same as above //TODO(#12): Improve yaml typechecking
Link to Preview: https://club-website-c1tjlgepg-karas-projects-e1ba5d81.vercel.app <img width="1712" alt="image" src="https://github.com/user-attachments/assets/5ebc1da2-6145-4675-b6b5-a6a18c367b5c"> ## Needed Additions - [X] Hero banner (#10) - [x] Section Headers (#20) - [X] About Us Section (Accidentally put on this branch) - [X] Upcoming Events (with fallbacks) (Will do so in future PR) - [X] Latest News / Blogs (#23 for initial UI without content fetching) - [X] Contact Us (#21) - [x] Footer (#22) ## Additional notes: - I have not made this work on mobile yet. I figure I'll do so later and instead make sure it looks good on just desktop for now. - Latest News / Blogs section doesn't have content fetching - We will wait for event page in later pr - Event section not included (and won't be until the events page is merged due to borrowing components)
Screenshot
Description