Skip to content

Commit 76d3afb

Browse files
chore: add Product Hunt badge
1 parent 47a08ef commit 76d3afb

3 files changed

Lines changed: 46 additions & 5 deletions

File tree

landing/documentation.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
<span class="terminal-title">prosaic --help</span>
2121
</div>
2222
<div class="terminal-body">
23-
<h1><span class="prompt">$</span> prosaic --help</h1>
23+
<div class="header-row">
24+
<h1><span class="prompt">$</span> prosaic --help</h1>
25+
<a class="ph-badge" href="https://www.producthunt.com/products/prosaic?embed=true&amp;utm_source=badge-featured&amp;utm_medium=badge&amp;utm_campaign=badge-prosaic" target="_blank" rel="noopener noreferrer"><img alt="Prosaic - Product Hunt" src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1084278&amp;theme=neutral&amp;t=1772276159522"></a>
26+
</div>
2427
<p class="tagline"># Command line usage</p>
2528

2629
<div class="docs-section">

landing/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
<span class="terminal-title">prosaic</span>
2121
</div>
2222
<div class="terminal-body">
23-
<h1><span class="prompt">$</span> prosaic</h1>
23+
<div class="header-row">
24+
<h1><span class="prompt">$</span> prosaic</h1>
25+
<a class="ph-badge" href="https://www.producthunt.com/products/prosaic?embed=true&amp;utm_source=badge-featured&amp;utm_medium=badge&amp;utm_campaign=badge-prosaic" target="_blank" rel="noopener noreferrer"><img alt="Prosaic - Product Hunt" src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1084278&amp;theme=neutral&amp;t=1772276159522"></a>
26+
</div>
2427
<p class="tagline"># A writer-first terminal writing app</p>
2528
<p class="description">
2629
Prosaic is for writers who want to write anywhere with a terminal and a keyboard. It's markdown-first, distraction-free,

landing/style.css

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,29 @@ h1 {
9595
margin-right: 0.5rem;
9696
}
9797

98+
.header-row {
99+
display: flex;
100+
align-items: center;
101+
justify-content: space-between;
102+
gap: 1rem;
103+
margin-bottom: 0.5rem;
104+
}
105+
106+
.header-row h1 {
107+
margin-bottom: 0;
108+
}
109+
110+
.ph-badge {
111+
display: flex;
112+
flex-shrink: 0;
113+
}
114+
115+
.ph-badge img {
116+
height: 40px;
117+
width: auto;
118+
filter: hue-rotate(90deg);
119+
}
120+
98121
.tagline {
99122
font-size: 1.1rem;
100123
color: var(--comment-color);
@@ -217,9 +240,21 @@ h1 {
217240
color: var(--text-color);
218241
}
219242

220-
@media (max-width: 480px) {
243+
@media (max-width: 560px) {
244+
221245
h1 {
222-
font-size: 1.5rem;
246+
font-size: 1.5rem !important;
247+
}
248+
249+
.ph-badge img {
250+
height: 2rem;
251+
margin-top: 0.1rem;
252+
}
253+
254+
.header-row {
255+
flex-direction: row;
256+
gap: 0.5rem;
257+
align-items: flex-start;
223258
}
224259

225260
.terminal-body {
@@ -299,7 +334,7 @@ h1 {
299334
color: var(--text-color);
300335
}
301336

302-
@media (max-width: 480px) {
337+
@media (max-width: 560px) {
303338
.docs-row {
304339
flex-direction: column;
305340
gap: 0.25rem;

0 commit comments

Comments
 (0)