-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathWindowCard.jsx
More file actions
47 lines (45 loc) · 1.65 KB
/
WindowCard.jsx
File metadata and controls
47 lines (45 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import {Box, Card, Stack} from "@mui/material";
import colorYears from "../Theme/HackHpiColors";
export function WindowCard(props) {
const colors = colorYears[props.year] ?? colorYears.default;
const backgroundGradient = `linear-gradient(90deg, ${colors.primary} 0%, ${colors.secondary} 100%)`;
return (
<Card elevation={7}>
<Box sx={{
//backgroundColor: "primary.main",
//rgba(247,37,133,1)
//rgba()
background: backgroundGradient,
display: "flex",
justifyContent: "right",
alignItems: "center",
height: "2rem",
paddingRight: "1rem"
}}>
<Stack spacing={1} sx={{height: "100%"}} direction={"row"} alignItems={"center"}>
<Box sx={{
height: "60%",
width: "auto",
aspectRatio: "1 / 1",
background: "rgba(10,10,10,.5)"
}}></Box>
<Box sx={{
height: "60%",
width: "auto",
aspectRatio: "1 / 1",
background: "rgba(10,10,10,.5)"
}}></Box>
<Box sx={{
height: "60%",
width: "auto",
aspectRatio: "1 / 1",
background: "rgba(10,10,10,.5)"
}}></Box>
</Stack>
</Box>
<Box p={3}>
{props.children}
</Box>
</Card>
)
}