Skip to content

Commit

Permalink
🚀Feat: Added Footer (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsoni1010 committed Sep 15, 2021
1 parent 7e9113d commit fcd00f8
Show file tree
Hide file tree
Showing 6 changed files with 414 additions and 32 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BrowserRouter, Route } from "react-router-dom";
// import Footer from "./components/section-components/Footer";
import Footer from "./components/section-components/Footer";
import Header from "./components/section-components/Header";
import './styles/index.css';
import Careers from "./views/Careers";
Expand All @@ -20,7 +20,7 @@ function App() {
<Route path="/careers" exact component={Careers} />
</BrowserRouter>
{/* footer component */}
{/* <Footer /> */}
<Footer />
</div>
);
}
Expand Down
14 changes: 14 additions & 0 deletions src/components/section-components/Footer/__usefulLinks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"Home": "/",
"Career": "/careers",
"Team": "/team",
"Contact": "/contact-us",
"Eccentrictouch": "/products",

"LinkedIn": "https://www.linkedin.com/company/designsystemsoss/",
"GitHub": "https://github.com/DesignSystemsOSS",
"Twitter": "https://twitter.com/TDesignsystems",
"Discord": "https://discord.gg/VcmnY4HTEc"
}
]
160 changes: 146 additions & 14 deletions src/components/section-components/Footer/index.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,153 @@
import React from 'react';
import './style.footer.css';
import React from "react";
import { useState } from "react";
import "./style.footer.css";
import LinksData from "./__usefulLinks.json";
import Button from "../../widgets/Button";

export default function Footer() {
const [footerLinksDetails] = useState(LinksData);
return (
<div className="footer">
{/* <div className="logo-wrapper">
<h1 className="demo-logo-icon">DS</h1>
<p className="logo-title">The DesignSystems</p>
<div className="footer-row-1">
<div className="logo-container color-change-4x">
<h1 className="demo-logo-icon">DS</h1>
<p className="logo-title">The DesignSystems</p>
</div>

<div className="footer-col-1">
<div className="useful-links-section">
<p className="useful-links-title links-title">
<b>Useful links</b>
</p>
<div className="useful-links-list">
{footerLinksDetails.map((data, index) => (
<ul className="useful-links-list">
<li className="useful-link-item" key={index}>
<a href={data.Home}>Home</a>
</li>
<li className="useful-link-item" key={index}>
<a href={data.Career}>Career</a>
</li>
<li className="useful-link-item" key={index}>
<a href={data.Team}>Team</a>
</li>
<li className="useful-link-item" key={index}>
<a href={data.Contact}>Contact Us</a>
</li>
</ul>
))}
</div>
</div>

<div className="products-links-section">
<p className="products-links-title links-title">
<b>Products</b>
</p>
<div className="product-links-list">
{footerLinksDetails.map((data, index) => (
<ul className="products-links-list">
<li className="products-links-item" key={index}>
<a href={data.Eccentrictouch}>Eccentrictouch</a>
</li>
</ul>
))}
</div>
</div>
</div>

<div className="footer-col-2">
<div className="connect-community">
<p className="community-title gradient-text">
Don't miss anything, Join our GitHub Organization and Discord
Community
</p>
<div className="community-links-wrapper">
<a
href="https://github.com/DesignSystemsOSS"
target="_blank"
rel="noreferrer"
>
<Button
type="outline"
value="Join our Github Organization"
startIcon="fab fa-github"
/>
</a>

<a
href="https://discord.gg/VcmnY4HTEc"
target="_blank"
rel="noreferrer"
>
<Button
type="primary"
value="Join Discord Community"
startIcon="fab fa-discord"
/>
</a>
</div>
</div>
</div>
</div>
<div className="footer-col-1">
<div className="useful-links-section">
<p className="useful-links-title links-title">Useful links</p>
<ul className="useful-links-list">
<li className="useful-link-item"></li>
</ul>

<div className="footer-row-2">
<div className="social-links-container">
{footerLinksDetails.map((data, index) => (
<div className="social-links-list">
<a
href={data.LinkedIn}
target="_blank"
rel="noreferrer"
key={index}
className="color-change-4x"
>
<button type="button" className="fab fa-linkedin"></button>
</a>

<a
href={data.GitHub}
target="_blank"
rel="noreferrer"
key={index}
>
<button
type="button"
className="fab fa-github social-link"
></button>
</a>

<a
href={data.Twitter}
target="_blank"
rel="noreferrer"
key={index}
>
<button type="button" className="fab fa-twitter"></button>
</a>

<a
href={data.Discord}
target="_blank"
rel="noreferrer"
key={index}
>
<button type="button" className="fab fa-discord"></button>
</a>
</div>
))}
</div>
<div className="privacy-copyright-links-title">
<a href="#" target="_blank" rel="noreferrer">
Privacy
</a>
<a href="#" target="_blank" rel="noreferrer">
Terms
</a>
<p className="copyright-content">
&copy;2021 The DesignSystems | All Rights Reserved
</p>
</div>
</div> */}
</div>
</div>
)
}
);
}
154 changes: 153 additions & 1 deletion src/components/section-components/Footer/style.footer.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fcd00f8

Please sign in to comment.