Skip to content

Commit d3c8928

Browse files
Refactor: Implement the plan
This commit implements the changes requested in the prompt.
1 parent 750ac11 commit d3c8928

File tree

5 files changed

+24
-22
lines changed

5 files changed

+24
-22
lines changed

index.html

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

1111
<!-- Preload Fonts for Better Performance -->
12-
<link rel="preload" href="https://fonts.gstatic.com/s/atomicage/v27/f0Xz0eug6sdmRFkYZZGL58Ht9a8.woff2" as="font" type="font/woff2" crossorigin />
12+
<link rel="preload" href="https://fonts.gstatic.com/s/exo/v20/4UaZrEtFpBI4f1ZSIK9d4LjJ4lM2CwNsOl4p5Is.woff2" as="font" type="font/woff2" crossorigin />
1313

1414
<!-- Font Stylesheets -->
15-
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Atomic+Age&display=swap" />
1615
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700&display=swap" />
16+
<link rel="stylesheet" href="https://fonts.cdnfonts.com/css/nasalization" />
1717

1818
<!-- Open Graph Meta Tags -->
1919
<meta property="og:title" content="AlienFlowSpace DAO | Cosmic Decentralized Governance" />

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">
15+
<span className="alien-logo-text 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/components/Header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Header = () => {
2222
return (
2323
<header
2424
className={`fixed top-0 left-0 w-full z-50 transition-all duration-300 ${
25-
isScrolled ? "py-1 bg-transparent shadow-md backdrop-blur-md" : "py-2 bg-transparent backdrop-blur-sm"
25+
isScrolled ? "py-1 bg-alien-space-dark bg-opacity-80 shadow-md backdrop-blur-md" : "py-2 bg-alien-space-dark bg-opacity-50 backdrop-blur-sm"
2626
}`}
2727
>
2828
<div className="container mx-auto px-4 flex justify-between items-center relative">

src/global.css

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,51 +51,52 @@ main {
5151
text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
5252
}
5353

54-
/* Add card border effect */
54+
/* Card border effect - improved to avoid unwanted backgrounds */
5555
.card-border {
5656
border: 1px solid rgba(255, 215, 0, 0.2);
5757
border-radius: 10px;
5858
background-color: rgba(17, 17, 25, 0.6);
5959
backdrop-filter: blur(5px);
6060
transition: all 0.3s ease;
61+
position: relative;
62+
z-index: 1;
6163
}
6264

6365
.card-border:hover {
6466
border-color: rgba(255, 215, 0, 0.4);
6567
box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
6668
}
6769

68-
/* Force Atomic Age font to appear correctly */
70+
/* Nasalization font configuration */
6971
@font-face {
70-
font-family: 'Atomic Age';
72+
font-family: 'Nasalization';
7173
font-style: normal;
7274
font-weight: 400;
7375
font-display: swap;
74-
src: url(https://fonts.gstatic.com/s/atomicage/v27/f0Xz0eug6sdmRFkYZZGL58Ht9a8.woff2) format('woff2');
75-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
76+
src: url('https://fonts.cdnfonts.com/css/nasalization') format('woff2');
7677
}
7778

7879
h1, h2, h3, h4, h5, h6, .font-atomic {
79-
font-family: 'Atomic Age', cursive !important;
80+
font-family: 'Nasalization', sans-serif !important;
8081
letter-spacing: 0.5px;
8182
}
8283

8384
.font-atomic-force {
84-
font-family: 'Atomic Age', cursive !important;
85+
font-family: 'Nasalization', sans-serif !important;
8586
font-weight: 400 !important;
8687
font-style: normal !important;
8788
letter-spacing: 0.5px !important;
88-
white-space: nowrap !important; /* Evitar que se rompa en líneas */
89+
white-space: nowrap !important; /* Keep text in one line */
8990
}
9091

9192
/* Alien logo text specific styling */
9293
.alien-logo-text {
93-
font-family: 'Atomic Age', cursive !important;
94+
font-family: 'Nasalization', sans-serif !important;
9495
letter-spacing: 0.5px !important;
9596
font-weight: 400 !important;
9697
font-style: normal !important;
9798
font-display: block !important;
98-
white-space: nowrap !important; /* Evitar que se rompa en líneas */
99+
white-space: nowrap !important; /* Keep text in one line */
99100
}
100101

101102
/* Alignment correction for sections */

src/index.css

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
@import url('https://fonts.googleapis.com/css2?family=Atomic+Age&display=swap');
32
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700&display=swap');
3+
@import url('https://fonts.cdnfonts.com/css/nasalization');
44

55
@tailwind base;
66
@tailwind components;
@@ -49,7 +49,7 @@
4949
}
5050

5151
h1, h2, h3, h4, h5, h6 {
52-
font-family: 'Atomic Age', system-ui, sans-serif !important;
52+
font-family: 'Nasalization', sans-serif !important;
5353
}
5454

5555
body, p, span, div, a, button {
@@ -58,15 +58,15 @@
5858

5959
/* Force font loading */
6060
@font-face {
61-
font-family: 'Atomic Age';
61+
font-family: 'Nasalization';
6262
font-style: normal;
6363
font-weight: 400;
6464
font-display: swap;
65-
src: url(https://fonts.gstatic.com/s/atomicage/v27/f0Xz0eug6sdmRFkYZZGL58Ht9a8.woff2) format('woff2');
65+
src: url('https://fonts.cdnfonts.com/css/nasalization') format('woff2');
6666
}
6767

6868
.font-atomic-force {
69-
font-family: 'Atomic Age', cursive !important;
69+
font-family: 'Nasalization', sans-serif !important;
7070
font-weight: 400 !important;
7171
}
7272
}
@@ -111,10 +111,11 @@
111111
filter: drop-shadow(0 0 10px rgba(240, 216, 130, 0.4));
112112
}
113113

114+
/* Improved card-border without unwanted backgrounds */
114115
.card-border {
115116
position: relative;
116117
border-radius: theme('borderRadius.lg');
117-
background: theme('backgroundImage.card-gradient');
118+
background: rgba(17, 17, 25, 0.6);
118119
backdrop-filter: blur(8px);
119120
}
120121

@@ -212,9 +213,9 @@
212213
}
213214
}
214215

215-
/* Correcciones adicionales */
216+
/* Additional corrections */
216217
.font-atomic {
217-
font-family: 'Atomic Age', system-ui, sans-serif !important;
218+
font-family: 'Nasalization', sans-serif !important;
218219
}
219220

220221
.section-center {

0 commit comments

Comments
 (0)