mirror of
https://github.com/khairul169/cebol.git
synced 2026-09-19 18:57:46 +07:00
feat: initial features
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import type { FC, PropsWithChildren } from "hono/jsx";
|
||||
|
||||
type Props = PropsWithChildren<{
|
||||
title?: string;
|
||||
}>;
|
||||
|
||||
const Layout: FC<Props> = ({ children, title }) => {
|
||||
return (
|
||||
<html lang="en" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="color-scheme" content="dark" />
|
||||
|
||||
<title>{title || "Cebol"}</title>
|
||||
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
|
||||
/>
|
||||
<script src="https://unpkg.com/[email protected]" defer />
|
||||
</head>
|
||||
<body>
|
||||
<header class="container" style="margin-top: 2em;">
|
||||
<h1>Cebol</h1>
|
||||
<p>URL Shortener</p>
|
||||
</header>
|
||||
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
};
|
||||
|
||||
export default Layout;
|
||||
Reference in New Issue
Block a user