Skip to content
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

Updated Sponsor Styling #154

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Updated Sponsor Styling #154

wants to merge 4 commits into from

Conversation

pandyrew
Copy link

@pandyrew pandyrew commented Sep 30, 2024

Description

Used existing CMS functions for new sponsor section. Updated styling to make it responsive. Added hover effect for fun!!!!

Screenshots

Screenshot 2024-09-29 at 6 16 01 PM Screenshot 2024-09-29 at 6 16 20 PM

Steps to verify/test this change:

  • Verify changes work as expected on staging instance

Final Checks:

  • Verify successful deployment
  • Delete branch

Issues

Closes #146

Todo

  • Verify that there are real sponsors (once we finalize)

Nice to have

Maybe add more animations??

Copy link

github-actions bot commented Sep 30, 2024

Deploy preview for zothacks-site-2023-sanity ready!

Name Sanity Studio
Preview Visit Preview
Commit de0ad61

Copy link

github-actions bot commented Sep 30, 2024

Deploy preview for zothacks-site-2023 ready!

Name Hack at UCI Site
Preview Visit Preview
Commit de0ad61

Comment on lines 16 to 18
@include utils.media-breakpoint-down(sm) {
font-size: 2rem;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion [repeating]: Bootstrap recommends a "mobile-first" design approach, so making the narrower view the default and using media-breakpoint-up would be more appropriate.

flex-wrap: wrap;
justify-content: center;
gap: 1.5rem;
max-width: 1200px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: rather than manually constraining the inner elements, we can use Bootstrap's native container sizing (unfortunately not done last year) by changing the main <section> element to be a Container, see Home Intro (Intro.tsx:14) for example.

Comment on lines 60 to 64
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: since the parent elements have .logo class applied, the centered placement should already be taken care of, so these shouldn't need to be specified.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think you also have to remove the forced dimensions (width and height) for it to be centered by parent

Comment on lines 4 to 7
// .container {
// padding-top: 6rem;
// padding-bottom: 6rem;
// }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chore: little value in keeping around old commented code, better to just remove it

Comment on lines 60 to 64
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think you also have to remove the forced dimensions (width and height) for it to be centered by parent

@@ -3,6 +3,7 @@ import { getSponsors } from "./getSponsors";
import styles from "./Sponsors.module.scss";
import { client } from "@/lib/sanity/client";
import imageUrlBuilder from "@sanity/image-url";
import { Container } from "react-bootstrap";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chore: I forget if Next.js handles this well, but to be safe, we'll want to import just the individual component, i.e. import Container from "react-bootstrap/Container"

Import individual components rather than the entire library. Doing so pulls in only the specific components that you use (React Bootstrap, Importing Components)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2024] Home: Sponsors
3 participants