Skip to content

Commit fff04f5

Browse files
Fix: Apply Nasalization font to all titles
Ensure the Nasalization font is correctly applied to all titles across the application, including the logo, menu, and all page components.
1 parent 438f991 commit fff04f5

File tree

6 files changed

+27
-10
lines changed

6 files changed

+27
-10
lines changed

index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
<!-- Preload and Direct Load Nasalization Font -->
1212
<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 />
1314
<link href="https://fonts.cdnfonts.com/css/nasalization" rel="stylesheet">
1415

1516
<!-- Font Stylesheets -->
@@ -31,6 +32,21 @@
3132

3233
<!-- Favicon -->
3334
<link rel="icon" href="/lovable-uploads/ALogo.png" type="image/x-icon" />
35+
36+
<!-- Inline font CSS to ensure the Nasalization font is loaded properly -->
37+
<style>
38+
@font-face {
39+
font-family: 'Nasalization';
40+
font-style: normal;
41+
font-weight: normal;
42+
font-display: swap;
43+
src: url('https://fonts.cdnfonts.com/s/35587/nasalization-rg.ttf') format('truetype');
44+
}
45+
46+
.font-atomic-force, .alien-logo-text, h1, h2, h3, h4, h5, h6 {
47+
font-family: 'Nasalization', sans-serif !important;
48+
}
49+
</style>
3450
</head>
3551

3652
<body>

src/components/Header/ConnectButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const ConnectButton = () => {
1010
alt="Wallet"
1111
className="h-5 w-5 sm:h-6 sm:w-6 rounded-full"
1212
/>
13-
<span className="alien-logo-text">Connect Portal</span>
13+
<span className="font-atomic-force">Connect Portal</span>
1414
</Button>
1515
);
1616
};

src/components/Header/DesktopNav.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ const DesktopNav = () => {
1414
return (
1515
<nav className="hidden md:flex items-center gap-6">
1616
<div className="hidden md:flex space-x-4">
17-
<Link to="/" className="text-alien-gold hover:text-alien-green px-2 py-2 alien-logo-text">
17+
<Link to="/" className="text-alien-gold hover:text-alien-green px-2 py-2 font-atomic-force">
1818
Home
1919
</Link>
20-
<Link to="/about" className="text-alien-gold hover:text-alien-green px-2 py-2 alien-logo-text">
20+
<Link to="/about" className="text-alien-gold hover:text-alien-green px-2 py-2 font-atomic-force">
2121
About
2222
</Link>
23-
<Link to="/alien-trip" className="text-alien-gold hover:text-alien-green px-2 py-2 alien-logo-text">
23+
<Link to="/alien-trip" className="text-alien-gold hover:text-alien-green px-2 py-2 font-atomic-force">
2424
AlienTrip
2525
</Link>
26-
<Link to="/contact" className="text-alien-gold hover:text-alien-green px-2 py-2 alien-logo-text">
26+
<Link to="/contact" className="text-alien-gold hover:text-alien-green px-2 py-2 font-atomic-force">
2727
Contact
2828
</Link>
2929

@@ -32,9 +32,9 @@ const DesktopNav = () => {
3232
<DropdownMenuTrigger asChild>
3333
<Button
3434
variant="ghost"
35-
className="text-alien-gold hover:text-alien-green bg-transparent hover:bg-alien-space-light/30 px-2 py-2 rounded flex items-center group alien-logo-text"
35+
className="text-alien-gold hover:text-alien-green bg-transparent hover:bg-alien-space-light/30 px-2 py-2 rounded flex items-center group font-atomic-force"
3636
>
37-
<span className="alien-logo-text">Explore Spaces</span>
37+
<span className="font-atomic-force">Explore Spaces</span>
3838
<ChevronDown
3939
className="ml-2 h-4 w-4 transform transition-transform duration-300 group-data-[state=open]:rotate-180 group-hover:text-alien-green"
4040
/>

src/components/Header/Logo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Logo = () => {
1212
alt="AlienFlowSpaceDAO Logo"
1313
className="h-9"
1414
/>
15-
<span className="alien-logo-text text-base sm:text-lg md:text-xl overflow-hidden text-ellipsis">
15+
<span className="font-atomic-force text-base sm:text-lg md:text-xl overflow-hidden text-ellipsis">
1616
<span className="text-alien-green">Δlieπ</span>
1717
<span className="text-alien-gold">FlΦw</span>
1818
<span className="text-alien-green"> $pac€</span>

src/global.css

Lines changed: 1 addition & 1 deletion
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 */
58+
/* Nasalization font configuration - corrected path and format */
5959
@font-face {
6060
font-family: 'Nasalization';
6161
font-style: normal;

src/index.css

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

@@ -55,7 +56,7 @@
5556
font-family: 'Exo', system-ui, sans-serif;
5657
}
5758

58-
/* Ensure Nasalization font is loaded with direct source */
59+
/* Direct font-face declaration to ensure Nasalization is loaded */
5960
@font-face {
6061
font-family: 'Nasalization';
6162
font-style: normal;

0 commit comments

Comments
 (0)