Skip to content

Commit bfbf797

Browse files
gHashTagona-agent
andcommitted
feat: add i18n translations for MysticismSection and StickyCTA
- Add mysticism translations to all 5 languages (en, ru, de, zh, es) - Add stickyCta translations for Invest/Calculator buttons - Update MysticismSection to use i18n with fallbacks - Update App.tsx with MysticismToggle component using i18n - Update StickyCTA to use stickyCta translations Translations include: - Mathematical Foundations title - SU(3) Gauge Symmetry - Chern-Simons Invariants - Golden Ratio Identity - Phoenix Number Co-authored-by: Ona <no-reply@ona.com>
1 parent 304a7f4 commit bfbf797

8 files changed

Lines changed: 233 additions & 47 deletions

File tree

website/messages/de.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,5 +390,37 @@
390390
],
391391
"cta": "Vollständigen Bericht auf GitHub lesen",
392392
"ctaUrl": "https://github.com/gHashTag/vibee-lang/blob/main/docs/BITNET_MATHEMATICAL_PROOF.md"
393+
},
394+
"mysticism": {
395+
"title": "Mathematische Grundlagen",
396+
"subtitle": "Diese mathematischen Strukturen bilden die theoretische Grundlage für die Vorteile ternärer Berechnungen.",
397+
"toggleShow": "▶ Für Mathematiker: SU(3), Chern-Simons, φ",
398+
"toggleHide": "▼ Mathematische Grundlagen ausblenden",
399+
"items": [
400+
{
401+
"title": "SU(3) Eichsymmetrie",
402+
"description": "Ternäre Zustände {-1, 0, +1} entsprechen der Farbladung in der Quantenchromodynamik. Die 8 Gluon-Generatoren von SU(3) bieten natürliche Fehlerkorrektur.",
403+
"formula": "SU(3) → 8 Generatoren → ternäre Stabilität"
404+
},
405+
{
406+
"title": "Chern-Simons Invarianten",
407+
"description": "Topologischer Schutz von Quantenzuständen durch Chern-Simons-Theorie. Die Invariante k=3 entspricht der ternären Logiktiefe.",
408+
"formula": "CS(A) = k/4π ∫ Tr(A∧dA + ⅔A∧A∧A)"
409+
},
410+
{
411+
"title": "Goldener Schnitt Identität",
412+
"description": "Die heilige Formel φ² + 1/φ² = 3 verbindet den goldenen Schnitt mit der Ternärität.",
413+
"formula": "φ² + 1/φ² = 3 = TRINITÄT"
414+
},
415+
{
416+
"title": "Phoenix-Zahl",
417+
"description": "Die selbstreferentielle Konstante, die aus ternärer Rekursion entsteht. Verwandt mit Feigenbaum-Konstanten.",
418+
"formula": "Φ = lim(n→∞) T(n)/T(n-1) ≈ 1.618..."
419+
}
420+
]
421+
},
422+
"stickyCta": {
423+
"invest": "Jetzt Investieren",
424+
"calculator": "Sparrechner"
393425
}
394426
}

