Skip to content
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ca1fd62
Change to new typography
frontndNinja Aug 25, 2026
6699997
Add tailwind-config.js
frontndNinja Aug 25, 2026
d997042
Add new images
frontndNinja Aug 25, 2026
7a59b53
change texts
frontndNinja Aug 25, 2026
91dc592
change css variables and redesign
frontndNinja Aug 25, 2026
b995ee7
Styling and accessibility
frontndNinja Aug 25, 2026
dc2efa1
Remove images
frontndNinja Aug 25, 2026
c9b8339
Fix basePath for production environment
frontndNinja Aug 25, 2026
12a12d1
Fix minor styling diviations
frontndNinja Aug 25, 2026
b772b52
Fix minor styling diviations
frontndNinja Aug 25, 2026
b2e5c57
Add to README
frontndNinja Aug 25, 2026
8756e2d
remove test comment
frontndNinja Aug 25, 2026
8e5a4da
Add new favicon
frontndNinja Sep 2, 2026
cf91c5e
(chore): cleaned up ternary
frontndNinja Sep 3, 2026
94ca5de
(chore): clean up
frontndNinja Sep 3, 2026
9dd06d9
add correct links
frontndNinja Sep 22, 2026
4a6ba3c
comment out some lines to make next build
frontndNinja Sep 22, 2026
de916ce
Create new repo for Biblio Go
frontndNinja Oct 28, 2026
264fabf
Create CNAME
frontndNinja Oct 28, 2026
e911556
Delete CNAME
frontndNinja Oct 28, 2026
ec69077
add github actions
frontndNinja Oct 28, 2026
82c6716
Create CNAME
frontndNinja Oct 28, 2026
b903f2e
Delete CNAME
frontndNinja Oct 28, 2026
98a45c5
remove github directory
frontndNinja Oct 28, 2026
1692172
add github directory
frontndNinja Oct 28, 2026
d45d74f
Merge branch 'main' into redesign-biblo-go
frontndNinja Oct 28, 2026
7b19665
Merge main from reload/ereolen-go (old repo)
frontndNinja Oct 28, 2026
663bfd0
Merge redesign-biblo-go from reload/ereolen-go (old repo)
frontndNinja Oct 28, 2026
335924c
change repo name
frontndNinja Oct 28, 2026
e7e93ec
change url in readme
frontndNinja Oct 28, 2026
4e3c35a
change basepath
frontndNinja Oct 28, 2026
d6bdfc3
make the basePath compatible with a github page domane and ready it f…
frontndNinja Oct 28, 2026
445dce2
Upgrade Next.js from 15.5.24 to 16.4.3
frontndNinja Oct 29, 2026
9db79fb
Fix redirect loop by deriving basePath from NODE_ENV
frontndNinja Oct 29, 2026
a672b5a
chore(go): delete comment
frontndNinja Oct 29, 2026
804338f
Undo change to function
frontndNinja Oct 29, 2026
46ad52c
Merge pull request #5 from reload/upgrade-to-next-16
frontndNinja Oct 30, 2026
07605fe
Bump postcss from 8.5.3 to 8.5.23
dependabot[bot] Oct 30, 2026
f4c0af6
Bump source-map-js from 1.2.1 to 1.2.2
dependabot[bot] Oct 30, 2026
86b82be
Bump brace-expansion from 1.1.11 to 1.1.21
dependabot[bot] Oct 30, 2026
7e53d66
change basePath to be ready for DNS change
frontndNinja Nov 2, 2026
5432025
Merge pull request #6 from reload/dependabot/npm_and_yarn/postcss-8.5.23
frontndNinja Nov 2, 2026
211c8f6
Merge pull request #4 from reload/dependabot/npm_and_yarn/brace-expan…
frontndNinja Nov 2, 2026
b4e5adb
Merge pull request #2 from reload/dependabot/npm_and_yarn/source-map-…
frontndNinja Nov 2, 2026
be2f7a4
Create CNAME
frontndNinja Nov 2, 2026
52d7db7
update readme
frontndNinja Nov 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
294 changes: 88 additions & 206 deletions app/globals.css

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions app/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 10 additions & 17 deletions app/kampagner/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,18 @@ import { Typography } from "@/components/typography";

