Skip to content

Commit a3d95a1

Browse files
Fix: Apply Nasalization font to headings
Ensures the Nasalization font is correctly applied to all headings across the application, including the menu and page titles.
1 parent 9bd6081 commit a3d95a1

File tree

6 files changed

+34
-30
lines changed

6 files changed

+34
-30
lines changed

index.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
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 Fonts -->
11+
<!-- Preload Fonts - Alta prioridad para Nasalization -->
1212
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1313
<link rel="preconnect" href="https://fonts.cdnfonts.com" crossorigin />
1414

15-
<!-- Preload Nasalization Font with high priority -->
15+
<!-- MAXIMUM PRIORITY: Preload Nasalization Font -->
1616
<link rel="preload" href="https://fonts.cdnfonts.com/s/35587/nasalization-rg.ttf" as="font" type="font/ttf" crossorigin="anonymous" />
1717

18-
<!-- Font Stylesheets - Direct import without @import -->
18+
<!-- Font Stylesheets - Carga directa sin @import -->
1919
<link href="https://fonts.cdnfonts.com/css/nasalization" rel="stylesheet">
2020
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700&display=swap" />
2121

@@ -36,8 +36,9 @@
3636
<!-- Favicon -->
3737
<link rel="icon" href="/lovable-uploads/ALogo.png" type="image/x-icon" />
3838

39-
<!-- Critical Font CSS inlined to ensure Nasalization loads first -->
39+
<!-- Critical Font CSS inlined para asegurar carga inmediata de Nasalization -->
4040
<style>
41+
/* CRITICAL: Carga prioritaria de Nasalization */
4142
@font-face {
4243
font-family: 'Nasalization';
4344
src: url('https://fonts.cdnfonts.com/s/35587/nasalization-rg.ttf') format('truetype');
@@ -46,19 +47,20 @@
4647
font-display: swap;
4748
}
4849

50+
/* FORZAR aplicación de Nasalization a todos los elementos con clase o etiqueta */
4951
h1, h2, h3, h4, h5, h6,
5052
.font-nasalization {
5153
font-family: 'Nasalization', sans-serif !important;
52-
font-weight: 400;
53-
letter-spacing: 0.5px;
54+
font-weight: 400 !important;
55+
letter-spacing: 0.5px !important;
5456
}
5557

