Skip to content

Commit 0e28f35

Browse files
committed
update herosection
1 parent ce2e8de commit 0e28f35

File tree

5 files changed

+47
-8
lines changed

5 files changed

+47
-8
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.vscode/
2-
express/img/*
2+
express/img/*
3+
4+
*DS_STORE

client/src/components/HeroSection/HeroSection.jsx

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@ import { Box, Button, Typography } from "@mui/material";
22
import { darken } from "@mui/material/styles";
33
import { useNavigate } from "react-router-dom";
44
import { useSelector } from "react-redux";
5+
import herosection from "../../static/herosection.gif";
56

67
export default function HeroSection() {
78
const navigate = useNavigate();
89
const auth = useSelector((state) => state.authenticated);
910
return (
10-
<>
11-
<Box sx={{ marginTop: "5rem", marginBottom: "10rem" }}>
11+
<div style={{ display: "flex" }}>
12+
<Box
13+
sx={{
14+
display: "flex",
15+
flexDirection: "column",
16+
marginTop: "5rem",
17+
marginBottom: "10rem",
18+
width: "50%",
19+
}}
20+
>
1221
<Typography
1322
variant="h4"
1423
sx={{
@@ -18,7 +27,6 @@ export default function HeroSection() {
1827
fontWeight: 600,
1928
letterSpacing: "0.2rem",
2029
marginTop: "15rem",
21-
maxWidth: "max(35%, 25rem)",
2230
color: "var(--color-accent)",
2331
}}
2432
>
@@ -47,17 +55,41 @@ export default function HeroSection() {
4755
}}
4856
sx={{
4957
marginLeft: "10rem",
50-
width: "max(35%, 25rem)",
58+
boxSizing: "border-box",
5159
marginTop: "1.5rem",
5260
backgroundColor: "var(--color-secondary)",
5361
"&:hover": {
5462
backgroundColor: darken("#0C7489", 0.1), // Adjust the factor (0.1) as needed
5563
},
64+
maxWidth: "max(70%, 20rem)",
5665
}}
5766
>
5867
<Typography>Try Now</Typography>
5968
</Button>
6069
</Box>
61-
</>
70+
<div
71+
style={{
72+
width: "50%",
73+
display: "flex",
74+
justifyContent: "center",
75+
alignItems: "center",
76+
}}
77+
>
78+
<Box
79+
sx={{
80+
display: "flex",
81+
width: "80%",
82+
height: "fit-content",
83+
marginTop: "10rem",
84+
boxShadow: "0px 0px 13px 3px rgba(17,157,164,0.71)",
85+
}}
86+
>
87+
<img
88+
src={herosection}
89+
style={{ width: "100%", height: "fit-content" }}
90+
/>
91+
</Box>
92+
</div>
93+
</div>
6294
);
6395
}

client/src/components/Navbar/Navbar.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ export default function Navbar() {
5353
}}
5454
>
5555
<Toolbar>
56-
<Typography variant="h6" component="div" sx={{ flexGrow: 1 }}>
56+
<Typography
57+
variant="h6"
58+
component="div"
59+
sx={{ flexGrow: 1, cursor: "pointer" }}
60+
onClick={() => navigate("/")}
61+
>
5762
APP NAME
5863
</Typography>
5964
{auth && (

client/src/components/OutputWindow/OutputWindow.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default function OutputWindow({ context }) {
104104
theme={vs2015}
105105
wrapLines
106106
customStyle={{
107-
maxHeight: "47vh",
107+
height: "47vh",
108108
}}
109109
/>
110110
</div>

client/src/static/herosection.gif

328 KB
Loading

0 commit comments

Comments
 (0)