Skip to content

Commit b6736e0

Browse files
Fix: Apply Nasalization font to all titles
- Replaced all instances of 'font-atomic-force' with 'font-nasalization' to ensure the correct font is applied to all titles. - Ensured that the Nasalization font is correctly loaded and applied across the application.
1 parent 5c28bdd commit b6736e0

File tree

5 files changed

+36
-20
lines changed

5 files changed

+36
-20
lines changed

index.html

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
<meta name="author" content="AlienFlowSpace" />
99
<meta name="description" content="AlienFlowSpace DAO unites BioFi, DeFi, DePin, DeSci, IPFS, QFS, ReFi, RWA, SocialFi, and TradFi under one cosmic ecosystem." />
1010

11-
<!-- Preload and Direct Load Nasalization Font -->
12-
<link rel="preload" href="https://fonts.gstatic.com/s/exo/v20/4UaZrEtFpBI4f1ZSIK9d4LjJ4lM2CwNsOl4p5Is.woff2" as="font" type="font/woff2" crossorigin />
13-
<link rel="preload" href="https://fonts.cdnfonts.com/s/35587/nasalization-rg.ttf" as="font" type="font/ttf" crossorigin />
14-
<link href="https://fonts.cdnfonts.com/css/nasalization" rel="stylesheet">
11+
<!-- Preload Fonts -->
12+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
13+
<link rel="preconnect" href="https://fonts.cdnfonts.com" crossorigin />
14+
15+
<!-- Preload Nasalization Font -->
16+
<link rel="preload" href="https://fonts.cdnfonts.com/s/35587/nasalization-rg.ttf" as="font" type="font/ttf" crossorigin="anonymous" />
1517

1618
<!-- Font Stylesheets -->
19+
<link href="https://fonts.cdnfonts.com/css/nasalization" rel="stylesheet">
1720
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700&display=swap" />
1821

1922
<!-- Open Graph Meta Tags -->
@@ -33,18 +36,26 @@
3336
<!-- Favicon -->
3437
<link rel="icon" href="/lovable-uploads/ALogo.png" type="image/x-icon" />
3538

