Skip to content

Commit

Permalink
Criando page Home
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusCandido committed Sep 17, 2020
1 parent d41606a commit 13c79a9
Show file tree
Hide file tree
Showing 5 changed files with 408 additions and 0 deletions.
2 changes: 2 additions & 0 deletions front-web/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React from 'react';
import './App.css';
import Header from './components/header';
import Home from './Pages/Home';

function App() {
return (
<div>
<Header />
<Home />
</div>
);
}
Expand Down
33 changes: 33 additions & 0 deletions front-web/src/Pages/Home/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react';
import './styles.css';

import { ReactComponent as ArrowIcon } from '../../assets/Seta.svg';

import { ReactComponent as GamerImg } from '../../assets/GAMER.svg';

const Home = () => {
return (
<div className="home-container">
<div className="home-text">
<h1 className="home-text-title">
Quais jogos a galera gosta mais ?
</h1>
<h3 className="home-text-subtitle">
Clique no botão abaixo e saiba quais são os jogos que os gamers estão escolhendo!
</h3>
<div className="home-actions">
<button className="home-btn">
Quero saber quais são
</button>
<div className="home-btn-icon">
<ArrowIcon />
</div>
</div>
</div>

<GamerImg className="home-image" />
</div>
)
}

export default Home;
108 changes: 108 additions & 0 deletions front-web/src/Pages/Home/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@

.home-container {
margin-top: 150px;
display: flex;
justify-content: center;
}

.home-text {
width: 490px;
margin-right: 70px;
}

.home-text-title {
font-size: 55px;
color: var(--color-turquoise);
}

.home-text-subtitle {
font-size: 24px;
color: var(--color-coral);
}

.home-actions {
display: flex;
height: 70px;
margin-top: 150px;
}

.home-btn {
background-color: var(--color-turquoise);
border-radius: 10px 0px 0px 10px;
color: var(--color-black);
font-weight: bold;
font-size: 24px;
padding: 20px 45px;
}

.home-btn:hover {
background-color: #04c7ef;
}

.home-btn-icon {
border-radius: 0px 10px 10px 0px;
width: 70px;
background-color: var(--color-coral);
display: flex;
align-items: center;
justify-content: center;
}

/* responsive */

@media (max-width: 1250px) {
.home-image {
max-width: 400px;
height: auto;
}
}

@media (max-width: 1250px) {
.home-image {
max-width: 400px;
height: auto;
}

.home-text-title {
font-size: 45px;
}

.home-text-subtitle {
font-size: 20px;
}

.home-text {
width: 410px;
margin-right: 20px;
}

.home-btn {
font-size: 18px;
padding: 10px 25px;
}

.home-actions {
margin-top: 50px;
}
}

@media (max-width: 850px) {
.home-container {
margin-top: 50px;
}

.home-actions {
height: 50px;
justify-content: center;
}

.home-image {
display: none;
}

.home-text {
margin-right: 0;
text-align: center;
padding: 0 10px;
}
}
Loading

0 comments on commit 13c79a9

Please sign in to comment.