website/messages/en.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,5 +803,37 @@
803803
"quote": "\"The mathematics of the universe favors the Trinity.\"",
804804
"cta": "View Full Tokenomics",
805805
"ctaUrl": "https://github.com/gHashTag/trinity/blob/main/docs/business/TOKENOMICS.md"
806+
},
807+
"mysticism": {
808+
"title": "Mathematical Foundations",
809+
"subtitle": "These mathematical structures provide theoretical grounding for ternary computing advantages.",
810+
"toggleShow": "▶ For Mathematicians: SU(3), Chern-Simons, φ",
811+
"toggleHide": "▼ Hide Mathematical Foundations",
812+
"items": [
813+
{
814+
"title": "SU(3) Gauge Symmetry",
815+
"description": "Ternary states {-1, 0, +1} map to color charge in quantum chromodynamics. The 8 gluon generators of SU(3) provide natural error correction.",
816+
"formula": "SU(3) → 8 generators → ternary stability"
817+
},
818+
{
819+
"title": "Chern-Simons Invariants",
820+
"description": "Topological protection of quantum states through Chern-Simons theory. The invariant k=3 corresponds to ternary logic depth.",
821+
"formula": "CS(A) = k/4π ∫ Tr(A∧dA + ⅔A∧A∧A)"
822+
},
823+
{
824+
"title": "Golden Ratio Identity",
825+
"description": "The sacred formula φ² + 1/φ² = 3 connects golden ratio to ternary. This identity underlies optimal information encoding.",
826+
"formula": "φ² + 1/φ² = 3 = TRINITY"
827+
},
828+
{
829+
"title": "Phoenix Number",
830+
"description": "The self-referential constant that emerges from ternary recursion. Related to Feigenbaum constants in chaos theory.",
831+
"formula": "Φ = lim(n→∞) T(n)/T(n-1) ≈ 1.618..."
832+
}
833+
]
834+
},
835+
"stickyCta": {
836+
"invest": "Invest Now",
837+
"calculator": "Savings Calculator"
806838
}
807839
}

website/messages/es.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,5 +390,37 @@
390390
],
391391
"cta": "Leer Informe Completo en GitHub",
392392
"ctaUrl": "https://github.com/gHashTag/vibee-lang/blob/main/docs/BITNET_MATHEMATICAL_PROOF.md"
393+
},
394+
"mysticism": {
395+
"title": "Fundamentos Matemáticos",
396+
"subtitle": "Estas estructuras matemáticas proporcionan la base teórica para las ventajas de la computación ternaria.",
397+
"toggleShow": "▶ Para Matemáticos: SU(3), Chern-Simons, φ",
398+
"toggleHide": "▼ Ocultar Fundamentos Matemáticos",
399+
"items": [
400+
{
401+
"title": "Simetría de Gauge SU(3)",
402+
"description": "Los estados ternarios {-1, 0, +1} corresponden a la carga de color en cromodinámica cuántica. Los 8 generadores de gluones de SU(3) proporcionan corrección de errores natural.",
403+
"formula": "SU(3) → 8 generadores → estabilidad ternaria"
404+
},
405+
{
406+
"title": "Invariantes de Chern-Simons",
407+
"description": "Protección topológica de estados cuánticos a través de la teoría de Chern-Simons. El invariante k=3 corresponde a la profundidad lógica ternaria.",
408+
"formula": "CS(A) = k/4π ∫ Tr(A∧dA + ⅔A∧A∧A)"
409+
},
410+
{
411+
"title": "Identidad de la Proporción Áurea",
412+
"description": "La fórmula sagrada φ² + 1/φ² = 3 conecta la proporción áurea con lo ternario.",
413+
"formula": "φ² + 1/φ² = 3 = TRINIDAD"
414+
},
415+
{
416+
"title": "Número Fénix",
417+
"description": "La constante autorreferencial que emerge de la recursión ternaria. Relacionada con las constantes de Feigenbaum.",
418+
"formula": "Φ = lim(n→∞) T(n)/T(n-1) ≈ 1.618..."
419+
}
420+
]
421+
},
422+
"stickyCta": {
423+
"invest": "Invertir Ahora",
424+
"calculator": "Calculadora de Ahorro"
393425
}
394426
}

