Skip to content

Commit 78f16c2

Browse files
committed
fix(ui): remove accent stripes, fix project card consistency
- Remove black accent stripe from ProductCard, BlogCard, and mission cards - Fix inconsistent card heights on Projects page by using flex column layout with description flex-grow to push features/links to bottom - Reduce tag size for tighter, more uniform spacing across cards
1 parent d9c7f91 commit 78f16c2

3 files changed

Lines changed: 31 additions & 70 deletions

File tree

src/components/BlogCard.svelte

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,23 @@
1111
</script>
1212

1313
<a href="/blog/{slug}" class="card">
14-
<div class="card-accent"></div>
15-
<div class="card-body">
16-
<div class="meta">
17-
<span class="category">{category}</span>
18-
<span class="date">{formatDate(date)}</span>
19-
</div>
20-
<h3 class="title">{title}</h3>
21-
<p class="excerpt">{excerpt}</p>
22-
<span class="read-more">Read more &rarr;</span>
14+
<div class="meta">
15+
<span class="category">{category}</span>
16+
<span class="date">{formatDate(date)}</span>
2317
</div>
18+
<h3 class="title">{title}</h3>
19+
<p class="excerpt">{excerpt}</p>
20+
<span class="read-more">Read more &rarr;</span>
2421
</a>
2522

2623
<style>
2724
.card {
2825
display: flex;
29-
overflow: hidden;
26+
flex-direction: column;
27+
gap: 10px;
3028
background-color: var(--bg-primary);
3129
border: var(--border-width) solid var(--border-default);
30+
padding: 24px;
3231
transition: border-color 0.15s ease;
3332
text-decoration: none;
3433
color: inherit;
@@ -38,21 +37,6 @@
3837
border-color: var(--border-hover);
3938
}
4039
41-
.card-accent {
42-
width: 4px;
43-
flex-shrink: 0;
44-
background-color: var(--text-primary);
45-
}
46-
47-
.card-body {
48-
display: flex;
49-
flex-direction: column;
50-
gap: 10px;
51-
padding: 24px;
52-
flex: 1;
53-
min-width: 0;
54-
}
55-
5640
.meta {
5741
display: flex;
5842
align-items: center;

src/components/ProductCard.svelte

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
</script>
44

55
<article class="card">
6-
<div class="card-accent"></div>
7-
<div class="card-body">
8-
<div class="header">
9-
<h3 class="name">{name}</h3>
10-
<span class="status" class:status-live={status === "Live"} class:status-beta={status === "Beta"}>{status}</span>
11-
</div>
12-
<p class="description">{description}</p>
6+
<div class="header">
7+
<h3 class="name">{name}</h3>
8+
<span class="status" class:status-live={status === "Live"} class:status-beta={status === "Beta"}>{status}</span>
9+
</div>
10+
<p class="description">{description}</p>
11+
<div class="card-footer">
1312
{#if features.length > 0}
1413
<ul class="features">
1514
{#each features as feature}
@@ -37,27 +36,17 @@
3736
.card {
3837
background-color: var(--bg-primary);
3938
border: var(--border-width) solid var(--border-default);
39+
padding: 28px;
4040
transition: border-color 0.15s ease;
4141
display: flex;
42-
overflow: hidden;
42+
flex-direction: column;
43+
height: 100%;
4344
}
4445
4546
.card:hover {
4647
border-color: var(--border-hover);
4748
}
4849
49-
.card-accent {
50-
width: 4px;
51-
flex-shrink: 0;
52-
background-color: var(--text-primary);
53-
}
54-
55-
.card-body {
56-
padding: 28px;
57-
flex: 1;
58-
min-width: 0;
59-
}
60-
6150
.header {
6251
display: flex;
6352
align-items: center;
@@ -98,19 +87,23 @@
9887
font-size: 0.9375rem;
9988
color: var(--text-secondary);
10089
line-height: 1.5;
101-
margin-bottom: 16px;
90+
flex: 1;
91+
}
92+
93+
.card-footer {
94+
margin-top: 16px;
10295
}
10396
10497
.features {
10598
display: flex;
10699
flex-wrap: wrap;
107-
gap: 8px;
100+
gap: 6px;
108101
}
109102
110103
.features li {
111-
font-size: 0.8125rem;
104+
font-size: 0.75rem;
112105
color: var(--tag-text);
113-
padding: 4px 10px;
106+
padding: 3px 8px;
114107
background-color: var(--bg-surface);
115108
border: 1px solid var(--tag-border);
116109
font-weight: 500;
@@ -120,8 +113,8 @@
120113
display: flex;
121114
flex-wrap: wrap;
122115
gap: 12px;
123-
margin-top: 16px;
124-
padding-top: 16px;
116+
margin-top: 14px;
117+
padding-top: 14px;
125118
border-top: 1px solid var(--border-default);
126119
}
127120

src/pages/Home.svelte

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,8 @@
8080
<div class="mission-grid">
8181
{#each mission as item}
8282
<article class="mission-card">
83-
<div class="mission-accent"></div>
84-
<div class="mission-body">
85-
<h3>{item.title}</h3>
86-
<p>{item.text}</p>
87-
</div>
83+
<h3>{item.title}</h3>
84+
<p>{item.text}</p>
8885
</article>
8986
{/each}
9087
</div>
@@ -145,27 +142,14 @@
145142
.mission-card {
146143
background-color: var(--bg-primary);
147144
border: var(--border-width) solid var(--border-default);
148-
display: flex;
149-
overflow: hidden;
145+
padding: 24px;
150146
transition: border-color 0.15s ease;
151147
}
152148
153149
.mission-card:hover {
154150
border-color: var(--border-hover);
155151
}
156152
157-
.mission-accent {
158-
width: 4px;
159-
flex-shrink: 0;
160-
background-color: var(--text-primary);
161-
}
162-
163-
.mission-body {
164-
padding: 24px;
165-
flex: 1;
166-
min-width: 0;
167-
}
168-
169153
.mission-card h3 {
170154
font-family: var(--font-heading);
171155
font-weight: 600;

0 commit comments

Comments
 (0)