36-
<!-- Inline font CSS to ensure the Nasalization font is loaded properly -->
39+
<!-- Critical Font CSS to prioritize Nasalization font loading -->
3740
<style>
3841
@font-face {
3942
font-family: 'Nasalization';
40-
font-style: normal;
43+
src: url('https://fonts.cdnfonts.com/s/35587/nasalization-rg.ttf') format('truetype');
4144
font-weight: normal;
45+
font-style: normal;
4246
font-display: swap;
43-
src: url('https://fonts.cdnfonts.com/s/35587/nasalization-rg.ttf') format('truetype');
4447
}
45-
46-
.font-atomic-force, .alien-logo-text, h1, h2, h3, h4, h5, h6 {
48+
49+
h1, h2, h3, h4, h5, h6,
50+
.font-nasalization {
51+
font-family: 'Nasalization', sans-serif !important;
52+
font-weight: 400;
53+
}
54+
55+
/* Remove all references to atomic-force */
56+
.font-atomic-force {
4757
font-family: 'Nasalization', sans-serif !important;
58+
font-weight: 400;
4859
}
4960
</style>
5061
</head>

src/components/ExploreSpacesSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const ExploreSpacesSection = () => {
3636
viewport={{ once: true }}
3737
className="text-center mb-16"
3838
>
39-
<h2 className="text-4xl font-bold mb-4 text-alien-gold text-glow font-atomic-force">Explore Spaces</h2>
39+
<h2 className="text-4xl font-bold mb-4 text-alien-gold text-glow font-nasalization">Explore Spaces</h2>
4040
<p className="text-xl text-gray-300 max-w-3xl mx-auto">
4141
Discover specialized environments designed to enhance your journey through the cosmos
4242
</p>
@@ -55,7 +55,7 @@ const ExploreSpacesSection = () => {
5555
<div className="mb-6 p-4 bg-alien-space-dark rounded-full">
5656
{space.icon}
5757
</div>
58-
<h3 className="text-2xl font-bold mb-4 text-alien-gold font-atomic-force">{space.title}</h3>
58+
<h3 className="text-2xl font-bold mb-4 text-alien-gold font-nasalization">{space.title}</h3>
5959
<p className="text-gray-300 mb-8 flex-grow">{space.description}</p>
6060
<Link to={space.link}>
6161
<Button className="bg-alien-green hover:bg-alien-green-light text-alien-space-dark">

src/components/Hero.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Hero = () => {
3939

4040
{/* Título del Hero */}
4141
<h1
42-
className="text-3xl sm:text-4xl md:text-6xl lg:text-7xl font-bold mb-4 tracking-tight text-glow text-center font-atomic-force"
42+
className="text-3xl sm:text-4xl md:text-6xl lg:text-7xl font-bold mb-4 tracking-tight text-glow text-center font-nasalization"
4343
>
4444
<span className="text-alien-green">Δlieπ</span>
4545
<span className="text-alien-gold">FlΦw</span>
@@ -66,7 +66,7 @@ const Hero = () => {
6666
{/* Botón About */}
6767
<Link to="/about">
6868
<Button
69-
className="bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-atomic-force px-6 sm:px-8 py-5 sm:py-6 text-base sm:text-lg rounded-full transition-colors"
69+
className="bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-nasalization px-6 sm:px-8 py-5 sm:py-6 text-base sm:text-lg rounded-full transition-colors"
7070
>
7171
<Orbit className="mr-2 h-5 w-5" /> About Enter Portal
7272
</Button>
@@ -75,7 +75,7 @@ const Hero = () => {
7575
{/* Botón AlienTrip */}
7676
<Link to="/alien-trip">
7777
<Button
78-
className="bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-atomic-force px-6 sm:px-8 py-5 sm:py-6 text-base sm:text-lg rounded-full transition-colors"
78+
className="bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-nasalization px-6 sm:px-8 py-5 sm:py-6 text-base sm:text-lg rounded-full transition-colors"
7979
>
8080
<ScrollText className="mr-2 h-5 w-5" /> Alientrip Manifesto
8181
</Button>
@@ -84,7 +84,7 @@ const Hero = () => {
8484
{/* Botón Contact */}
8585
<Link to="/contact">
8686
<Button
87-
className="bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-atomic-force px-6 sm:px-8 py-5 sm:py-6 text-base sm:text-lg rounded-full transition-colors"
87+
className="bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-nasalization px-6 sm:px-8 py-5 sm:py-6 text-base sm:text-lg rounded-full transition-colors"
8888
>
8989
<Globe className="mr-2 h-5 w-5" /> Contact & Join
9090
</Button>

src/global.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ main {
5555
box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
5656
}
5757

58-
/* Nasalization font configuration - corrected path and format */
58+
/* Nasalization font configuration - fixed path and format */
5959
@font-face {
6060
font-family: 'Nasalization';
6161
font-style: normal;
@@ -64,11 +64,14 @@ main {
6464
src: url('https://fonts.cdnfonts.com/s/35587/nasalization-rg.ttf') format('truetype');
6565
}
6666

67-
h1, h2, h3, h4, h5, h6, .font-atomic {
67+
/* Apply font to all headings */
68+
h1, h2, h3, h4, h5, h6 {
6869
font-family: 'Nasalization', sans-serif !important;
6970
letter-spacing: 0.5px;
71+
font-weight: 400;
7072
}
7173

74+
/* Font class standardization - use only 'font-nasalization' */
7275
.font-nasalization {
7376
font-family: 'Nasalization', sans-serif !important;
7477
font-weight: 400 !important;
@@ -77,7 +80,7 @@ h1, h2, h3, h4, h5, h6, .font-atomic {
7780
white-space: nowrap !important; /* Keep text in one line */
7881
}
7982

80-
/* Redefino la clase font-atomic-force para quienes la utilicen todavía */
83+
/* Maintain backward compatibility but phase out atomic-force */
8184
.font-atomic-force {
8285
font-family: 'Nasalization', sans-serif !important;
8386
font-weight: 400 !important;
@@ -95,4 +98,3 @@ h1, h2, h3, h4, h5, h6, .font-atomic {
9598
width: 100%;
9699
text-align: center;
97100
}
98-

src/index.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700&display=swap');
32
@import url('https://fonts.cdnfonts.com/css/nasalization');
43

@@ -48,8 +47,10 @@
4847
--sidebar-ring: 48 83% 72%;
4948
}
5049

50+
/* Primary font declarations */
5151
h1, h2, h3, h4, h5, h6 {
5252
font-family: 'Nasalization', sans-serif !important;
53+
font-weight: 400;
5354
}
5455

5556
body, p, span, div, a, button {
@@ -65,11 +66,13 @@
6566
src: url('https://fonts.cdnfonts.com/s/35587/nasalization-rg.ttf') format('truetype');
6667
}
6768

69+
/* Standard class for Nasalization font */
6870
.font-nasalization {
6971
font-family: 'Nasalization', sans-serif !important;
7072
font-weight: 400 !important;
7173
}
7274

75+
/* Legacy support but all components should transition to font-nasalization */
7376
.font-atomic-force {
7477
font-family: 'Nasalization', sans-serif !important;
7578
font-weight: 400 !important;

0 commit comments

Comments
 (0)