Skip to content

Commit

Permalink
add hero section img & styling
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanBonsignori committed Jun 15, 2024
1 parent cd3fd2f commit bf5ff05
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 7 deletions.
Binary file added client/src/assets/feedback.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions client/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,32 @@ body {
.caution-tape a {
text-decoration: underline;
}

.hero-section {
height: 600px;
margin-left: 40px;
margin-right: 40px;
flex-direction: row-reverse;
background-color: #f9f9f9;
display: flex;
justify-content: space-between;
align-items: center;
gap: 40px;
}

.hero-section img {
width: 100%;
height: 500px;
}

.hero-text h2 {
font-size: 2.5rem;
font-weight: 700;
}

.hero-text p {
font-size: 1.2rem;
font-weight: 400;
margin-top: 15px;
margin-bottom: 20px;
}
26 changes: 19 additions & 7 deletions client/src/routes/Root.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Button, Typography } from "@mui/material";
import Grid from "@mui/material/Grid";
import { FC, useEffect, useRef } from "react";
import Typed from "typed.js";
import feedbackImg from "../assets/feedback.png";
import Layout from "../components/Layout";

const Root: FC = () => {
Expand Down Expand Up @@ -38,19 +38,31 @@ const Root: FC = () => {
// FIXME: landing page not as early return
return (
<Layout>
<Grid container spacing={1}>
<Grid item xs={12} className="">
<div className="hero-section">
<img src={feedbackImg} alt="UserVote" className="hero-image" />
<div className="hero-text">
<Typography variant="h2">Collect feedback.</Typography>
<Typography variant="h2">
Engage your <span className="" ref={typedRef} />
</Typography>
</Grid>
<Grid item>
<Typography>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi
</Typography>
<Button variant="contained" color="primary">
See more
</Button>
</Grid>
</Grid>
<Button
variant="outlined"
color="primary"
className="plans-pricing"
sx={{ ml: "15px" }}
>
Plans & Pricing
</Button>
</div>
</div>
</Layout>
);
};
Expand Down

0 comments on commit bf5ff05

Please sign in to comment.