Skip to content

Commit a46f51b

Browse files
authored
[cdn] fixing minor page rendering issues (#1392)
### Description Fixing minor page rendering issues ### Type of Change - [ ] New Example - [x] Example updates (Bug fixes, new features, etc.) - [ ] Other (changes to the codebase, but not to examples) ### New Example Checklist - [ ] 🛫 `npm run new-example` was used to create the example - [ ] 📚 The template wasn't used but I carefuly read the [Adding a new example](https://github.com/vercel/examples#adding-a-new-example) steps and implemented them in the example - [ ] 📱 Is it responsive? Are mobile and tablets considered?
1 parent 32e5f77 commit a46f51b

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

cdn/custom-error-pages-app-dir/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
body {
2323
background: var(--background);
2424
color: var(--foreground);
25-
font-family: Arial, Helvetica, sans-serif;
25+
font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
2626
}

cdn/custom-error-pages-app-dir/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import "./globals.css";
55
const geistSans = Geist({
66
variable: "--font-geist-sans",
77
subsets: ["latin"],
8+
adjustFontFallback: true,
89
});
910

1011
const geistMono = Geist_Mono({
1112
variable: "--font-geist-mono",
1213
subsets: ["latin"],
14+
adjustFontFallback: true,
1315
});
1416

1517
export const metadata: Metadata = {

cdn/custom-error-pages-app-dir/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Image from "next/image";
22

33
export default function Home() {
44
return (
5-
<div className="flex min-h-screen items-center justify-center bg-zinc-50 font-sans dark:bg-black">
5+
<div className="flex min-h-screen justify-center bg-zinc-50 dark:bg-black">
66
<main className="flex w-full max-w-3xl flex-col items-center gap-8 py-12 px-8 bg-white dark:bg-black sm:items-start sm:px-16">
77
<Image
88
className="dark:invert"

cdn/custom-error-pages-public-dir/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
body {
2323
background: var(--background);
2424
color: var(--foreground);
25-
font-family: Arial, Helvetica, sans-serif;
25+
font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
2626
}

cdn/custom-error-pages-public-dir/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import "./globals.css";
55
const geistSans = Geist({
66
variable: "--font-geist-sans",
77
subsets: ["latin"],
8+
adjustFontFallback: true,
89
});
910

1011
const geistMono = Geist_Mono({
1112
variable: "--font-geist-mono",
1213
subsets: ["latin"],
14+
adjustFontFallback: true,
1315
});
1416

1517
export const metadata: Metadata = {

cdn/custom-error-pages-public-dir/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Image from "next/image";
22

33
export default function Home() {
44
return (
5-
<div className="flex min-h-screen items-center justify-center bg-zinc-50 font-sans dark:bg-black">
5+
<div className="flex min-h-screen justify-center bg-zinc-50 dark:bg-black">
66
<main className="flex w-full max-w-3xl flex-col items-center gap-8 py-12 px-8 bg-white dark:bg-black sm:items-start sm:px-16">
77
<Image
88
className="dark:invert"

0 commit comments

Comments
 (0)