56-
/* Remove all references to atomic-force */
57-
body * .font-atomic-force,
58-
body * .font-atomic {
58+
/* Eliminar todas las referencias a atomic-force/atomic */
59+
.font-atomic-force,
60+
.font-atomic {
5961
font-family: 'Nasalization', sans-serif !important;
60-
font-weight: 400;
61-
letter-spacing: 0.5px;
62+
font-weight: 400 !important;
63+
letter-spacing: 0.5px !important;
6264
}
6365
</style>
6466
</head>

src/global.css

Lines changed: 6 additions & 8 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-
/* Direct font-face declarations with fixed path and format */
58+
/* NASALIZATION FONT: Carga directa con ruta fija */
5959
@font-face {
6060
font-family: 'Nasalization';
6161
font-style: normal;
@@ -64,30 +64,28 @@ main {
6464
src: url('https://fonts.cdnfonts.com/s/35587/nasalization-rg.ttf') format('truetype');
6565
}
6666

67-
/* Apply font to all headings with !important to enforce */
67+
/* IMPORTANTE: Aplicar fuente a TODOS los encabezados con !important para forzar */
6868
h1, h2, h3, h4, h5, h6 {
6969
font-family: 'Nasalization', sans-serif !important;
70-
letter-spacing: 0.5px;
71-
font-weight: 400;
70+
letter-spacing: 0.5px !important;
71+
font-weight: 400 !important;
7272
}
7373

74-
/* Standardize font class - use only 'font-nasalization' */
74+
/* Clase estandarizada para la fuente - usar solo 'font-nasalization' */
7575
.font-nasalization {
7676
font-family: 'Nasalization', sans-serif !important;
7777
font-weight: 400 !important;
7878
font-style: normal !important;
7979
letter-spacing: 0.5px !important;
80-
white-space: nowrap !important; /* Keep text in one line */
8180
}
8281

83-
/* Legacy support - convert all instances to Nasalization */
82+
/* Soporte legacy - convertir todas las instancias a Nasalization */
8483
.font-atomic-force,
8584
.font-atomic {
8685
font-family: 'Nasalization', sans-serif !important;
8786
font-weight: 400 !important;
8887
font-style: normal !important;
8988
letter-spacing: 0.5px !important;
90-
white-space: nowrap !important; /* Keep text in one line */
9189
}
9290

9391
/* Alignment correction for sections */

src/index.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@tailwind components;
44
@tailwind utilities;
55

6-
/* Direct font loading - no @import to ensure better loading */
6+
/* NASALIZATION FONT: Carga directa sin @import para mejor rendimiento */
77
@font-face {
88
font-family: 'Nasalization';
99
font-style: normal;
@@ -54,27 +54,30 @@
5454
--sidebar-ring: 48 83% 72%;
5555
}
5656

57-
/* Primary font declarations with !important to override any other styles */
57+
/* IMPORTANTE: Declaraciones de fuente prioritarias con !important */
5858
h1, h2, h3, h4, h5, h6 {
5959
font-family: 'Nasalization', sans-serif !important;
60-
font-weight: 400;
60+
font-weight: 400 !important;
61+
letter-spacing: 0.5px !important;
6162
}
6263

6364
body, p, span, div, a, button {
6465
font-family: 'Exo', system-ui, sans-serif;
6566
}
6667

67-
/* Standard class for Nasalization font */
68+
/* Clase estándar para fuente Nasalization */
6869
.font-nasalization {
6970
font-family: 'Nasalization', sans-serif !important;
7071
font-weight: 400 !important;
72+
letter-spacing: 0.5px !important;
7173
}
7274

73-
/* Convert all atomic-force references to nasalization */
75+
/* Convertir todas las referencias atomic-force/atomic a nasalization */
7476
.font-atomic-force,
7577
.font-atomic {
7678
font-family: 'Nasalization', sans-serif !important;
7779
font-weight: 400 !important;
80+
letter-spacing: 0.5px !important;
7881
}
7982
}
8083

src/main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from 'react';
33
import ReactDOM from 'react-dom/client';
44
import App from './App';
55
import './index.css';
6+
import './global.css'; // Asegurar que global.css se carga explícitamente
67

78
ReactDOM.createRoot(document.getElementById('root')!).render(
89
<React.StrictMode>

src/pages/Academy.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const CourseCard = ({ title, description, icon, level, duration, color }: {
2626
<span className="px-2 py-1 text-xs bg-alien-space-light rounded-full text-alien-green">{duration}</span>
2727
</div>
2828
</div>
29-
<h3 className="text-xl font-semibold mb-2 text-alien-gold font-atomic-force">{title}</h3>
29+
<h3 className="text-xl font-semibold mb-2 text-alien-gold font-nasalization">{title}</h3>
3030
<p className="text-gray-300 text-sm mb-4">{description}</p>
3131
<Button variant="outline" className="w-full border-alien-gold/30 text-alien-gold hover:bg-alien-gold/10">
3232
Explore Course
@@ -95,7 +95,7 @@ const Academy: React.FC = () => {
9595
<div className="max-w-6xl mx-auto">
9696
<div className="text-center mb-16">
9797
<GraduationCap className="h-16 w-16 text-alien-gold mx-auto mb-4" />
98-
<h1 className="text-4xl md:text-5xl font-bold text-alien-gold mb-6 font-atomic-force">Academy</h1>
98+
<h1 className="text-4xl md:text-5xl font-bold text-alien-gold mb-6 font-nasalization">Academy</h1>
9999
<p className="text-xl text-gray-300 max-w-3xl mx-auto font-[Exo]">
100100
Expand your cosmic knowledge and master the principles of decentralized technologies through our immersive learning experiences.
101101
</p>
@@ -105,7 +105,7 @@ const Academy: React.FC = () => {
105105
<div className="mb-16 bg-alien-space-dark/60 rounded-xl overflow-hidden backdrop-blur-md border border-alien-gold/30">
106106
<div className="grid grid-cols-1 md:grid-cols-2">
107107
<div className="p-8 md:p-12">
108-
<h2 className="text-3xl font-bold text-alien-gold mb-4 font-atomic-force">Certification Degree Master's Program</h2>
108+
<h2 className="text-3xl font-bold text-alien-gold mb-4 font-nasalization">Certification Degree Master's Program</h2>
109109
<p className="text-gray-300 mb-6 font-[Exo]">
110110
Become a certified ΔlieπFlΦw $pac€ Explorer & Navigator and unlock exclusive opportunities in our expanding cosmic ecosystem.
111111
</p>
@@ -135,7 +135,7 @@ const Academy: React.FC = () => {
135135

136136
{/* Course Grid */}
137137
<div className="mb-16">
138-
<h2 className="text-2xl font-bold text-alien-gold mb-8 font-atomic-force">Featured Courses</h2>
138+
<h2 className="text-2xl font-bold text-alien-gold mb-8 font-nasalization">Featured Courses</h2>
139139
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
140140
{courses.map((course, index) => (
141141
<CourseCard key={index} {...course} />
@@ -145,7 +145,7 @@ const Academy: React.FC = () => {
145145

146146
{/* CTA Section */}
147147
<div className="text-center bg-alien-space-dark/50 rounded-xl p-8 backdrop-blur-md border border-alien-gold/20">
148-
<h2 className="text-2xl font-bold text-alien-gold mb-4 font-atomic-force">Ready to Expand Your Cosmic Knowledge?</h2>
148+
<h2 className="text-2xl font-bold text-alien-gold mb-4 font-nasalization">Ready to Expand Your Cosmic Knowledge?</h2>
149149
<p className="text-gray-300 mb-6 max-w-2xl mx-auto font-[Exo]">
150150
Join thousands of space navigators on their journey to master the principles of the decentralized multiverse.
151151
</p>

src/pages/Index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Index: React.FC = () => {
2727
<div className="relative z-10">
2828
<Hero />
2929
<div className="container mx-auto text-center px-4 py-8 section-center">
30-
<h2 className="text-4xl md:text-5xl mb-4 text-alien-gold font-atomic-force">₿£€$$</h2>
30+
<h2 className="text-4xl md:text-5xl mb-4 text-alien-gold font-nasalization">₿£€$$</h2>
3131
</div>
3232
<FinancialFreedomSection />
3333
<ExploreSpacesSection />

0 commit comments

Comments
 (0)