homepage fix

This commit is contained in:
Priyatham Sai Chand 2021-03-19 17:42:44 +05:30
parent 53d84550a8
commit 1d33a3c10c
4 changed files with 20 additions and 23 deletions

View File

@ -4,15 +4,8 @@ import Footer from './Footer';
import { useHistory } from "react-router-dom"; import { useHistory } from "react-router-dom";
import Lottie from 'react-lottie'; import Lottie from 'react-lottie';
import animationData from '../lottie/plane_gif'; import animationData from '../lottie/plane_gif';
import { import {Container,Row,Col,Carousel, Button} from "react-bootstrap";
Container,
Row,
Col,
Carousel,
} from "react-bootstrap";
import styled from 'styled-components'; import styled from 'styled-components';
import { Apple, GooglePlay } from '@styled-icons/fa-brands';
import { CheckCircle, Heart, AddressCard, ChartLine } from '@styled-icons/fa-solid'; import { CheckCircle, Heart, AddressCard, ChartLine } from '@styled-icons/fa-solid';
import { Bullseye } from "@styled-icons/fa-solid"; import { Bullseye } from "@styled-icons/fa-solid";
import { StyledIconBase } from '@styled-icons/styled-icon' import { StyledIconBase } from '@styled-icons/styled-icon'
@ -64,8 +57,7 @@ const FeatureCol = styled(Col)`
`; `;
const ContainerPadded = styled(Container)` const ContainerPadded = styled(Container)`
padding: 7% 15%; padding: 5% 5%;
font-family: "Montserrat";
text-align: center; text-align: center;
`; `;
@ -87,6 +79,8 @@ const TestimonalTitle = styled.h2`
font-size: 3rem; font-size: 3rem;
color:#fff; color:#fff;
line-height: 1.5; line-height: 1.5;
align-content: center;
padding: 10px 50px;
`; `;
@ -98,7 +92,7 @@ export default function HomePage() {
<div className="HomePage"> <div className="HomePage">
<NavBar /> <NavBar />
<ColoredSection> <ColoredSection height="100vh" width="100vw">
<ContainerPadded fluid> <ContainerPadded fluid>
@ -107,11 +101,11 @@ export default function HomePage() {
<FeatureCol lg="6"> <FeatureCol lg="6">
<BigHeading>Adapt to a new place easy peasy.</BigHeading> <BigHeading>Adapt to a new place easy peasy.</BigHeading>
<button type="button" onClick={() => { <Button variant="info" onClick={() => {
history.push("/user/login") history.push("/user/login")
}} className="btn btn-info login mr-1">Log In</button> }} >Log In</Button> &nbsp;
<button type="button" className="btn btn-info login mr-1" onClick={() => history.push("/user/register")} >Sign Up</button> <Button variant="info" onClick={() => history.push("/user/register")} >Sign Up</Button>
</FeatureCol> </FeatureCol>
@ -123,7 +117,7 @@ export default function HomePage() {
</Row> </Row>
</ContainerPadded> </ContainerPadded>
</ColoredSection> </ColoredSection>
<WhiteSection> <WhiteSection id="services">
<ContainerPadded fluid> <ContainerPadded fluid>
@ -184,7 +178,7 @@ export default function HomePage() {
</ContainerPadded> </ContainerPadded>
</PressSection> </PressSection>
<WhiteSection> <WhiteSection id="about-us">
<ContainerPadded fluid> <ContainerPadded fluid>
@ -220,14 +214,16 @@ export default function HomePage() {
<ContainerPadded fluid> <ContainerPadded fluid>
<BigHeading>Recommend us to your friends !</BigHeading> <BigHeading>Recommend us to your friends !</BigHeading>
<button className="download-button btn btn-lg btn-dark" type="button"><IconStyler width={30} height={30}><Apple />Download</IconStyler></button> <img width="200px" src="google-play-badge.png"></img>
&nbsp; &nbsp;
<button className="download-button btn btn-lg btn-dark" type="button"><IconStyler><GooglePlay /> Download</IconStyler></button> <img width="160px" src="apple_badge.svg" ></img>
</ContainerPadded> </ContainerPadded>
</ColoredSection> </ColoredSection>
<Footer /> <div id="footer">
<Footer />
</div>

View File

@ -55,7 +55,7 @@ const List = styled.ul`
const ListElement = styled.li` const ListElement = styled.li`
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
text-transfrom: uppercase; text-transform: uppercase;
position:relative; position:relative;
padding:3px 50px; padding:3px 50px;
@ -123,7 +123,7 @@ export default function NavBar() {
<List> <List>
<ListElement><Anchor href="/">Home</Anchor></ListElement> <ListElement><Anchor href="/">Home</Anchor></ListElement>
<ListElement><Anchor href="/#about-us">About</Anchor></ListElement> <ListElement><Anchor href="/#about-us">About</Anchor></ListElement>
<ListElement><Anchor href="/#features">Services</Anchor></ListElement> <ListElement><Anchor href="/#services">Services</Anchor></ListElement>
<ListElement><Anchor href="/#footer">Contact us</Anchor></ListElement> <ListElement><Anchor href="/#footer">Contact us</Anchor></ListElement>
{userData.user ? ( {userData.user ? (
<React.Fragment> <React.Fragment>

View File

@ -1,5 +1,5 @@
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700'); @import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
@import url('https://fonts.googleapis.com/css?family=Montserrat|Ubuntu');
* { * {
box-sizing: border-box; box-sizing: border-box;
font-family: "Roboto", sans-serif; font-family: "Roboto", sans-serif;

View File

@ -1,3 +1,4 @@
@import url('https://fonts.googleapis.com/css?family=Montserrat|Ubuntu');
.Apper { .Apper {
display: flex; display: flex;
color: white; color: white;
@ -29,7 +30,7 @@
.Apper_heading{ .Apper_heading{
position: relative; position: relative;
text-align: center; text-align: center;
font-family: "Ubuntu"; font-family: Ubuntu;
font-size: 5rem; font-size: 5rem;
font-weight: bold; font-weight: bold;
color: #ffffff; color: #ffffff;