-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from boacausa/home-page
Home page
- Loading branch information
Showing
19 changed files
with
135 additions
and
112 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from "react" | ||
import classes from './HomePage.sass' | ||
import homePageDog from './../../images/home_page_dog.svg'; | ||
import homePageCat from './../../images/home_page_cat.svg'; | ||
|
||
const HomePage = () => { | ||
return ( | ||
<div className={classes.HomePage}> | ||
<div className={classes.initialBox} style={styles.initialBoxHeight}> | ||
<div className={classes.insideBorder}> | ||
<div className={classes.texts}> | ||
<h2 className={classes.beforeTitle}>FAÇA PARTE,</h2> | ||
<h1 className={classes.title}>É POR UMA BOA CAUSA</h1> | ||
<p className={classes.paragraph}>Para fazer do mundo um lugar melhor para todos.</p> | ||
</div> | ||
<div /> | ||
<div className={classes.petImages}> | ||
<img src={homePageDog} alt="Imagem de um cachorro" className={classes.imageDog} /> | ||
<img src={homePageCat} alt="Imagem de um gato" className={classes.imageCat} /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const styles = { | ||
initialBoxHeight: { | ||
height: (window.innerHeight * 0.75) + "px" | ||
} | ||
}; | ||
|
||
export default HomePage; |
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,75 @@ | ||
@import "../../variables/colors" | ||
@import "../../variables/fonts" | ||
@import "../../variables/sizes" | ||
|
||
.HomePage | ||
.initialBox | ||
background-color: $menuColor | ||
width: 100% | ||
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.24) | ||
padding: 60px 140px 100px | ||
|
||
.insideBorder | ||
border: 4px solid white | ||
height: 100% | ||
display: flex | ||
flex-direction: column | ||
justify-content: space-between | ||
|
||
.texts | ||
font-family: $font-family | ||
color: white | ||
position: absolute | ||
left: 0 | ||
right: 0 | ||
top: 0 | ||
bottom: 0 | ||
width: 470px | ||
height: 470px | ||
margin: auto | ||
text-align: right | ||
|
||
.beforeTitle | ||
font-weight: 200 | ||
|
||
.title | ||
font-weight: 500 | ||
|
||
.petImages | ||
display: flex | ||
flex-direction: row | ||
justify-content: space-between | ||
|
||
.imageDog | ||
width: 200px | ||
height: 300px | ||
|
||
.imageCat | ||
width: 300px | ||
height: 300px | ||
|
||
@media #{$phone} | ||
.initialBox | ||
padding: 20px 40px 80px | ||
|
||
.texts | ||
width: 260px | ||
height: 400px | ||
|
||
.beforeTitle | ||
font-size: 24px | ||
|
||
.title | ||
font-size: 24px | ||
|
||
.paragraph | ||
font-size: 14px | ||
|
||
.imageDog | ||
width: 90px | ||
height: 160px | ||
|
||
.imageCat | ||
width: 140px | ||
height: 160px | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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