fix(i18n): fix English homepage layout with proper font and shorter copy

- Use sans-serif font for English titles, descriptions and navbar
- Shorten English hero text to avoid overflow
- Fix :global() scoped CSS issue that was setting root font-size to 3.5rem
- Use separate unscoped style block for html[lang] selectors
This commit is contained in:
ghostubborn 2026-04-01 18:04:05 +08:00
parent 24e9bee5be
commit 6db3f98a48
2 changed files with 33 additions and 5 deletions

View File

@ -895,3 +895,31 @@ const startSimulation = () => {
} }
} }
</style> </style>
<style>
/* English locale adjustments (unscoped to target html[lang]) */
html[lang="en"] .main-title {
font-size: 3.5rem;
font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
letter-spacing: -1px;
}
html[lang="en"] .hero-desc {
text-align: left;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
letter-spacing: 0;
}
html[lang="en"] .slogan-text {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
letter-spacing: 0;
}
html[lang="en"] .tag-row {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html[lang="en"] .navbar .nav-links {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
</style>

View File

@ -35,13 +35,13 @@
"home": { "home": {
"tagline": "Concise & Universal Swarm Intelligence Engine", "tagline": "Concise & Universal Swarm Intelligence Engine",
"version": "/ v0.1-Preview", "version": "/ v0.1-Preview",
"heroTitle1": "Upload Any Report", "heroTitle1": "Upload Reports,",
"heroTitle2": "Simulate the Future Instantly", "heroTitle2": "Predict the Future",
"heroDesc": "Even from a single paragraph, {brand} can extract reality seeds and auto-generate a parallel world of up to {agentScale}. Inject variables from a god's-eye view to find the {optimalSolution} amid complex group interactions in dynamic environments.", "heroDesc": "From a single document, {brand} extracts reality seeds to auto-generate a parallel world with up to {agentScale}. Inject variables from a god's-eye view to find the {optimalSolution} in complex group dynamics.",
"heroDescBrand": "MiroFish", "heroDescBrand": "MiroFish",
"heroDescAgentScale": "millions of Agents", "heroDescAgentScale": "million-scale Agents",
"heroDescOptimalSolution": "\"local optimum\"", "heroDescOptimalSolution": "\"local optimum\"",
"slogan": "Let the future rehearse among Agents, let decisions prevail after a hundred battles", "slogan": "Let Agents rehearse the future, let decisions prevail",
"systemStatus": "System Status", "systemStatus": "System Status",
"systemReady": "Ready", "systemReady": "Ready",
"systemReadyDesc": "Prediction engine on standby. Upload unstructured data to initialize a simulation sequence.", "systemReadyDesc": "Prediction engine on standby. Upload unstructured data to initialize a simulation sequence.",