-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
167 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,10 @@ | ||
.App { | ||
text-align: center; | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: 'Poppins'; | ||
} | ||
|
||
.App-logo { | ||
height: 40vmin; | ||
pointer-events: none; | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
} | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
.limita-secao { | ||
max-width: 1024px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,16 @@ | ||
import logo from './logo.svg'; | ||
import React from "react"; | ||
import './App.css'; | ||
|
||
import Topo from './componentes/topo'; | ||
import Conteudo from "./componentes/conteudo"; | ||
|
||
function App() { | ||
return ( | ||
<div className="App"> | ||
<header className="App-header"> | ||
<img src={logo} className="App-logo" alt="logo" /> | ||
<p> | ||
Edit <code>src/App.js</code> and save to reload. | ||
</p> | ||
<a | ||
className="App-link" | ||
href="https://reactjs.org" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
Learn React | ||
</a> | ||
</header> | ||
</div> | ||
return( | ||
<section> | ||
<Topo /> | ||
<Conteudo /> | ||
</section> | ||
); | ||
} | ||
|
||
export default App; | ||
export default App; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
import "./style.css"; | ||
|
||
export default function Conteudo() { | ||
return( | ||
<section> | ||
<div className="banner"> | ||
|
||
</div> | ||
<div className="limita-secao secao-conteudo"> | ||
<h1>Bem-vindo a Barber Shop</h1> | ||
<p className="paragrafo1"><spam>Nossa barbearia sempre oferece profissionais de qualidade e estamos prontos para lidar com suas maiores expectativas.</spam></p> | ||
<p>Nossos serviços são dedicados ao seu sucesso pessoal. Aqui temos uma equipe premiada que demonstrou o talento de mestres barbeiros em vários concursos de estilo. Deixe nosso barbeiro ser seu estilista pessoal e você nunca ficará desapontado.</p> | ||
<p className="assinatura">S. Kelly</p> | ||
</div> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.banner { | ||
height: 35vh; | ||
background-image: url('../../assets/banner-barbearia.jpg'); | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
background-position: 0% 45%; | ||
margin-bottom: 85px; | ||
} | ||
|
||
.secao-conteudo { | ||
margin: 0 auto; | ||
text-align: center; | ||
padding: 0 20px; | ||
} | ||
|
||
.secao-conteudo h1 { | ||
font-size: 38px; | ||
margin-bottom: 25px; | ||
} | ||
|
||
.paragrafo1 { | ||
margin: auto; | ||
max-width: 800px; | ||
font-weight: bold; | ||
padding-bottom: 15px; | ||
} | ||
|
||
.assinatura { | ||
color: #B2987D; | ||
font-family: 'Great Vibes'; | ||
font-size: 48px; | ||
padding-top: 65px; | ||
padding-bottom: 45px; | ||
} | ||
|
||
@media screen and (max-width: 375px){ | ||
.banner { | ||
background-position: 50%; | ||
background-size: cover; | ||
} | ||
|
||
.paragrafo1 { | ||
max-width: 300px; | ||
} | ||
} | ||
|
||
|
||
@media screen and (min-width: 376px) and (max-width: 768px){ | ||
.paragrafo1 { | ||
max-width: 650px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React, { useState } from "react"; | ||
import './style.css'; | ||
|
||
import Logo from "../../assets/barbearia-logo.png"; | ||
import Lua from "../../assets/moon.png"; | ||
|
||
export default function Topo() { | ||
const corDeFundoBranco = 'modoclaro'; | ||
const corDefundoPreto = 'modoescuro'; | ||
|
||
const [novaCor, setNovaCor] = useState(corDeFundoBranco); | ||
|
||
const alterarCor = () => { | ||
if (novaCor === corDeFundoBranco) { | ||
setNovaCor(corDefundoPreto) | ||
} else { | ||
setNovaCor(corDeFundoBranco) | ||
} | ||
}; | ||
|
||
return( | ||
<section className={novaCor}> | ||
<div className="limita-secao secao-topo"> | ||
<img className="logo" src={ Logo } alt="Barbearia Logo" /> | ||
<button onClick={alterarCor} className={novaCor}> | ||
<img src={ Lua } alt="Dark Mode" /> | ||
<p>Dark</p> | ||
</button> | ||
</div> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.modoclaro { | ||
background-color: #fff; | ||
color: #000; | ||
} | ||
|
||
.modoescuro { | ||
background-color: #252323; | ||
color: #fff; | ||
} | ||
|
||
.secao-topo { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
margin: 0 auto; | ||
} | ||
|
||
.logo { | ||
width: 95px; | ||
} | ||
|
||
button { | ||
border: 2px solid #B2987D; | ||
border-radius: 35px; | ||
padding: 8px 15px; | ||
background-color: #fff; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-evenly; | ||
margin-right: 15px; | ||
} | ||
|
||
button:hover { | ||
cursor: pointer; | ||
} | ||
|
||
button img { | ||
width: 25px; | ||
} | ||
|
||
button p { | ||
font-weight: bold; | ||
padding-left: 10px; | ||
} | ||
|