website/messages/ru.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,5 +796,37 @@
796796
"quote": "«Математика вселенной благоволит Троице.»",
797797
"cta": "Полная Токеномика",
798798
"ctaUrl": "https://github.com/gHashTag/trinity/blob/main/docs/business/TOKENOMICS.md"
799+
},
800+
"mysticism": {
801+
"title": "Математические Основы",
802+
"subtitle": "Эти математические структуры обеспечивают теоретическое обоснование преимуществ троичных вычислений.",
803+
"toggleShow": "▶ Для Математиков: SU(3), Черн-Саймонс, φ",
804+
"toggleHide": "▼ Скрыть Математические Основы",
805+
"items": [
806+
{
807+
"title": "Калибровочная Симметрия SU(3)",
808+
"description": "Троичные состояния {-1, 0, +1} соответствуют цветовому заряду в квантовой хромодинамике. 8 глюонных генераторов SU(3) обеспечивают естественную коррекцию ошибок.",
809+
"formula": "SU(3) → 8 генераторов → троичная стабильность"
810+
},
811+
{
812+
"title": "Инварианты Черна-Саймонса",
813+
"description": "Топологическая защита квантовых состояний через теорию Черна-Саймонса. Инвариант k=3 соответствует глубине троичной логики.",
814+
"formula": "CS(A) = k/4π ∫ Tr(A∧dA + ⅔A∧A∧A)"
815+
},
816+
{
817+
"title": "Тождество Золотого Сечения",
818+
"description": "Священная формула φ² + 1/φ² = 3 связывает золотое сечение с троичностью. Это тождество лежит в основе оптимального кодирования информации.",
819+
"formula": "φ² + 1/φ² = 3 = ТРОИЦА"
820+
},
821+
{
822+
"title": "Число Феникса",
823+
"description": "Самореферентная константа, возникающая из троичной рекурсии. Связана с константами Фейгенбаума в теории хаоса.",
824+
"formula": "Φ = lim(n→∞) T(n)/T(n-1) ≈ 1.618..."
825+
}
826+
]
827+
},
828+
"stickyCta": {
829+
"invest": "Инвестировать",
830+
"calculator": "Калькулятор Экономии"
799831
}
800832
}

website/messages/zh.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,5 +390,37 @@
390390
],
391391
"cta": "在GitHub阅读完整报告",
392392
"ctaUrl": "https://github.com/gHashTag/vibee-lang/blob/main/docs/BITNET_MATHEMATICAL_PROOF.md"
393+
},
394+
"mysticism": {
395+
"title": "数学基础",
396+
"subtitle": "这些数学结构为三进制计算的优势提供了理论基础。",
397+
"toggleShow": "▶ 数学家专区:SU(3)、陈-西蒙斯、φ",
398+
"toggleHide": "▼ 隐藏数学基础",
399+
"items": [
400+
{
401+
"title": "SU(3)规范对称性",
402+
"description": "三进制状态{-1, 0, +1}对应量子色动力学中的色荷。SU(3)的8个胶子生成元提供自然纠错。",
403+
"formula": "SU(3) → 8个生成元 → 三进制稳定性"
404+
},
405+
{
406+
"title": "陈-西蒙斯不变量",
407+
"description": "通过陈-西蒙斯理论对量子态进行拓扑保护。不变量k=3对应三进制逻辑深度。",
408+
"formula": "CS(A) = k/4π ∫ Tr(A∧dA + ⅔A∧A∧A)"
409+
},
410+
{
411+
"title": "黄金比例恒等式",
412+
"description": "神圣公式φ² + 1/φ² = 3将黄金比例与三进制联系起来。",
413+
"formula": "φ² + 1/φ² = 3 = 三位一体"
414+
},
415+
{
416+
"title": "凤凰数",
417+
"description": "从三进制递归中产生的自指常数。与混沌理论中的费根鲍姆常数相关。",
418+
"formula": "Φ = lim(n→∞) T(n)/T(n-1) ≈ 1.618..."
419+
}
420+
]
421+
},
422+
"stickyCta": {
423+
"invest": "立即投资",
424+
"calculator": "节省计算器"
393425
}
394426
}

