-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ece91a2
commit 1c5eb8c
Showing
3 changed files
with
140 additions
and
33 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
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
type Props = { | ||
export type LayoutProps = { | ||
title: string; | ||
currentPath?: string; | ||
children: any; | ||
}; | ||
|
||
export default function Layout({ title, children }: Props) { | ||
export default function Layout({ title, children }: LayoutProps) { | ||
return ( | ||
<html lang="en" hx-boost="true" hx-swap="outerHTML transition:true"> | ||
<head> | ||
|
@@ -21,9 +21,10 @@ export default function Layout({ title, children }: Props) { | |
<script>htmx.config.globalViewTransitions = true</script> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
</head> | ||
|
||
<style>{`* { box-sizing: border-box; margin: 0; outline: none; color: unset; }`}</style> | ||
<body class="font-lato m-0 bg-blue-100 p-0 text-base">{children}</body> | ||
<body class="font-sans m-0 bg-gradient-to-br from-blue-300 via-purple-300 to-pink-300 text-gray-900 min-h-screen"> | ||
{children} | ||
</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