-
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
Updated Sponsor Styling #154
base: main
Are you sure you want to change the base?
Changes from 1 commit
d1be77e
f59d243
6f29fb7
de0ad61
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
|
||
|
||
const builder = imageUrlBuilder(client); | ||
|
||
|
@@ -31,7 +32,7 @@ const Sponsors = async () => { | |
const allSponsors = [...sponsors.sponsors, ...fakeSponsorLogos]; | ||
|
||
return ( | ||
<section className={styles.container}> | ||
<Container as="section"> | ||
<h2 className={styles.title}>SPONSORS</h2> | ||
<div className={styles.logos}> | ||
{allSponsors.map(({ _key, name, url, logo }) => ( | ||
|
@@ -53,7 +54,7 @@ const Sponsors = async () => { | |
</a> | ||
))} | ||
</div> | ||
</section> | ||
</Container> | ||
); | ||
}; | ||
|
||
|
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.
Chore: little value in keeping around old commented code, better to just remove it