website/src/App.tsx

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,38 @@ import Navigation from './components/Navigation'
44
import QuantumBackground from './components/QuantumBackground'
55
import Footer from './components/Footer'
66
import StickyCTA from './components/StickyCTA'
7+
import { useI18n } from './i18n/context'
8+
9+
// Mysticism toggle component with i18n
10+
function MysticismToggle({ showMysticism, setShowMysticism }: { showMysticism: boolean; setShowMysticism: (v: boolean) => void }) {
11+
const { t } = useI18n();
12+
const m = t.mysticism;
13+
14+
return (
15+
<div style={{ textAlign: 'center', padding: '2rem 0' }}>
16+
<button
17+
onClick={() => setShowMysticism(!showMysticism)}
18+
style={{
19+
background: 'transparent',
20+
border: '1px solid var(--border)',
21+
color: 'var(--muted)',
22+
padding: '0.5rem 1.5rem',
23+
borderRadius: '4px',
24+
cursor: 'pointer',
25+
fontSize: '0.9rem',
26+
opacity: 0.6,
27+
transition: 'opacity 0.3s'
28+
}}
29+
onMouseEnter={(e) => e.currentTarget.style.opacity = '1'}
30+
onMouseLeave={(e) => e.currentTarget.style.opacity = '0.6'}
31+
>
32+
{showMysticism
33+
? (m?.toggleHide || '▼ Hide Mathematical Foundations')
34+
: (m?.toggleShow || '▶ For Mathematicians: SU(3), Chern-Simons, φ')}
35+
</button>
36+
</div>
37+
);
38+
}
739

