-
Notifications
You must be signed in to change notification settings - Fork 0
Ensure sponsor logos use light background #26
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 hidden or 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 hidden or 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,98 @@ | ||
| import type { MetaFunction } from "react-router"; | ||
| import { ExternalLink } from "lucide-react"; | ||
|
|
||
| import { Button } from "../../components/ui/button"; | ||
| import { Card, CardContent, CardFooter } from "../../components/ui/card"; | ||
| import sponsorsData from "../../data/sponsors.json"; | ||
|
|
||
| import { createMeta } from "@/lib/metadata"; | ||
|
|
||
| export const meta: MetaFunction = () => | ||
| createMeta({ | ||
| title: "Sponsors", | ||
| description: "TODO", | ||
| path: "/sponsors", | ||
| }); | ||
|
|
||
| function Sponsors() { | ||
| return ( | ||
| <main className="container px-6 py-8 space-y-12 xl:w-6xl"> | ||
| {/* Header */} | ||
| <section className="space-y-4 text-center"> | ||
| <h1 className="text-3xl sm:text-4xl font-bold tracking-tighter"> | ||
| {sponsorsData.title} | ||
| </h1> | ||
| {/* <p className="text-xl text-muted-foreground max-w-3xl mx-auto"> | ||
| {sponsorsData.subtitle} | ||
| </p> */} | ||
| </section> | ||
|
|
||
| {/* Sponsors */} | ||
| <section className="space-y-6"> | ||
| {/* <div className="space-y-2"> | ||
| <h2 className="text-2xl sm:text-3xl font-bold tracking-tighter"> | ||
| Sponsors | ||
| </h2> | ||
| <p className="text-muted-foreground"> | ||
| Workshop organization and coordination | ||
| </p> | ||
| </div> */} | ||
| <div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3"> | ||
| {sponsorsData.sponsors.map((spnsor, index) => ( | ||
| <Card key={index}> | ||
| {/* <CardHeader> | ||
| <CardTitle>{spnsor.name}</CardTitle> | ||
| <CardDescription>{spnsor.affiliation}</CardDescription> | ||
| </CardHeader> */} | ||
| <CardContent> | ||
| <div className="space-y-4"> | ||
| {/* <div className="aspect-square bg-muted rounded-md flex items-center justify-center"> | ||
| <img | ||
| src={spnsor.photo} | ||
| alt={`Photo of ${spnsor.name}`} | ||
| className="object-cover w-full h-full" | ||
| loading="lazy" | ||
| /> | ||
| </div> */} | ||
| <div className="bg-white dark:bg-white aspect-square rounded-md flex items-center justify-center p-4"> | ||
| <img | ||
| src={spnsor.photo} | ||
| alt={`Photo of ${spnsor.name}`} | ||
| className="max-h-40 sm:max-h-64 md:max-h-40 w-auto object-contain" | ||
| loading="lazy" | ||
| /> | ||
| </div> | ||
| {/* <p className="text-sm text-muted-foreground">{chair.bio}</p> */} | ||
| </div> | ||
| </CardContent> | ||
| <CardFooter className="flex justify-between"> | ||
| {/* <Button | ||
| variant="outline" | ||
| size="sm" | ||
| className="flex gap-2" | ||
| asChild | ||
| > | ||
| <a href={`mailto:${chair.email}`}> | ||
| <Mail className="h-4 w-4" /> Email | ||
| </a> | ||
| </Button> */} | ||
| <Button | ||
| variant="outline" | ||
| size="sm" | ||
| className="flex gap-2" | ||
| asChild | ||
| > | ||
| <a href={spnsor.website} target="_blank" rel="noreferrer"> | ||
| Website <ExternalLink className="h-4 w-4" /> | ||
| </a> | ||
| </Button> | ||
| </CardFooter> | ||
| </Card> | ||
| ))} | ||
| </div> | ||
| </section> | ||
| </main> | ||
| ); | ||
| } | ||
|
|
||
| export default Sponsors; | ||
This file contains hidden or 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 hidden or 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 hidden or 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,24 @@ | ||
| { | ||
| "title": "Sponsors", | ||
| "subtitle": "Meet the team behind the Machine Learning Workshop", | ||
| "sponsors": [ | ||
| { | ||
| "name": "ExaWizards Inc.", | ||
| "affiliation": "ExaWizards Inc.", | ||
| "photo": "/sponsors/exawizards.png", | ||
| "website": "https://exawizards.com/en/" | ||
| }, | ||
| { | ||
| "name": "SB Intuitions", | ||
| "affiliation": "SB Intuitions", | ||
| "photo": "/sponsors/sbint.png", | ||
| "website": "https://www.sbintuitions.co.jp/en/" | ||
| }, | ||
| { | ||
| "name": "LY Corporation", | ||
| "affiliation": "LY Corporation", | ||
| "photo": "/sponsors/ly.png", | ||
| "website": "https://www.lycorp.co.jp/en" | ||
| } | ||
| ] | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 new Sponsors route imports
../../data/sponsors.json, but that file isn’t present anywhere in the repository. As soon as this component is wired into the router, the build will fail with a module‑not‑found error and the page cannot render. Either add the JSON file or reuse existing data before enabling the route.Useful? React with 👍 / 👎.