Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions src/pages/showcase.astro
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,8 @@ const categoryLabels: Record<string, string> = {
}

.showcase-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: 20px;
column-count: 3;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSS Columns layout breaks uniform row height design that CSS Grid provides

Fix on Vercel

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's the idea of the update, to make it look like masonry-like layout where items flow vertically

column-gap: 20px;
margin-bottom: 56px;
}

Expand All @@ -194,6 +193,8 @@ const categoryLabels: Record<string, string> = {
text-decoration: none;
color: var(--text-primary);
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
break-inside: avoid;
margin-bottom: 20px;
}

.showcase-card:hover {
Expand Down Expand Up @@ -397,13 +398,19 @@ const categoryLabels: Record<string, string> = {
color: var(--cyan-bright);
}

@media (max-width: 480px) {
@media (max-width: 1024px) {
.showcase-grid {
column-count: 2;
}
}

@media (max-width: 640px) {
.container {
padding: 24px 16px;
}

.showcase-grid {
grid-template-columns: 1fr;
column-count: 1;
}

.showcase-card {
Expand Down