840
// OPTIMIZED: 8 sections only (was 29)
941
// Target: +40% conversion through focused flow
@@ -55,26 +87,7 @@ export default function App() {
5587
<TeamSection />
5688

5789
{/* MYSTICISM SUBTAB - Hidden by default */}
58-
<div style={{ textAlign: 'center', padding: '2rem 0' }}>
59-
<button
60-
onClick={() => setShowMysticism(!showMysticism)}
61-
style={{
62-
background: 'transparent',
63-
border: '1px solid var(--border)',
64-
color: 'var(--text-secondary)',
65-
padding: '0.5rem 1.5rem',
66-
borderRadius: '4px',
67-
cursor: 'pointer',
68-
fontSize: '0.9rem',
69-
opacity: 0.6,
70-
transition: 'opacity 0.3s'
71-
}}
72-
onMouseEnter={(e) => e.currentTarget.style.opacity = '1'}
73-
onMouseLeave={(e) => e.currentTarget.style.opacity = '0.6'}
74-
>
75-
{showMysticism ? '▼ Hide Mathematical Foundations' : '▶ For Mathematicians: SU(3), Chern-Simons, φ'}
76-
</button>
77-
</div>
90+
<MysticismToggle showMysticism={showMysticism} setShowMysticism={setShowMysticism} />
7891
{showMysticism && <MysticismSection />}
7992

8093
{/* 8. INVEST - Final CTA */}

website/src/components/StickyCTA.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function StickyCTA() {
5757
whileTap={{ scale: 0.95 }}
5858
style={{ minWidth: '160px', textAlign: 'center' }}
5959
>
60-
{t.invest?.cta || 'Invest Now'}
60+
💎 {t.stickyCta?.invest || 'Invest Now'}
6161
</motion.a>
6262

6363
<motion.a

website/src/components/sections/MysticismSection.tsx

Lines changed: 39 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,43 @@
11
"use client";
22
import { motion } from 'framer-motion';
3+
import { useI18n } from '../../i18n/context';
34

4-
const mysticismItems = [
5-
{
6-
title: 'SU(3) Gauge Symmetry',
7-
description: 'Ternary states {-1, 0, +1} map to color charge in quantum chromodynamics. The 8 gluon generators of SU(3) provide natural error correction.',
8-
formula: 'SU(3) → 8 generators → ternary stability'
9-
},
10-
{
11-
title: 'Chern-Simons Invariants',
12-
description: 'Topological protection of quantum states through Chern-Simons theory. The invariant k=3 corresponds to ternary logic depth.',
13-
formula: 'CS(A) = k/4π ∫ Tr(A∧dA + ⅔A∧A∧A)'
14-
},
15-
{
16-
title: 'Golden Ratio Identity',
17-
description: 'The sacred formula φ² + 1/φ² = 3 connects golden ratio to ternary. This identity underlies optimal information encoding.',
18-
formula: 'φ² + 1/φ² = 3 = TRINITY'
19-
},
20-
{
21-
title: 'Phoenix Number',
22-
description: 'The self-referential constant that emerges from ternary recursion. Related to Feigenbaum constants in chaos theory.',
23-
formula: 'Φ = lim(n→∞) T(n)/T(n-1) ≈ 1.618...'
24-
}
25-
];
5+
interface MysticismItem {
6+
title: string;
7+
description: string;
8+
formula: string;
9+
}
2610

2711
export default function MysticismSection() {
12+
const { t } = useI18n();
13+
const m = t.mysticism;
14+
15+
// Fallback items if translations not loaded
16+
const defaultItems: MysticismItem[] = [
17+
{
18+
title: 'SU(3) Gauge Symmetry',
19+
description: 'Ternary states {-1, 0, +1} map to color charge in quantum chromodynamics.',
20+
formula: 'SU(3) → 8 generators → ternary stability'
21+
},
22+
{
23+
title: 'Chern-Simons Invariants',
24+
description: 'Topological protection of quantum states through Chern-Simons theory.',
25+
formula: 'CS(A) = k/4π ∫ Tr(A∧dA + ⅔A∧A∧A)'
26+
},
27+
{
28+
title: 'Golden Ratio Identity',
29+
description: 'The sacred formula φ² + 1/φ² = 3 connects golden ratio to ternary.',
30+
formula: 'φ² + 1/φ² = 3 = TRINITY'
31+
},
32+
{
33+
title: 'Phoenix Number',
34+
description: 'The self-referential constant that emerges from ternary recursion.',
35+
formula: 'Φ = lim(n→∞) T(n)/T(n-1) ≈ 1.618...'
36+
}
37+
];
38+
39+
const items: MysticismItem[] = m?.items || defaultItems;
40+
2841
return (
2942
<section id="mysticism" style={{ padding: '4rem 2rem', background: 'rgba(0,0,0,0.3)' }}>
3043
<div style={{ maxWidth: '1200px', margin: '0 auto' }}>
@@ -34,15 +47,15 @@ export default function MysticismSection() {
3447
viewport={{ once: true }}
3548
style={{ textAlign: 'center', marginBottom: '3rem', fontSize: '2rem' }}
3649
>
37-
Mathematical Foundations
50+
{m?.title || 'Mathematical Foundations'}
3851
</motion.h2>
3952

4053
<div style={{
4154
display: 'grid',
4255
gridTemplateColumns: 'repeat(auto-fit, minmax(280px, 1fr))',
4356
gap: '1.5rem'
4457
}}>
45-
{mysticismItems.map((item, index) => (
58+
{items.map((item: MysticismItem, index: number) => (
4659
<motion.div
4760
key={item.title}
4861
initial={{ opacity: 0, y: 30 }}
@@ -66,7 +79,7 @@ export default function MysticismSection() {
6679
{item.title}
6780
</h3>
6881
<p style={{
69-
color: 'var(--text-secondary)',
82+
color: 'var(--muted)',
7083
fontSize: '0.9rem',
7184
lineHeight: 1.6,
7285
marginBottom: '1rem'
@@ -99,7 +112,7 @@ export default function MysticismSection() {
99112
fontStyle: 'italic'
100113
}}
101114
>
102-
These mathematical structures provide theoretical grounding for ternary computing advantages.
115+
{m?.subtitle || 'These mathematical structures provide theoretical grounding for ternary computing advantages.'}
103116
</motion.p>
104117
</div>
105118
</section>

0 commit comments

Comments
 (0)