Skip to content

Commit 56a0636

Browse files
committed
fix: homepage CTAs, rules page improvements, dark mode fixes
- Remove 'Read articles' CTA from homepage hero - Remove all CTAs from 'Pull up a chair' section - Add Arabic translation for 'Short version' label (باختصار) - Increase short version box font size and adjust backgrounds - Fix job postings bullet list inheriting proper font in dark mode - Fix hamburger menu icon visibility in dark mode
1 parent d96e9b6 commit 56a0636

File tree

4 files changed

+12
-20
lines changed

4 files changed

+12
-20
lines changed

_data/strings_ar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ rules_page:
193193
title: "كيف نحافظ على صحة البازار"
194194
dek: "هذه الإرشادات موجودة حتى يبقى البازار الرقمي مفيداً ودافئاً وآمناً – وليس للإفراط في مراقبة المحادثات. إذا كنت في شك، اتجه نحو الكرم والوضوح والاحترام."
195195
meta_note: "هذه وثيقة حية. قد نحسنها مع نمو المجتمع وظهور مواقف جديدة."
196+
short_version_label: "باختصار:"
196197
short_version: "كن لطيفاً. شارك بسخاء. حافظ على البناءية والصلة. لا تزعج أو تتحرش بالناس. للمشرفين الحق في إزالة أي شخص يجعل البازار أسوأ باستمرار."
197198
rules:
198199
- number: "٠١"

_data/strings_en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ rules_page:
163163
title: "How we keep the bazaar healthy"
164164
dek: "These guidelines exist so that Digital Bazaar stays useful, warm and safe – not to over-police conversation. If in doubt, lean towards generosity, clarity and respect."
165165
meta_note: "This is a living document. We may refine it as the community grows and new situations appear."
166+
short_version_label: "Short version:"
166167
short_version: "Be kind. Share generously. Keep things constructive and relevant. Don't spam or harass people. Moderators can remove anyone who repeatedly makes the bazaar worse."
167168
rules:
168169
- number: "01"

_layouts/home.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ <h1 class="hero-home-title" id="hero-heading">{{ strings.hero.headline }}</h1>
3636
<span>{{ strings.buttons.visit_github_org }}</span>
3737
<span aria-hidden="true">💻</span>
3838
</a>
39-
<a class="btn btn-saffron" href="/{{ lang }}/articles/">
40-
<span>{{ strings.buttons.read_articles }}</span>
41-
<span aria-hidden="true">✍️</span>
42-
</a>
4339
</div>
4440
</div>
4541
</div>
@@ -131,16 +127,6 @@ <h2 class="section-title">{{ strings.cta.title }}</h2>
131127
<p class="section-sub">{{ strings.cta.subtitle }}</p>
132128
</div>
133129

134-
<div class="chip-row">
135-
<a class="btn btn-primary" href="{{ site.social.whatsapp }}" target="_blank" rel="noopener">
136-
<span>{{ strings.buttons.join_whatsapp_community }}</span>
137-
<span aria-hidden="true"></span>
138-
</a>
139-
<a class="btn btn-saffron" href="/{{ lang }}/articles/">
140-
<span>{{ strings.buttons.browse_articles }}</span>
141-
<span aria-hidden="true">✍️</span>
142-
</a>
143-
</div>
144130
</section>
145131

146132
{{ content }}

assets/css/styles.scss

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ a:hover {
490490
position: relative;
491491
width: 24px;
492492
height: 2px;
493-
background: var(--ink);
493+
background: var(--text-muted);
494494
border-radius: 2px;
495495
transition: all var(--transition-normal);
496496
}
@@ -501,7 +501,7 @@ a:hover {
501501
position: absolute;
502502
width: 24px;
503503
height: 2px;
504-
background: var(--ink);
504+
background: var(--text-muted);
505505
border-radius: 2px;
506506
transition: all var(--transition-normal);
507507
inset-inline-start: 0;
@@ -1739,13 +1739,17 @@ ul.clean li::before {
17391739
.highlight-box {
17401740
border-radius: var(--radius-md);
17411741
border: 1px solid var(--border);
1742-
background: var(--surface-elevated);
1742+
background: rgba(21, 32, 41, 0.06);
17431743
padding: 12px 14px;
1744-
font-size: 13px;
1744+
font-size: 15px;
17451745
color: var(--text);
17461746
margin-bottom: 24px;
17471747
}
17481748

1749+
[data-theme="dark"] .highlight-box {
1750+
background: rgba(255, 255, 255, 0.08);
1751+
}
1752+
17491753
.highlight-box strong {
17501754
color: var(--text-heading);
17511755
}
@@ -1811,8 +1815,8 @@ ul.clean li::before {
18111815

18121816
.rule-list-inner li {
18131817
margin-bottom: 4px;
1814-
font-size: 14px;
1815-
color: #3a4a55;
1818+
font-size: inherit;
1819+
color: inherit;
18161820
}
18171821

18181822
/* CTA Box */

0 commit comments

Comments
 (0)