Skip to content

Commit

Permalink
update herosection
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Zenith committed Jan 21, 2024
1 parent ce2e8de commit 0e28f35
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.vscode/
express/img/*
express/img/*

*DS_STORE
42 changes: 37 additions & 5 deletions client/src/components/HeroSection/HeroSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,22 @@ import { Box, Button, Typography } from "@mui/material";
import { darken } from "@mui/material/styles";
import { useNavigate } from "react-router-dom";
import { useSelector } from "react-redux";
import herosection from "../../static/herosection.gif";

export default function HeroSection() {
const navigate = useNavigate();
const auth = useSelector((state) => state.authenticated);
return (
<>
<Box sx={{ marginTop: "5rem", marginBottom: "10rem" }}>
<div style={{ display: "flex" }}>
<Box
sx={{
display: "flex",
flexDirection: "column",
marginTop: "5rem",
marginBottom: "10rem",
width: "50%",
}}
>
<Typography
variant="h4"
sx={{
Expand All @@ -18,7 +27,6 @@ export default function HeroSection() {
fontWeight: 600,
letterSpacing: "0.2rem",
marginTop: "15rem",
maxWidth: "max(35%, 25rem)",
color: "var(--color-accent)",
}}
>
Expand Down Expand Up @@ -47,17 +55,41 @@ export default function HeroSection() {
}}
sx={{
marginLeft: "10rem",
width: "max(35%, 25rem)",
boxSizing: "border-box",
marginTop: "1.5rem",
backgroundColor: "var(--color-secondary)",
"&:hover": {
backgroundColor: darken("#0C7489", 0.1), // Adjust the factor (0.1) as needed
},
maxWidth: "max(70%, 20rem)",
}}
>
<Typography>Try Now</Typography>
</Button>
</Box>
</>
<div
style={{
width: "50%",
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<Box
sx={{
display: "flex",
width: "80%",
height: "fit-content",
marginTop: "10rem",
boxShadow: "0px 0px 13px 3px rgba(17,157,164,0.71)",
}}
>
<img
src={herosection}
style={{ width: "100%", height: "fit-content" }}
/>
</Box>
</div>
</div>
);
}
7 changes: 6 additions & 1 deletion client/src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ export default function Navbar() {
}}
>
<Toolbar>
<Typography variant="h6" component="div" sx={{ flexGrow: 1 }}>
<Typography
variant="h6"
component="div"
sx={{ flexGrow: 1, cursor: "pointer" }}
onClick={() => navigate("/")}
>
APP NAME
</Typography>
{auth && (
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/OutputWindow/OutputWindow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function OutputWindow({ context }) {
theme={vs2015}
wrapLines
customStyle={{
maxHeight: "47vh",
height: "47vh",
}}
/>
</div>
Expand Down
Binary file added client/src/static/herosection.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e28f35

Please sign in to comment.