Skip to content

Commit

Permalink
third commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sujoyduttajad committed Apr 22, 2021
1 parent 760f97b commit 23b0819
Show file tree
Hide file tree
Showing 23 changed files with 573 additions and 52 deletions.
Binary file removed public/favicon.ico
Binary file not shown.
6 changes: 5 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap"
rel="stylesheet"
/>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand All @@ -24,7 +28,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>ULTRA.com</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

11 changes: 10 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
import React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'
import GlobalStyles from './globalStyles'
import { Navbar } from './components';
import { Navbar, Footer } from './components';
import Home from './pages/HomePage/Home';
import Services from './pages/Services/Services';
import Products from './pages/Products/Products';
import SignUp from './pages/SignUp/SignUp';
import ScrollToTop from './components/ScrollToTop';

function App() {
return (

<Router>
<GlobalStyles />
<ScrollToTop />
<Navbar />
<Switch>
<Route path='/' exact component={Home} />
<Route path='/services' component={Services} />
<Route path='/products' component={Products} />
<Route path='/sign-up' component={SignUp} />
</Switch>
<Footer />
</Router>


Expand Down
158 changes: 158 additions & 0 deletions src/components/Footer/Footer.elements.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
import styled from 'styled-components';
import { FaMagento } from 'react-icons/fa';
import { Link } from 'react-router-dom';

export const FooterContainer = styled.div`
background-color: #101522;
padding: 4rem 0 2rem 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
`;

export const FooterSubscription = styled.section`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
margin-bottom: 24px;
padding: 24px;
color: #fff;
`;

export const FooterSubHeading = styled.p`
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande',
'Lucida Sans', Arial, sans-serif;
margin-bottom: 24px;
font-size: 24px;
`;

export const FooterSubText = styled.p`
margin-bottom: 24px;
font-size: 20px;
`;

export const Form = styled.form`
display: flex;
justify-content: center;
align-items: center;
@media screen and (max-width: 820px) {
flex-direction: column;
width: 80%;
}
`;

export const FormInput = styled.input`
padding: 10px 20px;
border-radius: 2px;
margin-right: 10px;
outline: none;
border: none;
font-size: 16px;
border: 1px solid #fff;
&::placeholder {
color: #242424;
}
@media screen and (max-width: 820px) {
width: 100%;
margin: 0 0 16px 0;
}
`;

export const FooterLinksContainer = styled.div`
width: 100%;
max-width: 1000px;
display: flex;
justify-content: center;
@media screen and (max-width: 820px) {
padding-top: 32px;
}
`;

export const FooterLinksWrapper = styled.div`
display: flex;
@media screen and (max-width: 820px) {
flex-direction: column;
}
`;

export const FooterLinkItems = styled.div`
display: flex;
flex-direction: column;
align-items: flex-start;
margin: 16px;
text-align: left;
width: 160px;
box-sizing: border-box;
color: #fff;
@media screen and (max-width: 420px) {
margin: 0;
padding: 10px;
width: 100%;
}
`;

export const FooterLinkTitle = styled.h2`
margin-bottom: 16px;
`;

export const FooterLink = styled(Link)`
color: #fff;
text-decoration: none;
margin-bottom: 0.5rem;
&:hover {
color: #0467fb;
transition: 0.3s ease-out;
}
`;

export const SocialMedia = styled.section`
max-width: 1000px;
width: 100%;
`;

export const SocialMediaWrap = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
width: 90%;
max-width: 1000px;
margin: 40px auto 0 auto;
@media screen and (max-width: 820px) {
flex-direction: column;
}
`;

export const SocialLogo = styled(Link)`
color: #fff;
justify-self: start;
cursor: pointer;
text-decoration: none;
font-size: 2rem;
display: flex;
align-items: center;
margin-bottom: 16px;
`;

export const SocialIcon = styled(FaMagento)`
margin-right: 10px;
`;

export const WebsiteRights = styled.small`
color: #fff;
margin-bottom: 16px;
`;

export const SocialIcons = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
width: 240px;
`;

export const SocialIconLink = styled.a`
color: #fff;
font-size: 24px;
`;
116 changes: 116 additions & 0 deletions src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
import React from 'react';
import { Button } from '../../globalStyles';
import {
FaFacebook,
FaInstagram,
FaYoutube,
FaTwitter,
FaLinkedin
} from 'react-icons/fa';
import {
FooterContainer,
FooterSubscription,
FooterSubText,
FooterSubHeading,
Form,
FormInput,
FooterLinksContainer,
FooterLinksWrapper,
FooterLinkItems,
FooterLinkTitle,
FooterLink,
SocialMedia,
SocialMediaWrap,
SocialLogo,
SocialIcon,
WebsiteRights,
SocialIcons,
SocialIconLink
} from './Footer.elements';

function Footer() {
return (
<FooterContainer>
<FooterSubscription>
<FooterSubHeading>
Join our exclusive membership to receive the latest news and trends
</FooterSubHeading>
<FooterSubText>You can unsubscribe at any time.</FooterSubText>
<Form>
<FormInput name='email' type='email' placeholder='Your Email' />
<Button fontBig>Subscribe</Button>
</Form>
</FooterSubscription>
<FooterLinksContainer>
<FooterLinksWrapper>
<FooterLinkItems>
<FooterLinkTitle>About Us</FooterLinkTitle>
<FooterLink to='/sign-up'>How it works</FooterLink>
<FooterLink to='/'>Testimonials</FooterLink>
<FooterLink to='/'>Careers</FooterLink>
<FooterLink to='/'>Investors</FooterLink>
<FooterLink to='/'>Terms of Service</FooterLink>
</FooterLinkItems>
<FooterLinkItems>
<FooterLinkTitle>Contact Us</FooterLinkTitle>
<FooterLink to='/'>Contact</FooterLink>
<FooterLink to='/'>Support</FooterLink>
<FooterLink to='/'>Destinations</FooterLink>
<FooterLink to='/'>Sponsorships</FooterLink>
</FooterLinkItems>
</FooterLinksWrapper>
<FooterLinksWrapper>
<FooterLinkItems>
<FooterLinkTitle>Videos</FooterLinkTitle>
<FooterLink to='/'>Submit Video</FooterLink>
<FooterLink to='/'>Ambassadors</FooterLink>
<FooterLink to='/'>Agency</FooterLink>
<FooterLink to='/'>Influencer</FooterLink>
</FooterLinkItems>
<FooterLinkItems>
<FooterLinkTitle>Social Media</FooterLinkTitle>
<FooterLink to='/'>Instagram</FooterLink>
<FooterLink to='/'>Facebook</FooterLink>
<FooterLink to='/'>Youtube</FooterLink>
<FooterLink to='/'>Twitter</FooterLink>
</FooterLinkItems>
</FooterLinksWrapper>
</FooterLinksContainer>
<SocialMedia>
<SocialMediaWrap>
<SocialLogo to='/'>
<SocialIcon />
ULTRA
</SocialLogo>
<WebsiteRights>ULTRA © 2020</WebsiteRights>
<SocialIcons>
<SocialIconLink href='/' target='_blank' aria-label='Facebook'>
<FaFacebook />
</SocialIconLink>
<SocialIconLink href='/' target='_blank' aria-label='Instagram'>
<FaInstagram />
</SocialIconLink>
<SocialIconLink
href={
'//www.youtube.com/channel/UCsKsymTY_4BYR-wytLjex7A?view_as=subscriber'
}
rel='noopener noreferrer'
target='_blank'
aria-label='Youtube'
>
<FaYoutube />
</SocialIconLink>
<SocialIconLink href='/' target='_blank' aria-label='Twitter'>
<FaTwitter />
</SocialIconLink>
<SocialIconLink href='/' target='_blank' aria-label='LinkedIn'>
<FaLinkedin />
</SocialIconLink>
</SocialIcons>
</SocialMediaWrap>
</SocialMedia>
</FooterContainer>
);
}

export default Footer;
1 change: 1 addition & 0 deletions src/components/InfoSection/InfoSection.elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import styled from 'styled-components';
export const InfoSec = styled.div`
color: #fff;
padding: 160px 0;
height: 100vh;
background: ${({lightBg}) => (lightBg ? '#fff' : '#101522')};
`

Expand Down
3 changes: 2 additions & 1 deletion src/components/InfoSection/InfoSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {InfoSec, InfoRow, InfoColumn, TextWrapper, TopLine, Heading, Subtitle, I
import { Container, Button } from '../../globalStyles'
import { Link } from 'react-router-dom'

export const InfoSection = ({
const InfoSection = ({

primary,
lightBg,
Expand Down Expand Up @@ -48,3 +48,4 @@ export const InfoSection = ({
)
}

export default InfoSection;
Loading

0 comments on commit 23b0819

Please sign in to comment.