export default function KampagnerPage() {
return (
<div className="grid h-full w-full flex-1 grid-rows-[auto_min-content] items-center gap-8">
<div className="mx-auto grid w-full justify-center space-y-4 py-12">
<Typography variant={"h1"} as={"h1"} className="md:text-center">
<div className="flex w-full flex-1 flex-col items-center gap-[8vh]">
<div className="mx-auto flex w-full max-w-3xl flex-col items-center gap-6 text-center">
<Typography variant="h1" as="h1" className="text-balance">
Du er der næsten
</Typography>
<p className="md:text-center">
Find din kommune herunder for at blive omdirigeret til dit lokale
GO-site
</p>
<div className="mt-6 flex w-full flex-col justify-center space-y-4 md:mt-16">
<Typography
className="w-full md:text-center"
variant={"h4"}
as={"h2"}
>
Vælg kommune for at gå til dit lokale GO-site
</Typography>
<LibrarySelect className="mx-auto" customPath="/kampagner" />
</div>
<Typography variant="p" as="p" className="mb-4">
Find din kommune herunder for at komme videre til indholdet.
</Typography>
<Typography variant="h2" as="h2">
Vælg din kommune for at gå til dit GO!-site
</Typography>
<LibrarySelect className="mx-auto mt-2 w-full" customPath="/kampagner" />
</div>
<SupportDownloadCards />
</div>
Expand Down
41 changes: 16 additions & 25 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,41 +1,34 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import { DM_Sans } from "next/font/google";
import "./globals.css";
import Footer from "@/components/Footer";
import { addBasePath } from "@/lib/basePath";
import Header from "@/components/Header";

const GTFlexa = localFont({
src: [
{
path: "../fonts/GT-Flexa-Expanded-Regular.woff2",
weight: "400",
},
{
path: "../fonts/GT-Flexa-Expanded-Medium.woff2",
weight: "500",
},
],
variable: "--font-headline",
const dmSans = DM_Sans({
subsets: ["latin", "latin-ext"],
style: ["normal", "italic"],
axes: ["opsz"],
variable: "--font-dm-sans",
display: "swap",
});

export const metadata: Metadata = {
metadataBase: new URL("https://ereolengo.dk"),
title: "GO",
title: "Biblo GO!",
description:
"GO (tidligere eReolen GO) er flyttet til din lokale bibliotekshjemmeside. Vælg dit bibliotek her.",
"eReolen GO hedder nu Biblo GO! Vælg din kommune for at gå til dit lokale GO!-site.",
openGraph: {
title: "GO",
title: "Biblo GO!",
description:
"GO (tidligere eReolen GO) er flyttet til din lokale bibliotekshjemmeside. Vælg dit bibliotek her.",
"eReolen GO hedder nu Biblo GO! Vælg din kommune for at gå til dit lokale GO!-site.",
images: ["/ereolen_logo_some_go.jpg"],
},
twitter: {
card: "summary_large_image",
title: "GO",
title: "Biblo GO!",
description:
"GO (tidligere eReolen GO) er flyttet til din lokale bibliotekshjemmeside. Vælg dit bibliotek her.",
"eReolen GO hedder nu Biblo GO! Vælg din kommune for at gå til dit lokale GO!-site.",
images: ["/ereolen_logo_some_go.jpg"],
},
};
Expand All @@ -46,7 +39,7 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang="da">
<html lang="da" className={`${dmSans.variable} ${dmSans.className}`}>
<head>
<script
data-category-consent="cookie_cat_statistic"
Expand All @@ -58,12 +51,10 @@ export default function RootLayout({
<script id="CookieConsent" src="https://policy.app.cookieinformation.com/uc.js" async
data-culture="EN" data-gcm-version="2.0" type="text/javascript"></script>
</head>
<body
className={`${GTFlexa.variable} flex min-h-screen flex-col antialiased`}
>
<body className="bg-bg-primary flex min-h-screen flex-col antialiased">
<Header />
<main className="bg-bg-primary flex flex-1 px-4">
<div className="mx-auto flex w-full max-w-6xl flex-1 flex-col py-8 pb-12 md:py-12 md:pb-16">
<main className="flex flex-1 px-4">
<div className="mx-auto flex w-full max-w-6xl flex-1 flex-col pt-8 md:pt-[8vh] pb-12 md:pb-16">
{children}
</div>
</main>
Expand Down
27 changes: 14 additions & 13 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ import { Typography } from "@/components/typography";

export default function Home() {
return (
<div className="grid h-full w-full flex-1 grid-rows-[auto_min-content] items-center gap-8">
<div className="mx-auto grid w-full justify-center space-y-4 py-12">
<Typography variant={"h1"} as={"h1"} className="md:text-center">
eReolen GO er flyttet
<div className="flex w-full flex-1 flex-col items-center gap-12 md:gap-[8vh]">
<div className="mx-auto flex w-full max-w-3xl flex-col items-center gap-6 text-center">
<Typography variant="h1" as="h1" className="text-balance">
eReolen GO hedder nu Biblo GO!
</Typography>
<div className="mx-auto mt-6 flex w-full flex-col justify-center space-y-4 md:mt-16">
<Typography variant={"h4"} as={"h2"}>
Vælg din kommune for at gå til dit lokale GO-site
</Typography>
<LibrarySelect
className="mx-auto"
hoverHelpText="Hvis din skole er tilmeldt GO med UNI-login, skal du vælge
<Typography variant="p" as="p" className="mb-4">
Bare rolig! Du kan stadig logge ind, som du plejer.
</Typography>
<Typography variant="h2" as="h2">
Vælg din kommune for at gå til dit GO!-site
</Typography>
<LibrarySelect
className="mx-auto mt-2 w-full"
hoverHelpText="Hvis din skole er tilmeldt GO med UNI-login, skal du vælge
skolens kommune. Hvis du vil bruge almindeligt bibliotekslogin,
skal du vælge den kommune, du bor i."
/>
</div>
/>
</div>
<SupportDownloadCards />
</div>
Expand Down
63 changes: 20 additions & 43 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { contactFormLink, footerLinks } from "@/content/links";
import { footerLinks } from "@/content/links";
import { addBasePath } from "@/lib/basePath";
import Image from "next/image";
import React from "react";
Expand All @@ -7,23 +7,18 @@ import { Link } from "@/components/link";

const Footer = () => {
return (
<footer className="bg-bg-secondary p-4 py-8">
<div className="mx-auto grid w-full max-w-6xl grid-cols-1 gap-8 md:grid-cols-4 md:gap-4">
<footer className="bg-bg-primary px-4 py-10 md:py-12">
<div className="mx-auto grid w-full max-w-6xl grid-cols-1 gap-10 md:grid-cols-[1fr_1fr_2fr] lg:grid-cols-[1fr_2fr_2fr] md:gap-8">
<section aria-labelledby="nyttig-information">
<Typo
as="h3"
variant="h4"
className="mb-4 text-xl"
id="nyttig-information"
>
<Typo as="h3" variant="h4" className="mb-4" id="nyttig-information">
Nyttig information
</Typo>

<nav>
<ul className="space-y-1">
{footerLinks.map((link, index) => (
<li key={index}>
<Link target="_blank" href={link.href}>
<ul className="space-y-1" aria-label="Liste af nyttige links">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: Nice with the aria-label! 🙌

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We like accessibility 😄

{footerLinks.map((link) => (
<li key={link.href}>
<Link target="_blank" href={link.href} className="underline">
{link.label}
</Link>
</li>
Expand All @@ -33,46 +28,28 @@ const Footer = () => {
</section>

<section aria-labelledby="kontakt-supporten">
<Typo
as="h3"
variant="h4"
className="mb-4 text-xl"
id="kontakt-supporten"
>
<Typo as="h3" variant="h4" className="mb-4" id="kontakt-supporten">
Kontakt supporten
</Typo>
<Typo as="p" variant="small" className="mb-2">
Alle hverdage kl. 13.00-17.00 <br />
Fredag kl. 11.00-15.00
<Typo as="p" variant="small" className="mb-1">
Alle hverdage kl. 14.00-18.00
</Typo>
<Link className="mb-2 block" href="tel:70263636">
<Link className="underline" href="tel:70263636">
Tlf: 7026 3636
</Link>
<Typo as="p" variant="small" className="mb-2">
Eller skriv til os uden for vores åbningstid{" "}
<Link href={contactFormLink} className="underline">
her
</Link>
.
</Typo>
</section>

<div className="mx-auto mt-12 space-y-6 self-center justify-self-end md:col-span-2 md:col-start-3 md:mx-0 md:mt-0">
<div className="flex flex-col items-center">
<Image
className="mx-auto"
src={addBasePath("/ddf_logo.png")}
alt="Logo"
width={300}
height={200}
alt="Det Digitale Folkebiblioteks logo"
width={320}
height={80}
className="h-auto w-full max-w-[300px]"
/>
<div className="text-center">
<Typo as="p" variant="small" className="">
eReolen GO er en del af Det Digitale Folkebibliotek
</Typo>
<Link href="https://detdigitalefolkebibliotek.dk" target="_blank">
Læs mere på detdigitalefolkebibliotek.dk
</Link>
</div>
<Typo as="p" variant="small" className="text-center">
Biblo GO! er en del af Det Digitale Folkebibliotek
</Typo>
</div>
</div>
</footer>
Expand Down
18 changes: 10 additions & 8 deletions components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ import Link from "next/link";

const Header = () => {
return (
<header className="bg-bg-primary p-4 pt-8">
<header className="bg-bg-primary px-4 pt-6 md:pt-8">
<div className="mx-auto w-full max-w-6xl">
<Link
href="/"
className="shadow-button focus-visible hover:shadow-button-hover border-foreground text-foreground text-typo-button-sm pointer-events-auto inline-flex h-[40px] items-center justify-center rounded-full border px-3 whitespace-nowrap uppercase transition hover:translate-x-[1px] hover:translate-y-[1px] hover:cursor-pointer active:translate-x-[4px] active:translate-y-[4px] active:shadow-none disabled:pointer-events-none disabled:opacity-50"
href="https://biblogo.dk/"
className="focus-visible inline-flex items-center"
aria-label="Biblo GO! forsiden"
>
<Image
src={addBasePath("/logo-borderless.svg")}
alt="Logo"
width={225}
height={100}
className="h-auto w-full max-w-[225px]"
src={addBasePath("/GO-bright-green.svg")}
alt="Biblo GO!"
width={120}
height={150}
className="h-[96px] w-auto md:h-[120px]"
priority
/>
</Link>
</div>
Expand Down
33 changes: 15 additions & 18 deletions components/SupportDownloadCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type CardWrapperProps = {

const CardWrapper = ({ href, className = "", children }: CardWrapperProps) => {
const base =
"flex items-center rounded-xl p-6 shadow-lg text-white justify-center";
"flex items-center rounded-2xl p-3 md:p-4 justify-center text-card-primary-foreground";
const classes = twMerge(base, className);

if (href) {
Expand All @@ -36,37 +36,34 @@ const SupportDownloadCards = () => {
const downloadLink = getDownloadLink(deviceInfo);

return (
<section className="mx-auto grid w-full max-w-lg gap-6 md:grid-cols-2">
{/* Help and Support */}
<section className="mx-auto grid w-full max-w-2xl gap-5 xs:grid-cols-2 md:gap-6">
<CardWrapper
href={helpANdSupportLink}
className="bg-card-primary text-card-primary-foreground grid aspect-square grid-rows-[1fr_auto] justify-items-center hover:no-underline"
className="bg-card-primary grid aspect-square grid-rows-[1fr_auto] md:grid-rows-[1fr_30px] justify-items-center gap-2 md:gap-4 hover:no-underline h-full"
>
<Image
src={addBasePath("/eReolenGoQuestionMark_trim.png")}
alt="Support Icon"
width={150}
height={150}
src={addBasePath("/GO-chat-bubble.png")}
alt=""
width={320}
height={245}
className="h-auto w-[78%] max-w-[320px] object-contain self-center md:self-end"
/>
<Typo as="p" variant="caption">
<Typo as="p" variant="caption" className="mb-2 self-start md:mb-0">
Hjælp og support
</Typo>
</CardWrapper>

{/* Download App */}
<CardWrapper
href={downloadLink}
className="bg-card-secondary text-card-secondary-foreground grid aspect-square grid-rows-[1fr_auto] justify-items-center hover:no-underline"
className="bg-card-secondary grid aspect-square place-items-center hover:no-underline h-full"
>
<Image
src={addBasePath("/eReolenGoApp_trim.png")}
alt="Download App Icon"
width={150}
height={150}
src={addBasePath("/GO-download-app.png")}
alt="Download appen"
width={250}
height={333}
className="h-auto w-[86%] max-w-[78%] md:max-w-[260px] object-contain"
/>
<Typo as="p" variant="caption">
Download GO-appen
</Typo>
</CardWrapper>
</section>
);
Expand Down
Loading
Loading