mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-07 18:23:04 +00:00
new bordered layout (max-w-6xl)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
const { currentPage } = Astro.props;
|
const { currentPage, innerClass } = Astro.props;
|
||||||
|
|
||||||
const pages = [
|
const pages = [
|
||||||
{ title: "home", path: "/" },
|
{ title: "home", path: "/" },
|
||||||
@@ -24,10 +24,10 @@ const pages = [
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<div
|
<div class="w-full flex items-center justify-between border-ayu-gutter">
|
||||||
class="w-full flex items-center justify-between px-4 py-2 border-b-1 border-ayu-gutter"
|
<div
|
||||||
>
|
class={`flex items-center border-b-1 lg:border-1 border-ayu-gutter py-2 ${innerClass}`}
|
||||||
<div class="flex items-center">
|
>
|
||||||
<a href="/" class="flex items-center gap-2">
|
<a href="/" class="flex items-center gap-2">
|
||||||
<img
|
<img
|
||||||
src="/favicon.svg"
|
src="/favicon.svg"
|
||||||
|
|||||||
@@ -12,8 +12,13 @@ const { currentPage } = Astro.props;
|
|||||||
<title>ob - {currentPage.title}</title>
|
<title>ob - {currentPage.title}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<Header currentPage={currentPage} />
|
<Header
|
||||||
<div class="px-4 py-4">
|
currentPage={currentPage}
|
||||||
|
innerClass="px-4 max-w-6xl w-6xl mx-auto"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="px-4 py-4 max-w-6xl lg:border-l-1 lg:border-r-1 lg:border-b-1 border-ayu-gutter mx-auto"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user