-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert infoscreen layout/page structure change
- It seems that it is mandatory to have both layout and page files
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"use client"; | ||
import React from "react"; | ||
// eslint-disable-next-line camelcase -- Roboto_Mono name is set by next/font | ||
import { Inter, Roboto_Mono } from "next/font/google"; | ||
import { cn } from "../../lib/utils.ts"; | ||
import "../globals.css"; | ||
import { InfoScreenHeader } from "../../components/infoscreen/infoscreen-header"; | ||
|
||
const inter = Inter({ | ||
subsets: ["latin"], | ||
variable: "--font-inter", | ||
}); | ||
const robotoMono = Roboto_Mono({ | ||
subsets: ["latin"], | ||
variable: "--font-roboto-mono", | ||
}); | ||
|
||
export default function ScreenLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="fi"> | ||
<body | ||
className={cn( | ||
inter.variable, | ||
robotoMono.variable, | ||
"flex h-full flex-col bg-gray-200 font-mono", | ||
)} | ||
> | ||
<InfoScreenHeader /> | ||
<div className="size-full p-4">{children}</div> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"use client"; | ||
import { InfoScreenContents } from "../../../components/infoscreen/info-screen-contents"; | ||
|
||
function InfoScreen() { | ||
return <InfoScreenContents />; | ||
} | ||
|
||
export default InfoScreen; |