Skip to content

Commit f4d2a6e

Browse files
fix: keep homepage hero in Rubik black
1 parent 829b680 commit f4d2a6e

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

css/home.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Shared Atlas Nexus homepage visual system — FR + EN */
22
/* ── Core ── */
3-
.hero-title { font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 900; letter-spacing: -0.055em; line-height: 1.05; overflow: visible; }
3+
.hero-title { font-family: 'Rubik', sans-serif; font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 900; letter-spacing: -0.055em; line-height: 1.05; overflow: visible; }
44
.gradient-text { background: linear-gradient(135deg, #2563EB 0%, #059669 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
55
.glow-word { position: relative; display: inline-block; overflow: visible; padding: .035em .02em .13em .02em; margin: -.035em -.02em -.07em -.02em; background: linear-gradient(110deg, #0F172A 0%, #2563EB 32%, #7C3AED 56%, #059669 82%, #0F172A 100%); background-size: 240% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: agenticGlow 3.8s ease-in-out infinite; }
66
@keyframes agenticGlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

en/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<meta name="description" content="Useful micro-builds: dashboards, automations, web pages and AI agents shipped quickly with verifiable code and deployment.">
1818
<link rel="stylesheet" href="/css/site.css?v=4">
19-
<link rel="stylesheet" href="/css/home.css?v=1">
19+
<link rel="stylesheet" href="/css/home.css?v=2">
2020
<link rel="preconnect" href="https://fonts.googleapis.com">
2121
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2222
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700;900&amp;family=Nunito+Sans:wght@400;600;700&amp;display=swap" rel="stylesheet">

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<link rel="preconnect" href="https://fonts.googleapis.com">
2020
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2121
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700;900&amp;family=Nunito+Sans:wght@400;600;700&amp;display=swap" rel="stylesheet">
22-
<link rel="stylesheet" href="/css/home.css?v=1">
22+
<link rel="stylesheet" href="/css/home.css?v=2">
2323

2424
<link rel="canonical" href="https://atlasnexus.tech/">
2525
<meta property="og:type" content="website">

tests/test_audit_corrections.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
CASE_STUDY = (ROOT / "case-study" / "index.html").read_text(encoding="utf-8")
88
LEGAL = (ROOT / "mentions-legales" / "index.html").read_text(encoding="utf-8")
99
SITEMAP = (ROOT / "sitemap.xml").read_text(encoding="utf-8")
10+
HOME_CSS = (ROOT / "css" / "home.css").read_text(encoding="utf-8")
1011
QUARTERLY = (ROOT / "revue-trimestrielle-powerpoint" / "index.html").read_text(encoding="utf-8")
1112
EXTRACTOR = (ROOT / "extracteur-donnees-publiques" / "index.html").read_text(encoding="utf-8")
1213

@@ -75,6 +76,16 @@ def test_obsolete_offers_and_projects_are_not_promoted_or_indexed():
7576
assert 'name="robots" content="noindex,follow"' in EXTRACTOR
7677

7778

79+
def test_homepage_hero_uses_the_loaded_rubik_900_display_font():
80+
hero_rule = re.search(r"\.hero-title\s*\{([^}]*)\}", HOME_CSS)
81+
assert hero_rule
82+
declarations = hero_rule.group(1)
83+
assert "font-family: 'Rubik', sans-serif" in declarations
84+
assert "font-weight: 900" in declarations
85+
assert '/css/home.css?v=2' in FR
86+
assert '/css/home.css?v=2' in EN
87+
88+
7889
if __name__ == "__main__":
7990
tests = [(name, value) for name, value in globals().items() if name.startswith("test_") and callable(value)]
8091
for name, test in tests:

0 commit comments

Comments
 (0)