Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
rishbhh committed Jan 5, 2021
1 parent 64c92dc commit d9e55b6
Show file tree
Hide file tree
Showing 34 changed files with 1,649 additions and 126 deletions.
24 changes: 1 addition & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
node_modules
341 changes: 341 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.2",
"@testing-library/user-event": "^12.6.0",
"gh-pages": "^3.1.0",
"homepage": "http://weareenigma.com",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-icons": "^4.1.0",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.1",
"styled-components": "^5.2.1",
"web-vitals": "^0.2.4"
},
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -b master -d build",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
Expand All @@ -35,4 +42,4 @@
"last 1 safari version"
]
}
}
}
38 changes: 0 additions & 38 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +0,0 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
38 changes: 20 additions & 18 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
import logo from './logo.svg';
import './App.css';
import React from 'react';
import GlobalStyle from './globalStyles';
import Home from './pages/HomePage/Home';

import Services from './pages/Services/Services';
import Products from './pages/Products/Products';
import Signup from './pages/Sign-up/Sign-up';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import { Navbar, Footer } from './components';

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
<Router>
<GlobalStyle />
<Navbar />
<Switch>
<Route path="/" exact component={Home} />
<Route path="/services" exact component={Services} />
<Route path="/products" exact component={Products} />
<Route path="/sign-up" exact component={Signup} />
</Switch>
<Footer />
</Router>
);
}

Expand Down
8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

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

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;
margin-bottom:24px;
padding:24px;
color:#fff;
`;

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

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

export const Form = styled.div`
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:82px){
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:320px){
flex-direction:column;
}
`;

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

export const FooterLinksTitle = 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 all;
}
`;

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:#ffffff;
justify-content: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 WebsiteRight = 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;
`
77 changes: 77 additions & 0 deletions src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import React from 'react';
import { FaFacebook, FaInstagram, FaYoutube } from 'react-icons/fa'
import { FooterContainer, FooterSubscription, FooterSubHeading, FooterSubText, Form, FormInput, FooterLinksContainer, FooterLinksWrapper, FooterLinksItems, FooterLinksTitle, FooterLink, SocialMedia, SocialMediaWrap, SocialLogo, WebsiteRight, SocialIcon, SocialIcons, SocialIconLink } from './Footer.elements'
import { Button } from '../../globalStyles'
const Footer = () => {
return (
<FooterContainer>
<FooterSubscription>
<FooterSubHeading>
Join Our exlusive membership to receive the latest news and trends
</FooterSubHeading>
<FooterSubText>
You can unsubscribe at any time.
</FooterSubText>
<Form>
<FormInput name="email" type="email" placholder="your email" />
<Button fontBig> subscribe </Button>

</Form>
</FooterSubscription>
<FooterLinksContainer>
<FooterLinksWrapper>
<FooterLinksItems>
<FooterLinksTitle>About us</FooterLinksTitle>
<FooterLink to="/p">Test</FooterLink>
<FooterLink to="/">Carrer</FooterLink>
<FooterLink to="/">How it works</FooterLink>
<FooterLink to="/">How it works</FooterLink>
</FooterLinksItems>
<FooterLinksItems>
<FooterLinksTitle>Contact us</FooterLinksTitle>
<FooterLink to="/p">Test</FooterLink>
<FooterLink to="/">Carrer</FooterLink>
<FooterLink to="/">How it works</FooterLink>
<FooterLink to="/">How it works</FooterLink>
</FooterLinksItems>
<FooterLinksItems>
<FooterLinksTitle>Videos</FooterLinksTitle>
<FooterLink to="/p">Test</FooterLink>
<FooterLink to="/">Carrer</FooterLink>
<FooterLink to="/">How it works</FooterLink>
<FooterLink to="/">How it works</FooterLink>
</FooterLinksItems>
<FooterLinksItems>
<FooterLinksTitle>Social Media</FooterLinksTitle>
<FooterLink to="/p">Test</FooterLink>
<FooterLink to="/">Carrer</FooterLink>
<FooterLink to="/">How it works</FooterLink>
<FooterLink to="/">How it works</FooterLink>
</FooterLinksItems>
</FooterLinksWrapper>
</FooterLinksContainer>
<SocialMedia>
<SocialMediaWrap>
<SocialLogo to="/" >
<SocialIcon />
ULTRA
</SocialLogo>
<WebsiteRight>
ULTRA 2020
</WebsiteRight>
<SocialIcons>
<SocialIconLink href="/" traget="_blank" aria-label="Facbook" >
<FaFacebook /></SocialIconLink>
<SocialIconLink href="/" traget="_blank" aria-label="Instagram" >
<FaInstagram /></SocialIconLink>
<SocialIconLink href="/" traget="_blank" aria-label="Youtube" >
<FaYoutube /></SocialIconLink>
</SocialIcons>

</SocialMediaWrap>
</SocialMedia>
</FooterContainer>
);
};

export default Footer
Loading

0 comments on commit d9e55b6

Please sign in to comment.