diff --git a/src/components/block.astro b/src/components/block.astro new file mode 100644 index 00000000..0b9fcb15 --- /dev/null +++ b/src/components/block.astro @@ -0,0 +1,17 @@ +--- +import { render } from "astro:content"; +import { getBlock } from "../lib/blocks"; + +interface Props { + slug: string; + class?: string; +} + +const { slug, class: className } = Astro.props; +const { Content } = await render(await getBlock(slug)); +--- + +{/* Not elements.tsx: its links all open in a new tab and its lists and headings are article-sized. */} +
+ +
diff --git a/src/components/footer.tsx b/src/components/footer.tsx index 3ab40bdd..20939a13 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -1,37 +1,16 @@ import { SiLinkedin, SiYoutube, SiFlickr } from "react-icons/si"; import React from "react"; +import { site } from "../lib/site"; const BASE = import.meta.env.BASE_URL.replace(/\/$/, ''); -const footerLinks = [ - { href: `${BASE}/about`, label: "About" }, - { href: `${BASE}/research-support`, label: "Research Support" }, - { href: `${BASE}/services`, label: "Services" }, - { href: `${BASE}/funding-and-projects`, label: "Funding & Projects" }, - { href: `${BASE}/news`, label: "News" }, - { href: `${BASE}/events`, label: "Events" }, - { href: `${BASE}/training`, label: "Training" }, - { href: `${BASE}/accessibility`, label: "Accessibility" }, -]; +const { navigation, careers, partners, funders, fundingNote } = site.footer; +const { supportEmail } = site.contact; const socials = [ - { name: "LinkedIn", href: "https://www.linkedin.com/company/elixir-norway", icon: SiLinkedin }, - { name: "YouTube", href: "https://www.youtube.com/channel/UCvwFIw5HomylguGOGxR8B8w", icon: SiYoutube }, - { name: "Flickr", href: "https://www.flickr.com/photos/elixir-europe/", icon: SiFlickr }, -]; - -const partners = [ - { href: "https://uib.no/", src: `${BASE}/assets/logos/orgs/uib.svg`, alt: "University of Bergen" }, - { href: "https://uio.no/", src: `${BASE}/assets/logos/orgs/uio.svg`, alt: "University of Oslo" }, - { href: "https://uit.no/", src: `${BASE}/assets/logos/orgs/uit.svg`, alt: "UiT The Arctic University of Norway" }, - { href: "https://ntnu.no/", src: `${BASE}/assets/logos/orgs/ntnu.svg`, alt: "NTNU" }, - { href: "https://nmbu.no/", src: `${BASE}/assets/logos/orgs/nmbu.svg`, alt: "NMBU" }, -]; - -const funders = [ - { href: "https://forskningsradet.no/", src: `${BASE}/assets/logos/orgs/nfr.svg`, alt: "Research Council of Norway" }, - { href: "https://www.nordforsk.org", src: `${BASE}/assets/logos/orgs/nordforsk.svg`, alt: "NordForsk" }, - { href: "https://research-and-innovation.ec.europa.eu/", src: `${BASE}/assets/logos/orgs/eu.svg`, alt: "Co-funded by the European Union" }, + { name: "LinkedIn", href: site.footer.socials.linkedin, icon: SiLinkedin }, + { name: "YouTube", href: site.footer.socials.youtube, icon: SiYoutube }, + { name: "Flickr", href: site.footer.socials.flickr, icon: SiFlickr }, ]; const Footer = () => { @@ -93,7 +72,7 @@ const Footer = () => {

Navigation