tfrere commited on
Commit
49fc984
·
1 Parent(s): ffa4ae8
Files changed (1) hide show
  1. frontend/src/components/Intro.jsx +36 -22
frontend/src/components/Intro.jsx CHANGED
@@ -2,28 +2,42 @@ import React from "react";
2
  import { Box, Typography } from "@mui/material";
3
  import HFLogo from "./Logo/HFLogo";
4
 
5
- const Intro = () => (
6
- <Box sx={{ textAlign: "center", mb: 4 }}>
7
- <Box
8
- sx={{ height: "60px", mb: 4, display: "flex", justifyContent: "center" }}
9
- >
10
- <HFLogo />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  </Box>
12
- <Typography
13
- variant="h4"
14
- component="h1"
15
- gutterBottom
16
- sx={{ fontWeight: 800 }}
17
- >
18
- Yourbench Demo
19
- </Typography>
20
- <Typography variant="body1" sx={{ maxWidth: "800px", mx: "auto" }}>
21
- YourBench is an <b>open-source framework</b> for generating{" "}
22
- <b>domain-specific benchmarks</b> in a <b>zero-shot</b> manner. It aims to
23
- keep your large language models on their toes—even as new data sources,
24
- domains, and knowledge demands evolve.
25
- </Typography>
26
- </Box>
27
- );
28
 
29
  export default Intro;
 
2
  import { Box, Typography } from "@mui/material";
3
  import HFLogo from "./Logo/HFLogo";
4
 
5
+ const Intro = () => {
6
+ const handleLogoClick = () => {
7
+ window.history.replaceState(null, "", "/");
8
+ window.location.reload();
9
+ };
10
+
11
+ return (
12
+ <Box sx={{ textAlign: "center", mb: 4 }}>
13
+ <Box
14
+ sx={{
15
+ height: "60px",
16
+ mb: 4,
17
+ display: "flex",
18
+ justifyContent: "center",
19
+ cursor: "pointer",
20
+ }}
21
+ onClick={handleLogoClick}
22
+ >
23
+ <HFLogo />
24
+ </Box>
25
+ <Typography
26
+ variant="h4"
27
+ component="h1"
28
+ gutterBottom
29
+ sx={{ fontWeight: 800 }}
30
+ >
31
+ Yourbench Demo
32
+ </Typography>
33
+ <Typography variant="body1" sx={{ maxWidth: "800px", mx: "auto" }}>
34
+ YourBench is an <b>open-source framework</b> for generating{" "}
35
+ <b>domain-specific benchmarks</b> in a <b>zero-shot</b> manner. It aims
36
+ to keep your large language models on their toes—even as new data
37
+ sources, domains, and knowledge demands evolve.
38
+ </Typography>
39
  </Box>
40
+ );
41
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  export default Intro;