-
Notifications
You must be signed in to change notification settings - Fork 16
239 newsletter page rendering and functionality #277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,132 @@ | ||||||
| import Image from 'next/image' | ||||||
| import Link from 'next/link' | ||||||
| import { notFound } from 'next/navigation' | ||||||
| import type { Metadata } from 'next' | ||||||
|
|
||||||
| interface DltLecturePageProps { | ||||||
| params: Promise<{ | ||||||
| locale: string | ||||||
| }> | ||||||
| } | ||||||
|
|
||||||
| export async function generateMetadata({ params }: DltLecturePageProps): Promise<Metadata> { | ||||||
| const { locale } = await params | ||||||
|
|
||||||
| // Only German version exists initially | ||||||
| if (locale !== 'de') { | ||||||
| return { | ||||||
| title: 'Page Not Available - Open Elements', | ||||||
| description: 'This page is not available in this language', | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| const title = 'Vorlesung zu "DLT & Digital Trust" - Open Elements' | ||||||
| const description = "Seit 2023 bietet Hendrik Ebbers die Vorlesung 'Distribution Ledger Technology und Digital Trust' an" | ||||||
|
|
||||||
| return { | ||||||
| title, | ||||||
| description, | ||||||
| openGraph: { | ||||||
| type: 'website', | ||||||
| title, | ||||||
| description, | ||||||
| siteName: 'Open Elements', | ||||||
| locale: 'de_DE', | ||||||
| }, | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| export default async function DltLecturePage({ params }: DltLecturePageProps) { | ||||||
| const { locale } = await params | ||||||
|
|
||||||
| // Only German version exists initially | ||||||
| if (locale !== 'de') { | ||||||
| notFound() | ||||||
| } | ||||||
|
|
||||||
| return ( | ||||||
| <div > | ||||||
| {/* Hero Section */} | ||||||
| <div className="absolute left-0 w-full top-0 h-48 -z-10 overflow-hidden"> | ||||||
| <Image | ||||||
| src="/illustrations/hero-bg-2.svg" | ||||||
| alt="Hero background" | ||||||
| fill | ||||||
| className="object-cover" | ||||||
| priority | ||||||
| /> | ||||||
| </div> | ||||||
|
|
||||||
| <div className="container max-w-sm lg:max-w-7xl md:max-w-2xl sm:max-w-xl sm:w-full"> | ||||||
| <div className="flex items-center justify-center pt-16 pb-4 sm:pt-36 sm:pb-12"> | ||||||
| <div className="relative flex flex-col items-center justify-center w-full"> | ||||||
| <h1 className="text-center h1">Vorlesung zu "DLT & Digital Trust"</h1> | ||||||
| <Image | ||||||
| src="/illustrations/underline.svg" | ||||||
| alt="Unterstrich" | ||||||
| width={288} | ||||||
| height={24} | ||||||
| className="absolute w-48 -bottom-3 sm:w-72 sm:-mr-24 shrink-0" | ||||||
| /> | ||||||
| </div> | ||||||
| </div> | ||||||
| </div> | ||||||
|
|
||||||
| {/* Content Section */} | ||||||
| <div className=" lg:pb-48 sm:pb-32 pb-28"> | ||||||
| <div className="container mt-12 xl:max-w-1xl"> | ||||||
|
||||||
| <div className="container mt-12 xl:max-w-1xl"> | |
| <div className="container mt-12 xl:max-w-6xl"> |
Copilot
AI
Feb 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This internal link points to /de/about-hendrik, but there is no corresponding Next.js route under src/app/[locale] for about-hendrik (and it’s not present in public/ either), so it will 404. Link to an existing route (e.g. the current About page/section) or add the missing about-hendrik page/redirect as part of the migration.
| Seit 2023 bietet <Link href="/de/about-hendrik">Hendrik Ebbers</Link> die Vorlesung{' '} | |
| Seit 2023 bietet <Link href={`/${locale}`}>Hendrik Ebbers</Link> die Vorlesung{' '} |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -42,6 +42,8 @@ notFound = "Seite nicht gefunden!!" | |||||
| underline = "Grafisches Element zum Unterstreichen des Textes" | ||||||
| [digitalTrustLecture] | ||||||
| other = "Vorlesung zu Digital Trust" | ||||||
| [dltLecture] | ||||||
| other = "Vorlesung zu DLT & Digital Trust" | ||||||
|
Comment on lines
+45
to
+46
|
||||||
| [dltLecture] | |
| other = "Vorlesung zu DLT & Digital Trust" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -42,6 +42,8 @@ notFound = "Page Not Found!!" | |||||
| underline = "Graphical element that underlines the text" | ||||||
| [digitalTrustLecture] | ||||||
| other = "Digital Trust Lecture" | ||||||
| [dltLecture] | ||||||
| other = "DLT & Digital Trust Lecture (German only)" | ||||||
|
Comment on lines
+45
to
+46
|
||||||
| [dltLecture] | |
| other = "DLT & Digital Trust Lecture (German only)" |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This page introduces a new public route (
/dlt-lecture), but the sitemap generator (src/app/sitemap.xml/route.ts) currently hardcodesstaticRoutesand does not includedlt-lecture, so the new page won’t be discoverable via sitemap. Add this route to the sitemap’s static route list (and any other route registries used for navigation/SEO).