Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

footer #73

Merged
merged 3 commits into from
Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"@emotion/react": "^11.5.0",
"@emotion/styled": "^11.3.0",
"@mui/material": "^5.0.4",
"@mui/styles": "^5.0.2",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"axios": "^0.23.0",
"eslint-config-react-app": "^6.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-icons": "^4.3.1",
"react-router-dom": "^5.3.0",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
Expand Down
6 changes: 5 additions & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import Footer from './components/Footer/Footer';

function App() {
return (
<div className="App" />
<div className="App">
<Footer />
</div>

);
}
Expand Down
Binary file added client/src/assets/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/homeIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 104 additions & 0 deletions client/src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
import {
AppBar, Container, Link,
} from '@mui/material';
import {
AiFillFacebook, AiFillTwitterCircle, AiFillInstagram, AiOutlineWhatsApp,
} from 'react-icons/ai';
import HomeIcon from '../../assets/homeIcon.png';

import './footer.css';

export default function Footer() {
return (

<AppBar
position="fixed"
color="primary"
sx={{ top: 'auto', bottom: 0 }}
style={{
background: '#3381CB', height: '432px', alignItems: 'center',
}}
>
<Container
maxWidth="xl"
sx={{
display: 'flex',
justifyContent: 'space-around',
marginTop: '10px',
height: '100%',
alignItems: 'center',
}}
>
<section className="img">
<img
src={HomeIcon}
alt="home icon"
loading="lazy"
style={{ borderBottomLeftRadius: 4, borderBottomRightRadius: 4, width: '6rem' }}
/>

</section>
<section className="section2">
<section className="about-us">
<p>
About Us
</p>
<Link href="http://" color="inherit" underline="none">Story</Link>
<Link href="http://" color="inherit" underline="none">Clients</Link>
<Link href="http://" color="inherit" underline="none">Testimonials</Link>

</section>
<section className="services">
<p>
Services
</p>
<Link href="http://" color="inherit" underline="none">Marketing</Link>
<Link href="http://" color="inherit" underline="none">Consulting</Link>
<Link href="http://" color="inherit" underline="none">Development</Link>
<Link href="http://" color="inherit" underline="none">Design</Link>

</section>

<section className="contact-us">
<p>
Contact Us
</p>
<Link href="http://" color="inherit" underline="none">United States</Link>
<Link href="http://" color="inherit" underline="none">United Kingdom</Link>
<Link href="http://" color="inherit" underline="none">Australia</Link>
<Link href="http://" color="inherit" underline="none">Support</Link>

</section>

<section className="social">
<p>
Social
</p>
<Link href="http://" color="inherit" underline="none">
<AiFillFacebook size={22} />
Facebook
</Link>
<Link href="http://" color="inherit" underline="none">
<AiFillTwitterCircle size={22} />
Twitter
</Link>
<Link href="http://" color="inherit" underline="none">
<AiFillInstagram size={22} />
Instagram
</Link>
<Link href="http://" color="inherit" underline="none">
<AiOutlineWhatsApp size={22} />
WhatsApp
</Link>

</section>

</section>
</Container>
<section className="copyright">
<div style={{ color: '#1B4B80' }}>All right reserved @ to this website</div>
</section>
</AppBar>

);
}
50 changes: 50 additions & 0 deletions client/src/components/Footer/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.section2 {
display: flex;
width: 50%;
height: 100%;
align-content: center;
justify-content: space-around;
align-items: center;
}

.about-us,
.services,
.contact-us,
.social {
display: flex;
flex-direction: column;
height: 50%;
}

.about-us > a,
.services > a,
.contact-us > a,
.social > a {
font-size: 24px;
margin-bottom: 20px;
font-size: 18px;
text-align: left;
}
.about-us > a > svg,
.services > a > svg,
.contact-us > a > svg,
.social > a > svg {
margin-right: 5px;
}

.about-us > p,
.services > p,
.contact-us > p,
.social > p {
font-size: 26px;
color: #fff;
margin-bottom: 40px;
font-weight: bold;
text-align: left;
}

.social * {
display: flex;
align-items: center;
margin-left: 10px;
}
3 changes: 1 addition & 2 deletions client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
document.getElementById('root'),
);