From fc98ffbe8feb184ba88fb805a4c3b9ad018a6167 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 30 Jun 2025 23:30:09 -0700 Subject: update stub middleware page css styling --- middleware/src/app/[gameName]/page.tsx | 14 +++++++++----- middleware/src/app/globals.css | 6 +++--- middleware/src/app/kairos.png | Bin 0 -> 239168 bytes 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 middleware/src/app/kairos.png diff --git a/middleware/src/app/[gameName]/page.tsx b/middleware/src/app/[gameName]/page.tsx index 42045f2..4df7efb 100644 --- a/middleware/src/app/[gameName]/page.tsx +++ b/middleware/src/app/[gameName]/page.tsx @@ -1,8 +1,5 @@ import { Metadata } from "next"; -import { headers } from "next/headers"; -import { userAgent } from "next/server"; -import { redirect } from "next/navigation"; - +import kairosImage from '../kairos.png'; export async function generateMetadata({ params, searchParams, @@ -45,6 +42,10 @@ export async function generateMetadata({ if (!matchingPost) { return { title: "Post not found" }; } + if (!matchingPost.headline) { + matchingPost.headline = matchingPost.content; + matchingPost.content = ""; + } return { title: matchingPost.headline, description: matchingPost.content.slice(0, 100), @@ -95,14 +96,17 @@ export default async function GamePage({

573 UPDATES

Updates image {redirectUrl && ( + <> +
click here if not redirected + )}
diff --git a/middleware/src/app/globals.css b/middleware/src/app/globals.css index 86fc27f..ff7d975 100644 --- a/middleware/src/app/globals.css +++ b/middleware/src/app/globals.css @@ -49,7 +49,7 @@ body { .redirect-link { color: var(--text-secondary); - font-size: 0.875rem; + font-size: 2rem; text-decoration: none; transition: color 0.3s ease; letter-spacing: 0.1rem; @@ -65,8 +65,8 @@ body { font-size: 2rem; letter-spacing: 0.3rem; } - + .redirect-link { font-size: 0.75rem; } -} \ No newline at end of file +} diff --git a/middleware/src/app/kairos.png b/middleware/src/app/kairos.png new file mode 100644 index 0000000..d07624d Binary files /dev/null and b/middleware/src/app/kairos.png differ -- cgit v1.2.3