Skip to content

Commit

Permalink
refactor: reset layout changes
Browse files Browse the repository at this point in the history
  • Loading branch information
galenwinsor committed Jun 26, 2024
1 parent 700bdfd commit c830ca0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
16 changes: 11 additions & 5 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ const { title, description, lede } = Astro.props
<html lang="en">
<head>
<BaseHead title={title} description={description} />
</head>
</head>

<body class="three-column-wrapper">
<body class="grid grid-cols-1 px-16 xl:px-64">
<Header />
<main>
<h1 class="title">{title}</h1>
<hr class="pb-6" />
<slot />
<article class="max-w-[1000px]">
<div>
<div class="flex flex-col gap-3 pb-6">
<h1 class="title">{title}</h1>
</div>
<hr class="pb-6" />
<slot />
</div>
</article>
</main>
<Footer />
</body>
Expand Down
11 changes: 0 additions & 11 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,6 @@
}

@layer components {
.three-column-wrapper {
display: grid;
grid-template-columns: 1fr min(1000px, 100%) 1fr;

padding-inline: 64px;
}

.three-column-wrapper > * {
grid-column: 2;
}

.subtitle {
@apply gap-1;
@apply pt-6;
Expand Down

0 comments on commit c830ca0

Please sign in to comment.