Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabi315 committed Mar 18, 2024
1 parent f5b18cd commit 179546b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/components/Work.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ const url = `/works/${work.slug}`;
---

<article>
<div class="thumbnail">
<a href={url}>
<Image src={work.data.thumbnail} alt={work.data.title} />
</a>
</div>
<a href={url} class="thumbnail">
<Image src={work.data.thumbnail} alt={work.data.title} />
</a>
<div class="description">
<h2>
<a href={url}>{work.data.title}</a>
Expand All @@ -31,9 +29,12 @@ const url = `/works/${work.slug}`;
column-gap: 3rem;
}

.thumbnail img {
object-fit: cover;
height: 240px;
.thumbnail {
display: block;
img {
object-fit: cover;
height: 240px;
}
}

.description {
Expand Down Expand Up @@ -63,15 +64,15 @@ const url = `/works/${work.slug}`;
}

.thumbnail {
width: 33.3%;

flex: 1;
img {
width: fit-content;
height: fit-content;
}
}

.description {
flex: 2;
margin-top: 2rem;
}
}
Expand Down

0 comments on commit 179546b

Please sign in to comment.