Skip to content

Commit

Permalink
more style fixin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Rydeståhl committed May 9, 2024
1 parent a63b1f2 commit 0ed0562
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions src/pages/event/[post].astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,29 @@ const { post } = Astro.props
---

<DefaultLayout title={post.title} description={post.body} url={post.title}>
<div class="container bg-white bg-opacity-90">
<div class="mt-12 pt-4">
<Breadcrumbs>
<BreadcrumbsItem href="/" label="Hem" />
<BreadcrumbsItem href="/event" label="Evenemang" />
<BreadcrumbsItem currentPage={true} label={post.title} />
</Breadcrumbs>
</div>

<section class="my-12">
<div class="container">
<Media class="w-full" src={post.image.url} />
</div>
</section>
<section class="my-12 ">
<div class="container">
<h1>{post.title}</h1><br />
<p>Evenemanget startar: {post.eventStartDate}</p>
<p class="text-2xl pb-8">{post.body}</p>
</div>
</section>
<div class="container">
<div class="container bg-white bg-opacity-90">
<div class="mt-12 pt-4">
<Breadcrumbs>
<BreadcrumbsItem href="/" label="Hem" />
<BreadcrumbsItem href="/event" label="Evenemang" />
<BreadcrumbsItem currentPage={true} label={post.title} />
</Breadcrumbs>
</div>

<section class="my-12">
<div class="container">
<Media class="w-full" src={post.image.url} />
</div>
</section>
<section class="my-12 ">
<div class="container">
<h2>{post.title}</h1><br />
<p>Evenemanget startar: {post.eventStartDate}</p><br />
<p class="text-1xl pb-8">{post.body}</p>
</div>
</section>
</div>
</div>
</DefaultLayout>

Expand All @@ -85,10 +87,12 @@ const { post } = Astro.props
@media (min-width: 550px) {
grid-template-columns: repeat(2, 1fr);
grid-gap: 2rem;
margin: 1rem auto;
}

@media (min-width: 950px) {
grid-template-columns: repeat(3, 1fr);
margin: 1rem auto;
}
}
</style>

0 comments on commit 0ed0562

Please sign in to comment.