Skip to content

Commit

Permalink
Add home page welcome section
Browse files Browse the repository at this point in the history
  • Loading branch information
Singa-pirate committed Sep 25, 2024
1 parent c7a61ce commit a526491
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 5 deletions.
3 changes: 3 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const theme = createTheme({
root: {
color: "#ffffff",
},
body2: {
color: "#caff33",
},
},
},
},
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/assets/code_editor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion frontend/src/components/Navbar/Navbar.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.Navbar {
display: flex;
padding: 20px 34px;
margin-inline: 20px;
justify-content: space-between;
align-items: center;
border-radius: 100px;
Expand Down
37 changes: 35 additions & 2 deletions frontend/src/pages/Home/Home.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,41 @@
.Home {
background: var(--Grey-10, #1A1A1A);
padding: 40px 60px;

padding: 40px 80px;
display: flex;
flex-direction: column;
gap: 20px;
min-height: 100rem;

&-welcome {
display: flex;
flex-direction: row;
justify-content: space-between;

&-text {
max-width: 45vw;
}

&-title {
display: inline;
font-size: 2rem !important;
font-weight: 700;
}

&-description {
padding-block: 30px;
font-size: 0.8rem !important;
font-weight: 200;
color: var(--White-90, #E4E4E7) !important;
}

&-image {
width: 100%;
height: auto;
max-width: 20vw;
object-fit: contain;
}
}

}

.Home-button {
Expand Down
29 changes: 27 additions & 2 deletions frontend/src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { ReactElement } from "react";
import { useNavigate } from "react-router-dom";
import "./Home.scss";
import Navbar from "../../components/Navbar/Navbar";
import { Box } from "@mui/material";
import { Box, Button, Typography } from "@mui/material";
import CodeEditorImage from "../../assets/code_editor.svg";

const Home = (): ReactElement => {
const navigate = useNavigate();
Expand All @@ -13,7 +14,31 @@ const Home = (): ReactElement => {

return (
<Box className="Home">
<Navbar></Navbar>
<Navbar />
<Box className="Home-welcome">
<Box className="Home-welcome-text">
<Typography className="Home-welcome-title">
Welcome to LuckyJinx <br /> Empowering Your{" "}
</Typography>
<Typography variant="body2" className="Home-welcome-title">
Interview Preparation
</Typography>

<Typography className="Home-welcome-description">
Collaborate with other enthusiastic coders to prepare for your technical interviews! Select a difficulty
level and a topic, and we will immediately select a question and match you with another coder. You can then
start on developing a solution to the problem.
</Typography>

<Button color="primary" variant="contained">
Get Started
</Button>
</Box>

<Box className="Home-welcome-image">
<img src={CodeEditorImage} alt="Code Editor" />
</Box>
</Box>

<button onClick={goToQuestionList} className="Home-button">
Go to Question List
Expand Down

0 comments on commit a526491

Please sign in to comment.