Skip to content

Commit 4e0e6e1

Browse files
authored
Feature/tracking (#8)
* Add tracking + CTA butons * A few fixes.
1 parent 2c27590 commit 4e0e6e1

File tree

7 files changed

+60
-21
lines changed

7 files changed

+60
-21
lines changed

_data/strings_ar.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ start_here_page:
348348
- title: "خيوط أسئلة وأجوبة دورية"
349349
description: "أسئلة وأجوبة غير متزامنة (Async) من خبراء في المجتمع."
350350
next_up: "الجلسة القادمة: يُعلن عنها في مجموعة الإعلانات."
351+
cta_text: "اطّلع على إيقاع البازار"
351352

352353
# Rules summary
353354
rules_summary:
@@ -400,7 +401,7 @@ cadence_page:
400401
- title: "📱 بازار السبت"
401402
description: "جلسة كتابية خفيفة يوم السبت عبر المجموعات: شارك ما تبنيه/تتعلمه، اطرح أسئلة، وشارك في النقاش."
402403
how: "أفضل طريقة للمشاركة: تحديث قصير (سطران–ثلاثة) + سؤال واحد واضح."
403-
- title: "🔥 جلسات فايرسايد الشهرية"
404+
- title: "🎙️ جلسات فايرسايد الشهرية"
404405
description: "جلسة يقودها ضيف (أو حلقة نقاش) حول موضوع واحد مع أسئلة وأجوبة مباشرة. نعلن الشكل والموعد مسبقًا."
405406
how: "أفضل طريقة للمشاركة: اقرأ تمهيد الجلسة، جهّز سؤالًا واحدًا جيدًا، ثم تابع بعد الجلسة."
406407
- title: "🤔 خيوط الأسئلة والأجوبة الدورية"

_data/strings_en.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ about:
4949
description: "Topic-based WhatsApp groups where people swap practical experience: engineering, product, design & growth, leadership, jobs, startups, expats, and more. Think of it as a souq of overlapping lanes — you join what matters and ignore the rest."
5050
- label: "Cadence"
5151
title: "Rituals and sessions that bring people back"
52-
description: "We dont rely on hope-based interaction. We run recurring rhythms like Bazaar Saturdays, plus monthly firesides/panels and periodic Q&A threads — so the network compounds over time instead of fading."
52+
description: "We don't rely on hope-based interaction. We run recurring rhythms like Bazaar Saturdays, plus monthly firesides/panels and periodic Q&A threads — so the network compounds over time instead of fading."
5353
- label: "Projects & Mentorship"
5454
title: "From talk → warm intros → shipped work"
5555
description: "When trust forms, things happen: feedback loops, mentorship, collaborations, and community-born projects like Meshkah. Mentorship is structured (time-boxed office hours / clear asks), and projects are opt-in — no vague promises, just proof-of-work."
@@ -317,6 +317,7 @@ start_here_page:
317317
- title: "Periodic Q&A threads"
318318
description: "Async \"ask me anything\" from community experts."
319319
next_up: "Next Fireside: announced in the Announcements group."
320+
cta_text: "See how the Bazaar works"
320321

321322
# Rules summary
322323
rules_summary:
@@ -369,7 +370,7 @@ cadence_page:
369370
- title: "📱 Bazaar Saturdays"
370371
description: "A casual text-based Saturday session across the groups: share what you're building/learning, ask questions, and join the conversation."
371372
how: "Best way to join: post a 2–3 line update + one clear question."
372-
- title: "🔥 Monthly Firesides"
373+
- title: "🎙️ Monthly Firesides"
373374
description: "A guest-led session (or panel) on one topic, with live Q&A. Format + time are announced in advance."
374375
how: "Best way to join: read the prompt, bring one thoughtful question, and follow up after."
375376
- title: "🤔 Periodic Q&A threads"

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<a href="/{{ lang }}/" data-i18n="nav_home" data-ar="{{ strings_ar.nav.home }}" data-en="{{ strings_en.nav.home }}">{{ strings.nav.home }}</a>
1818
<a href="/{{ lang }}/start-here/" data-i18n="footer_start_here" data-ar="{{ strings_ar.nav.start_here }}" data-en="{{ strings_en.nav.start_here }}">{{ strings.nav.start_here }}</a>
1919
<a href="/{{ lang }}/cadence/" data-i18n="footer_cadence" data-ar="{{ strings_ar.nav.cadence }}" data-en="{{ strings_en.nav.cadence }}">{{ strings.nav.cadence }}</a>
20-
<a href="/{{ lang }}/rules/" data-i18n="footer_rules" data-ar="{{ strings_ar.footer.links.rules }}" data-en="{{ strings_en.footer.links.rules | default: 'Community rules' }}">{{ strings.footer.links.rules | default: strings.nav.rules }}</a>
20+
<a href="/{{ lang }}/rules/" data-i18n="nav_rules" data-ar="{{ strings_ar.nav.rules }}" data-en="{{ strings_en.nav.rules }}">{{ strings.nav.rules }}</a>
2121
{% comment %}
2222
<a href="/{{ lang }}/articles/" data-i18n="footer_articles" data-ar="{{ strings_ar.footer.links.articles }}" data-en="{{ strings_en.footer.links.articles | default: 'Articles & field notes' }}">{{ strings.footer.links.articles | default: strings.nav.articles }}</a>
2323
<a href="/{{ lang }}/archive/" data-i18n="footer_archive" data-ar="{{ strings_ar.footer.links.archive }}" data-en="{{ strings_en.footer.links.archive | default: 'Archive' }}">{{ strings.footer.links.archive | default: strings.nav.archive }}</a>

_layouts/default.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
<link rel="icon" type="image/svg+xml" href="{{ '/assets/img/favicon.svg' | relative_url }}">
8282
<link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/img/favicon-32.png' | relative_url }}">
8383
<link rel="apple-touch-icon" sizes="180x180" href="{{ '/assets/img/apple-touch-icon.png' | relative_url }}">
84+
85+
<!-- OneDollarStats -->
86+
<script defer src="https://assets.onedollarstats.com/stonks.js"></script>
8487
</head>
8588
<body class="lang-{{ lang }}">
8689
{% include header.html %}

_layouts/rules.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h1 class="hero-title">{{ strings.rules_page.title }}</h1>
5959
<div class="rule-title">{{ rule.title }}</div>
6060
</div>
6161
<div class="rule-body">
62-
{{ rule.body | newline_to_br }}
62+
{{ rule.body | markdownify }}
6363
{%- if rule.list -%}
6464
<ul class="rule-list-inner">
6565
{%- for item in rule.list -%}

_layouts/start-here.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ <h2>{{ strings.start_here_page.cadence.heading }}</h2>
129129
{%- endfor -%}
130130
</ul>
131131
<p class="next-up">{{ strings.start_here_page.cadence.next_up }}</p>
132+
<a href="/{{ lang }}/cadence/" class="cadence-cta">{{ strings.start_here_page.cadence.cta_text }} {{ strings.arrow_right }}</a>
132133
</div>
133134

134135
<!-- 7) Rules in 20 Seconds -->
@@ -139,9 +140,7 @@ <h2>{{ strings.start_here_page.rules_summary.heading }}</h2>
139140
<li>{{ item }}</li>
140141
{%- endfor -%}
141142
</ul>
142-
<a class="btn btn-teal" href="/{{ lang }}/rules/">
143-
{{ strings.start_here_page.rules_summary.button }} <span aria-hidden="true">{{ strings.arrow_external }}</span>
144-
</a>
143+
<a class="cadence-cta" href="/{{ lang }}/rules/">{{ strings.start_here_page.rules_summary.button }} {{ strings.arrow_right }}</a>
145144
</div>
146145

