styled icon global template

This commit is contained in:
Priyatham Sai Chand 2021-01-01 21:40:02 +05:30
parent b08c6711aa
commit 36599e4639
9 changed files with 51 additions and 40 deletions

View File

@ -1 +1,2 @@
[1206/101249.288:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) [1206/101249.288:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
[1231/174759.272:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)

BIN
public/avasa_optmized.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
public/indigo_optimized.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
public/locaft_optmized.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
public/skyscraper.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
public/vrl_optmized.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -14,17 +14,20 @@ import {
} from "react-bootstrap"; } from "react-bootstrap";
import styled from 'styled-components'; import styled from 'styled-components';
import { Apple, GooglePlay } from '@styled-icons/fa-brands'; 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";
const IconApple = styled(Apple)` import { StyledIconBase } from '@styled-icons/styled-icon'
const IconStyler = styled.div`
${StyledIconBase} {
width: ${props => props.w ? props.w : 26}px;
height: ${props => props.height ? props.height : 26}px;
color: ${ props => props.color ? props.color: "white"};
}
width: 30px;
height: 30px;
`; `;
const IconGooglePlay = styled(GooglePlay)`
width: 26px;
height: 26px;
`
const IconCheckCircle = styled(CheckCircle)` const IconCheckCircle = styled(CheckCircle)`
width: 50px; width: 50px;
height: 50px; height: 50px;
@ -68,6 +71,7 @@ const WhiteSection = styled.section`
`; `;
const PressSection = styled(ColoredSection)` const PressSection = styled(ColoredSection)`
padding-bottom: 3%; padding-bottom: 3%;
align-items:center;
`; `;
const PressLogo = styled.img` const PressLogo = styled.img`
@ -99,6 +103,11 @@ const FeatureTitle = styled.h3`
align-self: center; align-self: center;
`; `;
const TestimonalTitle = styled.h2`
font-size: 3rem;
color:#fff;
line-height: 1.5;
`;
export default function HomePage() { export default function HomePage() {
const history = useHistory(); const history = useHistory();
@ -106,7 +115,7 @@ export default function HomePage() {
return ( return (
<div className="HomePage"> <div className="HomePage">
< NavBar /> <NavBar />
<ColoredSection> <ColoredSection>
@ -125,7 +134,7 @@ export default function HomePage() {
</FeatureCol> </FeatureCol>
<FeatureCol lg="6"> <FeatureCol lg="6">
<img className="title-image" src="/locaft.jpg" alt="locaft-mockup" /> <img className="title-image" src="/locaft_optmized.jpg" alt="locaft-mockup" />
</FeatureCol> </FeatureCol>
</Row> </Row>
@ -133,11 +142,11 @@ export default function HomePage() {
</ColoredSection> </ColoredSection>
<WhiteSection> <WhiteSection>
<Container fluid> <ContainerPadded fluid>
<Row> <Row>
<FeatureCol lg="4"> <FeatureCol lg="4">
<IconCheckCircle /> <IconStyler width={100} height= {100} color="#66bfbf"><CheckCircle /></IconStyler>
<FeatureTitle>Easy to use.</FeatureTitle> <FeatureTitle>Easy to use.</FeatureTitle>
<p>Get relocated.We'll take care of everything.</p> <p>Get relocated.We'll take care of everything.</p>
</FeatureCol> </FeatureCol>
@ -156,36 +165,36 @@ export default function HomePage() {
</Row> </Row>
</Container> </ContainerPadded>
</WhiteSection> </WhiteSection>
<section className="colored-section" id="testimonials"> <ColoredSection>
<div id="testimonial-carousel" className="carousel slide" data-ride="false"> <Carousel>
<div className="carousel-inner"> <Carousel.Item interval={1000}>
<div className="carousel-item active container-fluid"> <Carousel.Caption>
<h2 className="testimonial-text">I had to shift from Bangalore to Hyderabad. Thanks to Locaft , it was easy to know about this place.</h2> <TestimonalTitle>I had to shift from Bangalore to Hyderabad. Thanks to Locaft , it was easy to know about this place.</TestimonalTitle>
<em>Mani , Hyderabad</em> <p>Nishant, Pune</p>
</div> </Carousel.Caption>
<div className="carousel-item container-fluid"> </Carousel.Item>
<h2 className="testimonial-text">Relocation took me 3 months previously , but thanks to Locaft , everything was done within 3 days.</h2> <Carousel.Item interval={1000}>
<em>Nishanth , Bangalore</em> <Carousel.Caption>
</div> <h3>Relocation took me 3 months previously , but thanks to Locaft , everything was done within 3 days.</h3>
</div> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<a className="carousel-control-prev" href="#testimonial-carousel" role="button" data-slide="prev"> </Carousel.Caption>
<span className="carousel-control-prev-icon"></span> </Carousel.Item>
</a>
<a className="carousel-control-next" href="#testimonial-carousel" role="button" data-slide="next">
<span className="carousel-control-next-icon"></span>
</a>
</div>
</section> </Carousel>
</ColoredSection>
<PressSection> <PressSection>
<BigHeading>Our Partners</BigHeading> <ContainerPadded fluid>
<PressLogo src="/indigo.jpg" />
<PressLogo src="/avasa.jpg" />
<PressLogo src="/vrl.jpg" />
<BigHeading>Our Partners</BigHeading>
<PressLogo src="/indigo_optimized.jpg" alt="indigo-brand" />
<PressLogo src="/avasa_optmized.jpg" alt="avassa-brand" />
<PressLogo src="/vrl_optmized.jpg" alt="vrl-brand" />
</ContainerPadded>
</PressSection> </PressSection>
<WhiteSection> <WhiteSection>
@ -220,9 +229,9 @@ 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"><IconApple /> Download</button> <button className="download-button btn btn-lg btn-dark" type="button"><IconStyler width={30} height={30}><Apple />Download</IconStyler></button>
&nbsp; &nbsp;
<button className="download-button btn btn-lg btn-dark" type="button"><IconGooglePlay /> Download</button> <button className="download-button btn btn-lg btn-dark" type="button"><IconStyler><GooglePlay /> Download</IconStyler></button>
</ContainerPadded> </ContainerPadded>
</ColoredSection> </ColoredSection>

View File

@ -20,7 +20,7 @@ const LogInContainer = (props) => {
</div> </div>
<div className="Apper_Aside_image"> <div className="Apper_Aside_image">
<img src="/skyscraper.png"></img> <img src="/skyscraper.jpg"></img>
</div> </div>
</div> </div>
<div className="Apper__Form"> <div className="Apper__Form">

View File

@ -1,6 +1,7 @@
.Apper { .Apper {
display: flex; display: flex;
color: white; color: white;
height:100vh;
} }
.Apper__Aside { .Apper__Aside {