Skip to content

Commit a831ec6

Browse files
committed
fix(website): showcase card layout - no image crop, top-align text
1 parent b3b4c5d commit a831ec6

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

Website/src/showcase.html

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,15 @@
1111
padding: 60px 24px;
1212
}
1313

14-
.showcase-grid {
15-
display: grid;
16-
grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
17-
gap: 32px;
18-
margin-top: 40px;
19-
}
20-
2114
.showcase-card {
2215
background: var(--color-bg-alt);
2316
border: 1px solid rgba(255, 255, 255, 0.08);
2417
border-radius: var(--radius-lg);
2518
overflow: hidden;
19+
display: flex;
20+
align-items: stretch;
2621
transition: transform 0.3s, box-shadow 0.3s;
22+
margin-bottom: 32px;
2723
}
2824

2925
.showcase-card:hover {
@@ -32,15 +28,18 @@
3228
}
3329

3430
.showcase-card-image {
35-
width: 100%;
36-
aspect-ratio: 16 / 10;
37-
object-fit: cover;
31+
width: 480px;
32+
object-fit: contain;
3833
display: block;
39-
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
34+
flex-shrink: 0;
35+
border-right: 1px solid rgba(255, 255, 255, 0.06);
4036
}
4137

4238
.showcase-card-body {
43-
padding: 28px 32px 32px;
39+
padding: 32px 36px;
40+
display: flex;
41+
flex-direction: column;
42+
justify-content: flex-start;
4443
}
4544

4645
.showcase-card-body h3 {
@@ -77,16 +76,16 @@
7776
height: 16px;
7877
}
7978

80-
.showcase-intro {
81-
font-size: 1.15rem;
82-
color: var(--color-text-muted);
83-
line-height: 1.7;
84-
max-width: 720px;
85-
}
8679

87-
@media (max-width: 540px) {
88-
.showcase-grid {
89-
grid-template-columns: 1fr;
80+
@media (max-width: 768px) {
81+
.showcase-card {
82+
flex-direction: column;
83+
}
84+
85+
.showcase-card-image {
86+
width: 100%;
87+
border-right: none;
88+
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
9089
}
9190
}
9291

@@ -151,9 +150,7 @@ <h1>Built with <span class="accent">ARO</span></h1>
151150
</header>
152151

153152
<main class="showcase-content">
154-
<div class="showcase-grid">
155-
156-
<!-- ShowFiles -->
153+
<!-- ShowFiles -->
157154
<div class="showcase-card">
158155
<img src="img/showfiles-screen.jpg" alt="ShowFiles terminal file manager screenshot" class="showcase-card-image" loading="lazy">
159156
<div class="showcase-card-body">
@@ -165,8 +162,6 @@ <h3>ShowFiles</h3>
165162
</a>
166163
</div>
167164
</div>
168-
169-
</div>
170165
</main>
171166

172167
{{footer}}

0 commit comments

Comments
 (0)