147146
<!-- 8) Privacy Notice -->

assets/css/styles.scss

Lines changed: 48 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,16 @@ a:hover {
303303
align-items: center;
304304
justify-content: space-between;
305305
gap: 16px;
306+
flex-wrap: nowrap; /* Keep logo and hamburger on same line */
306307
}
307308

308309
.nav-left {
309310
display: flex;
310311
align-items: center;
311312
gap: 10px;
312-
min-width: 0; /* Allow shrinking for text wrap */
313+
min-width: 0; /* Allow shrinking */
314+
flex: 1 1 auto; /* Grow and shrink as needed */
315+
overflow: hidden; /* Clip overflowing text */
313316
}
314317

315318
/* Logo */
@@ -528,18 +531,19 @@ a:hover {
528531
@media (max-width: 768px) {
529532
.nav-inner {
530533
padding-inline: 14px;
531-
flex-wrap: wrap; /* Allow nav-right to wrap below on mobile */
532534
}
533535

534536
.nav-toggle {
535537
display: flex;
536538
align-items: center;
537539
justify-content: center;
540+
flex-shrink: 0; /* Never shrink the hamburger */
538541
}
539542

540543
.site-tagline {
541-
word-wrap: break-word;
542-
overflow-wrap: break-word;
544+
overflow: hidden;
545+
text-overflow: ellipsis;
546+
white-space: nowrap;
543547
}
544548

545549
.nav-right {
@@ -1121,6 +1125,21 @@ a:hover {
11211125
margin: 0;
11221126
}
11231127

1128+
.feature-card-cta {
1129+
display: inline-block;
1130+
margin-top: 12px;
1131+
font-size: 13px;
1132+
font-weight: 600;
1133+
color: var(--teal);
1134+
text-decoration: none;
1135+
transition: color 0.15s ease;
1136+
}
1137+
1138+
.feature-card-cta:hover {
1139+
color: var(--terracotta);
1140+
text-decoration: underline;
1141+
}
1142+
11241143
/* --------------------------------------------------------------------------
11251144
10. CHIPS / TAGS
11261145
--------------------------------------------------------------------------
@@ -1724,10 +1743,10 @@ ul.clean li::before {
17241743
}
17251744

17261745
.dek {
1727-
font-size: 15px;
1746+
font-size: 16px;
17281747
color: var(--text-muted);
1729-
margin: 0 0 12px;
1730-
line-height: 1.5;
1748+
margin: 0 0 14px;
1749+
line-height: 1.55;
17311750
}
17321751

17331752
.meta-note {
@@ -1740,8 +1759,9 @@ ul.clean li::before {
17401759
border-radius: var(--radius-md);
17411760
border: 1px solid var(--border);
17421761
background: rgba(21, 32, 41, 0.06);
1743-
padding: 12px 14px;
1744-
font-size: 15px;
1762+
padding: 14px 16px;
1763+
font-size: 16px;
1764+
line-height: 1.6;
17451765
color: var(--text);
17461766
margin-bottom: 24px;
17471767
}
@@ -1788,16 +1808,16 @@ ul.clean li::before {
17881808
}
17891809

17901810
.rule-title {
1791-
font-size: 17px;
1811+
font-size: 18px;
17921812
font-weight: 650;
17931813
color: var(--text-heading);
17941814
}
17951815

17961816
.rule-body {
1797-
font-size: 14px;
1817+
font-size: 16px;
17981818
color: var(--text);
1799-
margin: 4px 0 0;
1800-
line-height: 1.6;
1819+
margin: 6px 0 0;
1820+
line-height: 1.65;
18011821
}
18021822

18031823
.rule-body p {
@@ -2462,6 +2482,21 @@ code:not(pre code) {
24622482
font-style: italic;
24632483
}
24642484

2485+
.cadence-cta {
2486+
display: inline-block;
2487+
margin-top: 14px;
2488+
font-size: 0.88rem;
2489+
font-weight: 600;
2490+
color: var(--teal);
2491+
text-decoration: none;
2492+
transition: color 0.15s ease;
2493+
}
2494+
2495+
.cadence-cta:hover {
2496+
color: var(--terracotta);
2497+
text-decoration: underline;
2498+
}
2499+
24652500
/* Rules Summary - Quick rules with CTA */
24662501
.rules-summary {
24672502
background: rgba(179, 78, 54, 0.06);

0 commit comments

Comments
 (0)