Skip to content

Commit

Permalink
made the first view
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimhabibeg committed Apr 13, 2022
1 parent fa88d1c commit 0cf41ff
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 1 deletion.
4 changes: 4 additions & 0 deletions client/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body{
background-color: rgba(0, 0, 0,.9);
text-align: center;
}
3 changes: 2 additions & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import './App.css';
import LandingPage from './pages/LandingPage/LandingPage';

function App() {
return (
<div className="App">
<h1>Hello World!</h1>
<LandingPage/>
</div>
);
}
Expand Down
76 changes: 76 additions & 0 deletions client/src/pages/LandingPage/LandingPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
@import url('https://fonts.googleapis.com/css2?family=Ms+Madi&display=swap');
.LandingPage{
display: flex;
justify-content: center;
flex-direction: column;
}
.title{
color: white;
font-size: 75px;
font-family: 'Ms Madi', cursive;
margin-bottom: 20px;
}

.info{
color: rgba(255, 255, 255,.9);
}

.headerBreak{
width: 80%;
}

.options{
display: flex;
flex-direction: row;
justify-content: center;
width: 80%;
margin: 0 auto;
}

.option{
color: white;
background-color: black;
width: 25%;
margin: 50px 50px 0;
height: 75px;
font-size: 40px;
padding: 0;
display: flex;
justify-content: center;
flex-direction: column;
border-radius: 20px;
transition: all 0.3s;
border: 3px solid white;
}

.option:hover{
color: black;
background-color: rgba(255, 255, 255,.85);
border: 3px solid black;
}

@media screen and (max-width: 1200px) and (min-width: 480px) {
.options{
flex-direction: column;
width: 75%;
}
.option{
width: 100%;
margin: 50px 0 25px;
}
}

@media screen and (max-width: 480px) {
.options{
flex-direction: column;
width: 75%;
}
.option{
width: 100%;
margin: 50px 0 25px;
font-size: 25px;
}
.title{
font-size: 50px;
}
}
17 changes: 17 additions & 0 deletions client/src/pages/LandingPage/LandingPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";
import './LandingPage.css';

export default function LandingPage(){
return(
<div className="LandingPage">
<h1 className="title">Food Game</h1>
<h3 className="info">Don't eat the last piece</h3>
<hr className="headerBreak"/>
<div className="options">
<div className="option">Easy</div>
<div className="option">Hard</div>
<div className="option">Unbeatable</div>
</div>
</div>
);
}

0 comments on commit 0cf41ff

Please sign in to comment.