Skip to content

Commit

Permalink
search page 100% responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
DinaX02 committed Nov 29, 2023
1 parent 63e4412 commit 59c39ca
Show file tree
Hide file tree
Showing 10 changed files with 370 additions and 69 deletions.
22 changes: 22 additions & 0 deletions src/assets/no search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/assets/no_img_available.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
129 changes: 129 additions & 0 deletions src/components/About/ContentAbout.js
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Link } from 'react-router-dom'
import styled from 'styled-components';
import ImgHomepage from "../assets/img_hp_option_1.png"
import ImgHomepage from "../../assets/img_hp_option_1.png"

const HeroHomepageContainer = styled.div`
display: flex;
Expand Down
1 change: 1 addition & 0 deletions src/components/Navbar_Inside.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const NavbarInside = ()=> {
<div className={`nav-items ${isOpen && "open"}`}>
<Link to={""}>To Read</Link>
<Link to={""}>Have Read</Link>
<Link to={"/about"}>About</Link>
<Link to={"/search-page"}>Search</Link>
<div className="space_search_bar">
</div>
Expand Down
Loading

0 comments on commit 59c39ca

Please sign in to comment.