mirror of
https://github.com/tomru/advcal.git
synced 2026-03-03 06:27:17 +01:00
first working version
This commit is contained in:
28
components/nav.js
Normal file
28
components/nav.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import React from "react";
|
||||
|
||||
const links = [
|
||||
{ href: "https://youtube.com", label: "Youtube" },
|
||||
{ href: "https://www.discogs.com/", label: "Discog" },
|
||||
{ href: "https://findmusicbylyrics.com/", label: "Find music by Lyrics" },
|
||||
{ href: "https://musicbrainz.org/", label: "MusicBrainz" }
|
||||
].map(link => {
|
||||
link.key = `nav-link-${link.href}-${link.label}`;
|
||||
return link;
|
||||
});
|
||||
|
||||
const Nav = () => (
|
||||
<nav className="ad-nav">
|
||||
<ul>
|
||||
<li>Für die Recherche:</li>
|
||||
{links.map(({ key, href, label }) => (
|
||||
<li key={key}>
|
||||
<a href={href} target="_blank">
|
||||
{label}
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</nav>
|
||||
);
|
||||
|
||||
export default Nav;
|
||||
Reference in New Issue
Block a user