Skip to content

Commit 6554250

Browse files
brunoborgesCopilot
andcommitted
Improve Contribute button visibility
- Style button with accent border and tint instead of grey - Add inline 'See a problem with this code?' prompt below code comparison - Add seeIssue/reportIt UI strings for all 9 locales Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 70c2d7a commit 6554250

File tree

11 files changed

+39
-3
lines changed

11 files changed

+39
-3
lines changed

site/styles.css

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,9 +1593,9 @@ footer a:hover {
15931593
gap: 6px;
15941594
padding: 5px 14px;
15951595
border-radius: var(--radius-sm);
1596-
border: 1px solid var(--border);
1597-
background: var(--surface);
1598-
color: var(--text-muted);
1596+
border: 1px solid var(--accent);
1597+
background: rgba(251, 146, 60, 0.1);
1598+
color: var(--accent);
15991599
font-size: 0.82rem;
16001600
font-weight: 500;
16011601
line-height: 1;
@@ -1608,6 +1608,20 @@ footer a:hover {
16081608
color: #fff;
16091609
border-color: var(--accent);
16101610
}
1611+
.contribute-inline {
1612+
text-align: center;
1613+
padding: 12px 0 0;
1614+
font-size: 0.85rem;
1615+
color: var(--text-muted);
1616+
}
1617+
.contribute-inline a {
1618+
color: var(--accent);
1619+
text-decoration: underline;
1620+
text-underline-offset: 2px;
1621+
}
1622+
.contribute-inline a:hover {
1623+
color: var(--accent-dim);
1624+
}
16111625
.contribute-dropdown ul {
16121626
display: none;
16131627
position: absolute;

templates/slug-template.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ <h1>{{title}}</h1>
163163
</div>
164164
</section>
165165

166+
<div class="contribute-inline">
167+
{{contribute.seeIssue}} <a href="{{contributeCodeIssueUrl}}" target="_blank" rel="noopener">{{contribute.reportIt}}</a>
168+
</div>
169+
166170
<section class="why-section">
167171
<div class="section-label">{{sections.whyModernWins}}</div>
168172
<div class="why-grid">

translations/strings/ar.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ contribute:
8080
codeIssue: الإبلاغ عن مشكلة في الكود
8181
translationIssue: الإبلاغ عن مشكلة في الترجمة
8282
suggestPattern: اقتراح نمط جديد
83+
seeIssue: "هل ترى مشكلة في هذا الكود؟"
84+
reportIt: "أخبرنا."
8385
untranslated:
8486
notice: "هذه الصفحة لم تُترجم بعد إلى {{localeName}}."
8587
viewInEnglish: عرض بالإنجليزية

translations/strings/de.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ contribute:
8282
codeIssue: Code-Problem melden
8383
translationIssue: Übersetzungsproblem melden
8484
suggestPattern: Neues Muster vorschlagen
85+
seeIssue: "Problem mit diesem Code entdeckt?"
86+
reportIt: "Sag uns Bescheid."
8587
untranslated:
8688
notice: Diese Seite wurde noch nicht ins {{localeName}} übersetzt.
8789
viewInEnglish: Auf Englisch ansehen

translations/strings/en.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ contribute:
8282
codeIssue: Report a code issue
8383
translationIssue: Report a translation issue
8484
suggestPattern: Suggest a new pattern
85+
seeIssue: "See a problem with this code?"
86+
reportIt: "Let us know."
8587
untranslated:
8688
notice: This page has not yet been translated into {{localeName}}.
8789
viewInEnglish: View in English

translations/strings/es.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ contribute:
8282
codeIssue: Reportar un problema de código
8383
translationIssue: Reportar un problema de traducción
8484
suggestPattern: Sugerir un nuevo patrón
85+
seeIssue: "¿Ves un problema con este código?"
86+
reportIt: "Cuéntanos."
8587
untranslated:
8688
notice: Esta página aún no ha sido traducida al {{localeName}}.
8789
viewInEnglish: Ver en Inglés

translations/strings/fr.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ contribute:
8383
codeIssue: Signaler un problème de code
8484
translationIssue: Signaler un problème de traduction
8585
suggestPattern: Proposer un nouveau pattern
86+
seeIssue: "Un problème avec ce code ?"
87+
reportIt: "Dites-le nous."
8688
untranslated:
8789
notice: Cette page n'a pas encore été traduite en {{localeName}}.
8890
viewInEnglish: Voir en Anglais

translations/strings/ja.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ contribute:
8080
codeIssue: コードの問題を報告
8181
translationIssue: 翻訳の問題を報告
8282
suggestPattern: 新しいパターンを提案
83+
seeIssue: "このコードに問題がありますか?"
84+
reportIt: "お知らせください。"
8385
untranslated:
8486
notice: このページはまだ{{localeName}}に翻訳されていません。
8587
viewInEnglish: 英語で見る

translations/strings/ko.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ contribute:
8080
codeIssue: 코드 문제 신고
8181
translationIssue: 번역 문제 신고
8282
suggestPattern: 새 패턴 제안
83+
seeIssue: "이 코드에 문제가 있나요?"
84+
reportIt: "알려주세요."
8385
untranslated:
8486
notice: 이 페이지는 아직 {{localeName}}(으)로 번역되지 않았습니다.
8587
viewInEnglish: 영어로 보기

translations/strings/pt-BR.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ contribute:
8282
codeIssue: Reportar um problema no código
8383
translationIssue: Reportar um problema de tradução
8484
suggestPattern: Sugerir um novo padrão
85+
seeIssue: "Viu um problema com este código?"
86+
reportIt: "Nos avise."
8587
untranslated:
8688
notice: Esta página ainda não foi traduzida para {{localeName}}.
8789
viewInEnglish: Ver em Inglês

0 commit comments

Comments
 (0)