Skip to content

Commit f8df39f

Browse files
committed
Move sponsor message to site footer
1 parent 3abe875 commit f8df39f

4 files changed

Lines changed: 31 additions & 44 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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(/Modal, Core Automation, and Northflank/i),
17+
).toBeInTheDocument();
18+
expect(screen.getByRole("link", { name: "reach out" })).toHaveAttribute(
19+
"href",
20+
"mailto:mark@gpumode.com",
21+
);
22+
});
23+
});

frontend/src/components/app-layout/Footer.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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",

frontend/src/pages/home/Home.test.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,6 @@ describe("Home", () => {
149149
renderWithProviders(<Home />);
150150

151151
expect(screen.getByText("Leaderboards")).toBeInTheDocument();
152-
expect(
153-
screen.getByText(/GPU MODE's mission is to make high-performance/i),
154-
).toBeInTheDocument();
155-
expect(screen.getByText(/Core Automation/i)).toBeInTheDocument();
156-
expect(screen.getByText(/Northflank/i)).toBeInTheDocument();
157-
expect(screen.getByRole("link", { name: /reach out/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();

frontend/src/pages/home/Home.tsx

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff 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&apos;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>

0 commit comments

Comments
 (0)