Skip to content

Commit f123e8c

Browse files
committed
Style about feature cards as terminals
1 parent a7932ef commit f123e8c

1 file changed

Lines changed: 34 additions & 5 deletions

File tree

src/presentation/about-page/AboutPage.vue

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,21 @@
5151
<section class="section" aria-labelledby="why">
5252
<h2 id="why">Why 4bit Exists</h2>
5353
<div class="grid">
54-
<article class="card">
54+
<article class="card terminal-card terminal-card--red">
5555
<h3>Terminal Colors</h3>
5656
<p>
5757
A useful terminal theme needs more than a few nice hex values. The foreground, background,
5858
normal colors, and bright colors should work together when real command output fills the screen.
5959
</p>
6060
</article>
61-
<article class="card">
61+
<article class="card terminal-card terminal-card--blue">
6262
<h3>Terminal Schemes</h3>
6363
<p>
6464
4bit turns a small set of controls into a complete terminal scheme. It is useful when you want
6565
your own palette instead of another downloaded theme.
6666
</p>
6767
</article>
68-
<article class="card">
68+
<article class="card terminal-card terminal-card--green">
6969
<h3>Terminal Themes</h3>
7070
<p>
7171
The same palette can be exported for several terminal apps. That matters if you move between
@@ -296,8 +296,37 @@ export default {
296296
background: var(--paper);
297297
}
298298
299-
.card p,
300-
li {
299+
.terminal-card {
300+
border-color: var(--color-bright-black);
301+
background: var(--color-background);
302+
box-shadow:
303+
inset 0 0 0 1px rgb(255 255 255 / 6%),
304+
0 18px 36px rgb(0 0 0 / 18%);
305+
}
306+
307+
.terminal-card h3 {
308+
color: var(--terminal-card-heading-color);
309+
}
310+
311+
.terminal-card p {
312+
color: var(--color-foreground);
313+
font-family: Inconsolata, monospace;
314+
}
315+
316+
.terminal-card--red {
317+
--terminal-card-heading-color: var(--color-red);
318+
}
319+
320+
.terminal-card--blue {
321+
--terminal-card-heading-color: var(--color-blue);
322+
}
323+
324+
.terminal-card--green {
325+
--terminal-card-heading-color: var(--color-green);
326+
}
327+
328+
.card:not(.terminal-card) p,
329+
.about-content li {
301330
color: var(--muted);
302331
}
303332

0 commit comments

Comments
 (0)