File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { render , screen } from "@testing-library/react" ;
2+ import { ThemeProvider } from "@mui/material" ;
3+ import { describe , expect , it } from "vitest" ;
4+ import { appTheme } from "../common/styles/theme" ;
5+ import Footer from "./Footer" ;
6+
7+ describe ( "Footer" , ( ) => {
8+ it ( "shows the site-wide sponsor message and contact link" , ( ) => {
9+ render (
10+ < ThemeProvider theme = { appTheme } >
11+ < Footer />
12+ </ ThemeProvider > ,
13+ ) ;
14+
15+ expect (
16+ screen . getByText ( / M o d a l , C o r e A u t o m a t i o n , a n d N o r t h f l a n k / i) ,
17+ ) . toBeInTheDocument ( ) ;
18+ expect ( screen . getByRole ( "link" , { name : "reach out" } ) ) . toHaveAttribute (
19+ "href" ,
20+ "mailto:mark@gpumode.com" ,
21+ ) ;
22+ } ) ;
23+ } ) ;
Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ export default function Footer() {
2929 return (
3030 < FooterBox >
3131 < ConstrainedContainer >
32+ < Typography variant = "body2" color = "text.secondary" sx = { { mb : 2 } } >
33+ Thank you to Modal, Core Automation, and Northflank for supporting us.
34+ To sponsor GPU MODE, please{ " " }
35+ < Link href = "mailto:mark@gpumode.com" fontWeight = { 600 } >
36+ reach out
37+ </ Link >
38+ .
39+ </ Typography >
3240 < Box
3341 sx = { {
3442 display : "flex" ,
Original file line number Diff line number Diff line change @@ -149,15 +149,6 @@ describe("Home", () => {
149149 renderWithProviders ( < Home /> ) ;
150150
151151 expect ( screen . getByText ( "Leaderboards" ) ) . toBeInTheDocument ( ) ;
152- expect (
153- screen . getByText ( / G P U M O D E ' s m i s s i o n i s t o m a k e h i g h - p e r f o r m a n c e / i) ,
154- ) . toBeInTheDocument ( ) ;
155- expect ( screen . getByText ( / C o r e A u t o m a t i o n / i) ) . toBeInTheDocument ( ) ;
156- expect ( screen . getByText ( / N o r t h f l a n k / i) ) . toBeInTheDocument ( ) ;
157- expect ( screen . getByRole ( "link" , { name : / r e a c h o u t / i } ) ) . toHaveAttribute (
158- "href" ,
159- "mailto:mark@gpumode.com" ,
160- ) ;
161152 expect ( screen . getByText ( "test-leaderboard" ) ) . toBeInTheDocument ( ) ;
162153 expect ( screen . getByText ( "T4, L4" ) ) . toBeInTheDocument ( ) ;
163154 expect ( screen . getByText ( "alice" ) ) . toBeInTheDocument ( ) ;
Original file line number Diff line number Diff line change @@ -128,41 +128,6 @@ export default function Home() {
128128 return (
129129 < ConstrainedContainer >
130130 < Box >
131- < Box
132- sx = { {
133- border : 1 ,
134- borderColor : "divider" ,
135- borderRadius : 1 ,
136- bgcolor : "background.paper" ,
137- px : 2 ,
138- py : 1.5 ,
139- width : "100%" ,
140- mb : 3 ,
141- } }
142- >
143- < Typography
144- variant = "body2"
145- color = "text.secondary"
146- sx = { { lineHeight : 1.6 } }
147- >
148- GPU MODE's mission is to make high-performance GPU programming
149- more accessible.
150- < br />
151- We rely on donations and sponsorships to fund community compute,
152- lectures, kernel competitions, working groups, and events.
153- < br />
154- Thank you to Modal, Core Automation, and Northflank for supporting
155- us. To sponsor GPU MODE, please{ " " }
156- < Box
157- component = "a"
158- href = "mailto:mark@gpumode.com"
159- sx = { { color : "primary.main" , fontWeight : 600 } }
160- >
161- reach out
162- </ Box >
163- .
164- </ Typography >
165- </ Box >
166131 < Typography variant = "h1" component = "h1" sx = { { mb : 3 } } >
167132 Leaderboards
168133 </ Typography >
You can’t perform that action at this time.
0 commit comments