-
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
10 changed files
with
370 additions
and
69 deletions.
There are no files selected for viewing
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,129 @@ | ||
import React from 'react' | ||
import styled from 'styled-components'; | ||
import ImgHomepage from "../../assets/img_hp_option_1.png" | ||
|
||
const HeroHomepageContainer = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: center; | ||
padding-top: 20px; | ||
padding-left: 20px; | ||
padding-right: 20px; | ||
position: relative; | ||
@media only screen and (max-width: 992px) { | ||
flex-direction: column; | ||
align-items: center; | ||
padding-top: 3em; | ||
padding-left: 3em; | ||
padding-right: 3em; | ||
} | ||
@media only screen and (max-width: 450px) { | ||
padding-top: 1.5em; | ||
padding-left: 1.5em; | ||
padding-right: 1.5em; | ||
} | ||
`; | ||
|
||
const TextContainer = styled.div` | ||
text-align: left; | ||
margin-right: 20px; | ||
margin-left: 80px; | ||
position: relative; | ||
@media only screen and (max-width: 992px) { | ||
margin-right: 0; | ||
margin-bottom: 50px; | ||
padding: 1em; | ||
margin-left: 0 !important; | ||
} | ||
@media (max-width: 700px) { | ||
.hero-title { | ||
font-size: 8vw !important; | ||
} | ||
} | ||
`; | ||
|
||
const HeroTitle = styled.h1` | ||
font-size: 5vw; | ||
font-weight: 600; | ||
background-color: #d64d4d; | ||
display: inline-block; | ||
position: relative; | ||
z-index: 1; | ||
line-height: 0.08; | ||
padding-right: 0.4em; | ||
padding-bottom: 0.6em; | ||
@media (max-width: 700px) { | ||
font-size: 8vw !important; | ||
} | ||
`; | ||
|
||
const ParagrHomepage = styled.p` | ||
max-width: 60%; | ||
@media (max-width: 992px) { | ||
max-width: 90%; | ||
} | ||
@media (max-width: 700px) { | ||
max-width: 95%; | ||
margin-bottom: 2em; | ||
} | ||
`; | ||
|
||
|
||
const ImageHeroHomepage = styled.div` | ||
text-align: center; | ||
img { | ||
max-width: 95%; | ||
height: auto; | ||
} | ||
`; | ||
|
||
|
||
const ContentAbout = () => { | ||
return ( | ||
<div> | ||
<HeroHomepageContainer> | ||
<TextContainer> | ||
<HeroTitle>ReadQuest.</HeroTitle> | ||
<ParagrHomepage> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum a pellentesque elit, at ultricies purus. Phasellus porta mi tortor, eu fringilla turpis malesuada sed. Mauris quis magna non neque cursus interdum. Donec eu nisl tincidunt, rutrum nisl eget, vehicula justo. | ||
<br /> | ||
Now you can search, select, and add new books to your personal | ||
reading list. | ||
<br /> | ||
Organize, discover, and immerse yourself in new literary adventures. | ||
<br></br> | ||
Dive into a vast collection of books, ranging from timeless classics | ||
to the latest releases. | ||
<br /> | ||
Now you can search, select, and add new books to your personal | ||
reading list. | ||
<br /> | ||
Organize, discover, and immerse yourself in new literary adventures. | ||
<br></br> | ||
Dive into a vast collection of books, ranging from timeless classics | ||
to the latest releases. | ||
<br /> | ||
Now you can search, select, and add new books to your personal | ||
reading list. | ||
<br /> | ||
Organize, discover, and immerse yourself in new literary adventures. | ||
</ParagrHomepage> | ||
</TextContainer> | ||
<ImageHeroHomepage> | ||
<img src={ImgHomepage} alt="imagem hero homepage" /> | ||
</ImageHeroHomepage> | ||
</HeroHomepageContainer> | ||
</div> | ||
) | ||
} | ||
|
||
export default ContentAbout |
2 changes: 1 addition & 1 deletion
2
src/components/ContentHomepage.js → src/components/Homepage/ContentHomepage.js
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
Oops, something went wrong.