Skip to content

Commit

Permalink
add footer navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shushunya committed Aug 31, 2023
1 parent aedb9a7 commit b437837
Showing 1 changed file with 92 additions and 72 deletions.
164 changes: 92 additions & 72 deletions FrontEnd/src/components/HeaderFooter/footer/top/FooterNavigation.jsx
Original file line number Diff line number Diff line change
@@ -1,80 +1,100 @@
import css from "./FooterNavigation.module.css";
import { HashLink } from "react-router-hash-link";

const PAGE_NAVIGATION_LINKS = [
{
id: "pnl0",
title: "Головна",
link: "#"
},
{
id: "pnl1",
title: "Компанії",
link: "#"
},
{
id: "pnl2",
title: "Стартапи",
link: "#"
},
{
id: "pnl3",
title: "Про нас",
link: "#"
}
]
{
id: "pnl0",
title: "Головна",
link: "/",
},
{
id: "pnl1",
title: "Компанії",
link: "#",
},
{
id: "pnl2",
title: "Стартапи",
link: "#",
},
{
id: "pnl3",
title: "Про нас",
link: "/#about-us",
},
];
const SERVICES_LINKS = [
{
id: "sl0",
title: "Виробники",
link: "#"
},
{
id: "sl1",
title: "Імпортери",
link: "#"
},
{
id: "sl2",
title: "Роздрібні мережі",
link: "#"
},
{
id: "sl3",
title: "HORECA",
link: "#"
},
{
id: "sl4",
title: "Інші послуги",
link: "#"
}
]
const CONTACTS = ["Контакти", "qwerty@gmail.com", "+38 050 234 23 23", "Львівська Політехніка", "вул. Степана Бандери 12, Львів"]
{
id: "sl0",
title: "Виробники",
link: "#",
},
{
id: "sl1",
title: "Імпортери",
link: "#",
},
{
id: "sl2",
title: "Роздрібні мережі",
link: "#",
},
{
id: "sl3",
title: "HORECA",
link: "#",
},
{
id: "sl4",
title: "Інші послуги",
link: "#",
},
];
const CONTACTS = [
"Контакти",
"qwerty@gmail.com",
"+38 050 234 23 23",
"Львівська Політехніка",
"вул. Степана Бандери 12, Львів",
];

function FooterNavigation() {
return (
<div className={css["navigation-content"]}>
<div className={css["navigation-content-section"]}>
{PAGE_NAVIGATION_LINKS.map((element) => (
<a className={css["navigation-content-section__text"]}
key={element.id}
href={element.link}
>{element.title}</a>
))}
</div>
<div className={css["navigation-content-section"]}>
{SERVICES_LINKS.map((element) => (
<a className={css["navigation-content-section-service__text"]}
key={element.id}
href={element.link}
>{element.title}</a>
))}
</div>
<div className={css["navigation-content-section"]}>
{CONTACTS.map((element, index) => (<label key={index} className={css["navigation-content-section-service__text"]}>{element}</label>))}
</div>
</div>
);
};
return (
<div className={css["navigation-content"]}>
<div className={css["navigation-content-section"]}>
{PAGE_NAVIGATION_LINKS.map((element) => (
<HashLink
key={element.id}
className={css["navigation-content-section__text"]}
to={element.link}
>
{element.title}
</HashLink>
))}
</div>
<div className={css["navigation-content-section"]}>
{SERVICES_LINKS.map((element) => (
<a
className={css["navigation-content-section-service__text"]}
key={element.id}
href={element.link}
>
{element.title}
</a>
))}
</div>
<div className={css["navigation-content-section"]}>
{CONTACTS.map((element, index) => (
<label
key={index}
className={css["navigation-content-section-service__text"]}
>
{element}
</label>
))}
</div>
</div>
);
}

export default FooterNavigation;

0 comments on commit b437837

Please sign in to comment.