generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…tion #136 about us navigation
- Loading branch information
Showing
3 changed files
with
98 additions
and
78 deletions.
There are no files selected for viewing
164 changes: 92 additions & 72 deletions
164
FrontEnd/src/components/HeaderFooter/footer/top/FooterNavigation.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters