|
1 | 1 | import { Box, Typography, Button, Container, Card, CardContent } from "@mui/material"; |
2 | 2 | import Grid from "@mui/material/Grid"; |
3 | 3 |
|
4 | | -import CardMedia from "@/components/CardMedia"; |
5 | | - |
6 | 4 | export default async function Home() { |
7 | 5 |
|
8 | 6 | return ( |
9 | 7 |
|
10 | 8 | <Box sx={{ minHeight: "100vh", bgcolor: "background.default" }}> |
11 | | - {/* Video Background Section */} |
12 | | - <Box |
13 | | - sx={{ |
14 | | - width: "100%", |
15 | | - overflow: "hidden", |
16 | | - display: "flex", |
17 | | - alignItems: "center", |
18 | | - backgroundImage: `linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url('/website/Messier_24_(infrared,_red,_green).jpg')`, |
19 | | - backgroundSize: "cover", |
20 | | - backgroundPosition: "center", |
21 | | - backdropFilter: "brightness(40%)", |
22 | | - }} |
23 | | - > |
24 | | - {/* Overlay Content */} |
25 | | - <Container maxWidth="md"> |
26 | | - <Box |
27 | | - sx={{ |
28 | | - py: 8, |
29 | | - zIndex: 2, |
30 | | - width: "100%", |
31 | | - display: "flex", |
32 | | - flexDirection: "column", |
33 | | - justifyContent: "center", |
34 | | - color: "common.white", |
35 | | - textShadow: "0 2px 8px rgba(0,0,0,0.7)", |
36 | | - }} |
37 | | - > |
38 | | - <Box> |
39 | | - <Typography variant="h2" component="h1" gutterBottom sx={{ fontWeight: 700 }}> |
40 | | - Engage Your Research |
41 | | - </Typography> |
42 | | - <Typography variant="h5" gutterBottom> |
43 | | - Interactive Computing with BadgerCompute |
44 | | - </Typography> |
45 | | - <Button |
46 | | - variant="contained" |
47 | | - color="primary" |
48 | | - size="large" |
49 | | - sx={{ mt: 3 }} |
50 | | - href="/get-started" |
51 | | - > |
52 | | - Get Started |
53 | | - </Button> |
54 | | - </Box> |
55 | | - </Box> |
56 | | - </Container> |
57 | | - </Box> |
58 | | - <Box pr={1}> |
59 | | - <Typography variant={'subtitle2'} align="right"> |
60 | | - Messier 24 (infrared, red, green), Photo by Brandon Flores |
61 | | - </Typography> |
62 | | - </Box> |
63 | | - {/* Main Content Section */} |
64 | | - <Container maxWidth="md" sx={{ mt: 8 }}> |
65 | | - <Typography variant="h4" component="h2" gutterBottom> |
66 | | - What is BadgerCompute? |
67 | | - </Typography> |
68 | | - <Typography variant="body1" component="p" sx={{ mb: 2 }}> |
69 | | - BadgerCompute is a{' '} |
70 | | - <a href="https://jupyter.org/" target="_blank" rel="noopener noreferrer" style={{ color: '#1976d2', textDecoration: 'underline' }}> |
71 | | - Jupyter |
72 | | - </a> |
73 | | - -based interactive compute service for academic and research computing at the University of Wisconsin-Madison. |
74 | | - Compute, visualize data, and write Jupyter notebooks without additional installation or leaving your laptop. |
75 | | - </Typography> |
76 | | - <Typography variant="body1" component="p"> |
77 | | - Explore our{' '} |
78 | | - <a href="/docs" target="_blank" rel="noopener noreferrer" style={{ color: '#1976d2', textDecoration: 'underline' }}> |
79 | | - documentation |
80 | | - </a>{' '}, join our{' '} |
81 | | - <a href="https://community.badgercompute.wisc.edu/" target="_blank" rel="noopener noreferrer" style={{ color: '#1976d2', textDecoration: 'underline' }}> |
82 | | - community |
83 | | - </a>{' '}, and{' '} |
84 | | - <a href="/get-started" target="_blank" rel="noopener noreferrer" style={{ color: '#1976d2', textDecoration: 'underline' }}> |
85 | | - get started |
86 | | - </a>! |
87 | | - </Typography> |
88 | | - </Container> |
89 | | - {/* Use Cases Section */} |
90 | | - <Container maxWidth="lg" sx={{ mt: 10, mb: 10 }}> |
91 | | - <Typography variant="h4" component="h2" align="center" gutterBottom sx={{ mb: '1em', fontWeight: 700 }}> |
92 | | - Power your research with BadgerCompute |
93 | | - </Typography> |
94 | | - <Grid container spacing={4} justifyContent="center"> |
95 | | - {/* Card 1: Develop your code */} |
96 | | - <Grid size={{xs: 12, md: 4}} display={"flex"}> |
97 | | - <Card sx={{ flexGrow: 1, display: "flex", flexDirection: "column", alignItems: "center", p: 2 }}> |
98 | | - <CardMedia |
99 | | - image={(await import(`@/public/website/jupyter-languages.svg`)).default} |
100 | | - alt="Develop your code" |
101 | | - /> |
102 | | - <CardContent> |
103 | | - <Typography variant="h6" component="h3" gutterBottom align="center"> |
104 | | - Develop your code |
105 | | - </Typography> |
106 | | - <Typography variant="body2" align="center"> |
107 | | - Develop code and scripts for research in your preferred programming language on BadgerCompute's Jupyter notebooks. |
108 | | - </Typography> |
109 | | - </CardContent> |
110 | | - </Card> |
111 | | - </Grid> |
112 | | - {/* Card 2: Compute and analyze */} |
113 | | - <Grid size={{xs: 12, md: 4}} display={"flex"}> |
114 | | - <Card sx={{ flexGrow: 1, display: "flex", flexDirection: "column", alignItems: "center", p: 2 }}> |
115 | | - <CardMedia |
116 | | - image={(await import(`@/public/website/jupyter-compute.png`)).default} |
117 | | - alt="Compute and analyze" |
118 | | - /> |
119 | | - <CardContent> |
120 | | - <Typography variant="h6" component="h3" gutterBottom align="center"> |
121 | | - Compute and analyze |
122 | | - </Typography> |
123 | | - <Typography variant="body2" align="center"> |
124 | | - Execute scripts and programs using standard software. |
125 | | - BadgerCompute also integrates with{' '} |
126 | | - <a href="https://mybinder.org/" target="_blank" rel="noopener noreferrer" style={{ color: '#1976d2', textDecoration: 'underline' }}> |
127 | | - Binder |
128 | | - </a>{' '} |
129 | | - so that you can deploy any software that isn't already provided! |
130 | | - </Typography> |
131 | | - </CardContent> |
132 | | - </Card> |
133 | | - </Grid> |
134 | | - {/* Card 3: Interact with your data */} |
135 | | - <Grid size={{xs: 12, md: 4}} display={"flex"}> |
136 | | - <Card sx={{ flexGrow: 1, display: "flex", flexDirection: "column", alignItems: "center", p: 2 }}> |
137 | | - <CardMedia |
138 | | - image={(await import(`@/public/website/jupyter-interact.png`)).default} |
139 | | - alt="Interact with your data" |
140 | | - /> |
141 | | - <CardContent> |
142 | | - <Typography variant="h6" component="h3" gutterBottom align="center"> |
143 | | - Interact with your data |
144 | | - </Typography> |
145 | | - <Typography variant="body2" align="center"> |
146 | | - Explore, visualize, and interact with data and plots directly in your notebook, |
147 | | - using your code, Markdown, and Jupyter's Interact widget. |
148 | | - </Typography> |
149 | | - </CardContent> |
150 | | - </Card> |
151 | | - </Grid> |
152 | | - </Grid> |
153 | | - </Container> |
154 | | - {/* Access BadgerCompute Section */} |
155 | 9 | <Container maxWidth="lg" sx={{ mb: 10 }}> |
156 | 10 | <Grid container spacing={4} alignItems="center"> |
157 | 11 | <Grid size={{xs: 12, md: 5}}> |
158 | 12 | <Typography variant="h4" component="h2" gutterBottom> |
159 | | - Access BadgerCompute through your browser |
| 13 | + Welcomeeeeeeeeeee |
160 | 14 | </Typography> |
161 | | - <Typography variant="body1"> |
162 | | - No extra downloads or installations are needed to access BadgerCompute. Launch BadgerCompute right from your browser. |
163 | | - </Typography> |
164 | | - </Grid> |
165 | | - <Grid size={{xs: 12, md: 7}}> |
166 | | - <video |
167 | | - autoPlay |
168 | | - loop |
169 | | - muted |
170 | | - playsInline |
171 | | - style={{ width: "100%", borderRadius: "8px" }} |
172 | | - > |
173 | | - <source src={`/website/jupyter-video.webm`} type="video/webm" /> |
174 | | - <source src={`/website/jupyter-video.mp4`} type="video/mp4" /> |
175 | | - Your browser does not support the video tag. |
176 | | - </video> |
177 | 15 | </Grid> |
178 | 16 | </Grid> |
179 | 17 | </Container> |
|
0 commit comments