Skip to content

Commit 2bddaf7

Browse files
author
Mark Saroufim
committed
Move resource links from navbar to Getting Started section on homepage
Links to resource-stream GitHub and GPU MODE YouTube now appear as buttons alongside "Submit via browser" in the Getting Started header.
1 parent 983fd9c commit 2bddaf7

2 files changed

Lines changed: 44 additions & 24 deletions

File tree

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ export default function NavBar() {
5757
{ label: "News", href: "/news" },
5858
{ label: "Events", href: "/events" },
5959
{ label: "Projects", href: "/working-groups" },
60-
{
61-
label: "Resources",
62-
href: "https://github.com/gpu-mode/resource-stream",
63-
external: true,
64-
},
6560
];
6661

6762
const Brand = () => (

frontend/src/pages/home/Home.tsx

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import MarkdownRenderer from "../../components/markdown-renderer/MarkdownRendere
2525
import quickStartMarkdown from "./quick-start.md?raw";
2626
import { isExpired, getTimeLeft } from "../../lib/date/utils";
2727
import { ColoredSquare } from "../../components/common/ColoredSquare";
28+
import ArrowOutwardIcon from "@mui/icons-material/ArrowOutward";
2829

2930
interface TopUser {
3031
rank: number;
@@ -218,26 +219,50 @@ export default function Home() {
218219
<Typography variant="h5" component="h2">
219220
Getting Started
220221
</Typography>
221-
<Button
222-
variant="contained"
223-
size="small"
224-
startIcon={<CodeIcon />}
225-
onClick={() => setIsLeaderboardSelectOpen(true)}
226-
sx={{ textTransform: "none", fontWeight: 500 }}
227-
>
228-
Submit via browser
229-
<Chip
230-
label="beta"
222+
<Box sx={{ display: "flex", alignItems: "center", gap: 1.5, flexWrap: "wrap" }}>
223+
<Button
224+
variant="outlined"
231225
size="small"
232-
sx={{
233-
ml: 1,
234-
height: 18,
235-
fontSize: "0.65rem",
236-
bgcolor: "warning.main",
237-
color: "warning.contrastText",
238-
}}
239-
/>
240-
</Button>
226+
href="https://github.com/gpu-mode/resource-stream"
227+
target="_blank"
228+
rel="noopener"
229+
endIcon={<ArrowOutwardIcon sx={{ fontSize: 16 }} />}
230+
sx={{ textTransform: "none", fontWeight: 500 }}
231+
>
232+
Resources
233+
</Button>
234+
<Button
235+
variant="outlined"
236+
size="small"
237+
href="https://www.youtube.com/@GPUMODE/videos"
238+
target="_blank"
239+
rel="noopener"
240+
endIcon={<ArrowOutwardIcon sx={{ fontSize: 16 }} />}
241+
sx={{ textTransform: "none", fontWeight: 500 }}
242+
>
243+
Lectures
244+
</Button>
245+
<Button
246+
variant="contained"
247+
size="small"
248+
startIcon={<CodeIcon />}
249+
onClick={() => setIsLeaderboardSelectOpen(true)}
250+
sx={{ textTransform: "none", fontWeight: 500 }}
251+
>
252+
Submit via browser
253+
<Chip
254+
label="beta"
255+
size="small"
256+
sx={{
257+
ml: 1,
258+
height: 18,
259+
fontSize: "0.65rem",
260+
bgcolor: "warning.main",
261+
color: "warning.contrastText",
262+
}}
263+
/>
264+
</Button>
265+
</Box>
241266
</Box>
242267
<Typography variant="body2" color="text.secondary" sx={{ mb: 2 }}>
243268
New to GPU programming? Start here.

0 commit comments

Comments
 (0)