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

Mobile friendly layout for landing page and teams page #41

Closed
wants to merge 10 commits into from
23 changes: 23 additions & 0 deletions src/components/section-components/Footer/__navLinks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"title": "Home",
"path": "/"
},
{
"title": "Career",
"path": "/careers"
},
{
"title": "Team",
"path": "/team"
},
{
"title": "Contact",
"path": "/contact-us"
},
{
"title": "Products",
"path": "/products"
}

]
28 changes: 18 additions & 10 deletions src/components/section-components/Footer/__usefulLinks.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
[
{
"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"
"title": "LinkedIn",
"path": "https://www.linkedin.com/company/designsystemsoss/",
"class": "fab fa-linkedin"
},
{
"title": "GitHub",
"path": "https://github.com/DesignSystemsOSS",
"class": "fab fa-github "
},
{
"title": "Twitter",
"path": "https://twitter.com/TDesignsystems",
"class":"fab fa-twitter"
},
{
"title": "Discord",
"path": "https://discord.gg/VcmnY4HTEc",
"class":"fab fa-discord"
}
]
59 changes: 12 additions & 47 deletions src/components/section-components/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import React from "react";
import { useState } from "react";
import "./style.footer.css";
import LinksData from "./__usefulLinks.json";
import NavLinksData from "./__navLinks.json";
import Button from "../../widgets/Button";

export default function Footer() {
const [footerLinksDetails] = useState(LinksData);
const [footerNavLinksDetails] = useState(NavLinksData);
return (
<div className="footer">
<div className="footer-row-1">
Expand All @@ -20,19 +22,10 @@ export default function Footer() {
<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>
{footerNavLinksDetails.map((data, index) => (
<ul className="useful-links-list" key={index}>
<li className="useful-link-item" key={index}>
<a href={data.Contact}>Contact Us</a>
<a href={data.path} key={index}>{data.title}</a>
</li>
</ul>
))}
Expand All @@ -45,9 +38,9 @@ export default function Footer() {
</p>
<div className="product-links-list">
{footerLinksDetails.map((data, index) => (
<ul className="products-links-list">
<ul className="products-links-list" key={index}>
<li className="products-links-item" key={index}>
<a href={data.Eccentrictouch}>Eccentrictouch</a>
<a href={data.path} key={index}>{data.title}</a>
</li>
</ul>
))}
Expand Down Expand Up @@ -92,49 +85,21 @@ export default function Footer() {

<div className="footer-row-2">
<div className="social-links-container">
<div className="social-links-list">
{footerLinksDetails.map((data, index) => (
<div className="social-links-list">
<div key={index}>
<a
href={data.LinkedIn}
href={data.path}
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>
<button type="button" className={data.class}></button>
</a>
</div>
))}
</div>
</div>
<div className="privacy-copyright-links-title">
<a href="#" target="_blank" rel="noreferrer">
Expand Down
75 changes: 63 additions & 12 deletions 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