Upload styles.css
Browse files- styles.css +23 -26
styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
/* 1.
|
| 2 |
@font-face {
|
| 3 |
font-family: "Gagalin";
|
| 4 |
src: url("./media/gagalin.otf") format("opentype");
|
|
@@ -9,29 +9,27 @@
|
|
| 9 |
--bg: #0f0f0f;
|
| 10 |
--surface: rgba(255, 255, 255, 0.05);
|
| 11 |
--border: rgba(255, 255, 255, 0.08);
|
| 12 |
-
|
| 13 |
-
/* golden-copper gradient */
|
| 14 |
--accent: linear-gradient(135deg, #ffb347 0%, #ffcc33 50%, #d2691e 100%);
|
| 15 |
--accent-solid: #ffb347;
|
| 16 |
-
|
| 17 |
--text: #ffffff;
|
| 18 |
--text2: #d2b48c;
|
| 19 |
--radius: 16px;
|
| 20 |
-
--font: "Inter", sans-serif;
|
| 21 |
-
--mono: "JetBrains Mono", monospace;
|
| 22 |
}
|
| 23 |
|
| 24 |
-
*
|
|
|
|
|
|
|
|
|
|
| 25 |
html { scroll-behavior: smooth; }
|
| 26 |
body {
|
| 27 |
-
font-family:
|
| 28 |
background: var(--bg);
|
| 29 |
color: var(--text);
|
| 30 |
-
line-height: 1.
|
| 31 |
overflow-x: hidden;
|
| 32 |
}
|
| 33 |
|
| 34 |
-
/*
|
| 35 |
.liquid-bg {
|
| 36 |
position: fixed; inset: 0; z-index: -1; overflow: hidden;
|
| 37 |
}
|
|
@@ -48,19 +46,19 @@ body {
|
|
| 48 |
100% { transform: translate(0, 0) scale(1); }
|
| 49 |
}
|
| 50 |
|
| 51 |
-
/*
|
| 52 |
.header {
|
| 53 |
position: sticky; top: 0; z-index: 10;
|
| 54 |
display: flex; align-items: center; justify-content: space-between;
|
| 55 |
padding: 1rem 2rem; background: var(--surface); backdrop-filter: blur(20px);
|
| 56 |
border-bottom: 1px solid var(--border);
|
| 57 |
}
|
| 58 |
-
.logo { font-
|
| 59 |
nav { display: flex; gap: 1.2rem; }
|
| 60 |
nav a { color: var(--text2); font-weight: 500; text-decoration: none; transition: color .2s; }
|
| 61 |
nav a:hover { color: var(--accent-solid); }
|
| 62 |
|
| 63 |
-
/*
|
| 64 |
.hero {
|
| 65 |
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
| 66 |
text-align: center; min-height: 50vh; padding: 4rem 1rem;
|
|
@@ -72,13 +70,12 @@ nav a:hover { color: var(--accent-solid); }
|
|
| 72 |
.hero-sub { margin: .75rem 0 2rem; color: var(--text2); }
|
| 73 |
.cta {
|
| 74 |
background: var(--accent); color: #000; border: none;
|
| 75 |
-
padding: .9rem 2rem; border-radius: 50px; font-
|
| 76 |
cursor: pointer; transition: transform .25s, box-shadow .25s;
|
| 77 |
-
display: inline-flex; align-items: center; gap: .4rem;
|
| 78 |
}
|
| 79 |
.cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 179, 71, 0.35); }
|
| 80 |
|
| 81 |
-
/*
|
| 82 |
.stats {
|
| 83 |
display: flex; justify-content: center; gap: 2.5rem; padding: 2rem 1rem; flex-wrap: wrap;
|
| 84 |
}
|
|
@@ -87,7 +84,8 @@ nav a:hover { color: var(--accent-solid); }
|
|
| 87 |
padding: 1.2rem 2rem; text-align: center; min-width: 150px; backdrop-filter: blur(20px);
|
| 88 |
transition: transform .25s, box-shadow .25s;
|
| 89 |
}
|
| 90 |
-
.stat-card:hover,
|
|
|
|
| 91 |
.stat-card i {
|
| 92 |
display: block; font-size: 1.5rem;
|
| 93 |
background: var(--accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
|
@@ -96,7 +94,7 @@ nav a:hover { color: var(--accent-solid); }
|
|
| 96 |
.stat-card span { font-size: 1.4rem; font-weight: 700; }
|
| 97 |
.stat-card small { color: var(--text2); }
|
| 98 |
|
| 99 |
-
/*
|
| 100 |
.api-section { padding: 3rem 1rem; max-width: 1000px; margin: auto; }
|
| 101 |
.controls { margin-bottom: 2rem; }
|
| 102 |
#search {
|
|
@@ -120,7 +118,6 @@ nav a:hover { color: var(--accent-solid); }
|
|
| 120 |
.card {
|
| 121 |
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
|
| 122 |
padding: 1.5rem; transition: transform .25s, box-shadow .25s; cursor: pointer;
|
| 123 |
-
position: relative;
|
| 124 |
}
|
| 125 |
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(255, 179, 71, 0.4); }
|
| 126 |
.card h4 { margin-bottom: .5rem; font-size: 1.1rem; }
|
|
@@ -143,7 +140,7 @@ nav a:hover { color: var(--accent-solid); }
|
|
| 143 |
}
|
| 144 |
.load-more:hover { background: var(--accent); color: #000; }
|
| 145 |
|
| 146 |
-
/*
|
| 147 |
.docs {
|
| 148 |
background: var(--surface); margin: 2rem 0; padding: 3rem 1rem;
|
| 149 |
text-align: center;
|
|
@@ -156,16 +153,16 @@ nav a:hover { color: var(--accent-solid); }
|
|
| 156 |
.step-icon {
|
| 157 |
width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%;
|
| 158 |
background: var(--accent); display: grid; place-items: center;
|
| 159 |
-
font-family: "Gagalin"
|
| 160 |
}
|
|
|
|
| 161 |
.step-icon.icon-1::before { content: "1"; }
|
| 162 |
.step-icon.icon-2::before { content: "2"; }
|
| 163 |
.step-icon.icon-3::before { content: "3"; }
|
| 164 |
-
|
| 165 |
article h3 { font-size: 1.1rem; margin-bottom: .5rem; }
|
| 166 |
article p { color: var(--text2); }
|
| 167 |
|
| 168 |
-
/*
|
| 169 |
footer {
|
| 170 |
text-align: center; padding: 2rem 1rem; color: var(--text2);
|
| 171 |
}
|
|
@@ -173,7 +170,7 @@ footer {
|
|
| 173 |
.social a { color: var(--text2); font-size: 1.3rem; transition: color .2s; }
|
| 174 |
.social a:hover { color: var(--accent-solid); }
|
| 175 |
|
| 176 |
-
/*
|
| 177 |
.modal {
|
| 178 |
position: fixed; inset: 0; z-index: 100;
|
| 179 |
display: grid; place-items: center; padding: 1rem;
|
|
@@ -196,7 +193,7 @@ footer {
|
|
| 196 |
margin-top: 1rem; overflow-x: auto;
|
| 197 |
}
|
| 198 |
|
| 199 |
-
/*
|
| 200 |
.btn-copy {
|
| 201 |
background: var(--accent); color: #000; border: none;
|
| 202 |
padding: .5rem 1rem; border-radius: 50px; font-size: .85rem;
|
|
@@ -208,7 +205,7 @@ footer {
|
|
| 208 |
}
|
| 209 |
.btn-copy:hover { opacity: .9; }
|
| 210 |
|
| 211 |
-
/*
|
| 212 |
@media (max-width: 600px) {
|
| 213 |
.header { padding: 1rem; }
|
| 214 |
nav { display: none; }
|
|
|
|
| 1 |
+
/* 1. Custom font – make it usable everywhere */
|
| 2 |
@font-face {
|
| 3 |
font-family: "Gagalin";
|
| 4 |
src: url("./media/gagalin.otf") format("opentype");
|
|
|
|
| 9 |
--bg: #0f0f0f;
|
| 10 |
--surface: rgba(255, 255, 255, 0.05);
|
| 11 |
--border: rgba(255, 255, 255, 0.08);
|
|
|
|
|
|
|
| 12 |
--accent: linear-gradient(135deg, #ffb347 0%, #ffcc33 50%, #d2691e 100%);
|
| 13 |
--accent-solid: #ffb347;
|
|
|
|
| 14 |
--text: #ffffff;
|
| 15 |
--text2: #d2b48c;
|
| 16 |
--radius: 16px;
|
|
|
|
|
|
|
| 17 |
}
|
| 18 |
|
| 19 |
+
/* 2. Apply Gagalin globally */
|
| 20 |
+
* {
|
| 21 |
+
margin: 0; padding: 0; box-sizing: border-box;
|
| 22 |
+
}
|
| 23 |
html { scroll-behavior: smooth; }
|
| 24 |
body {
|
| 25 |
+
font-family: "Gagalin", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
|
| 26 |
background: var(--bg);
|
| 27 |
color: var(--text);
|
| 28 |
+
line-height: 1.5;
|
| 29 |
overflow-x: hidden;
|
| 30 |
}
|
| 31 |
|
| 32 |
+
/* 3. Liquid BG */
|
| 33 |
.liquid-bg {
|
| 34 |
position: fixed; inset: 0; z-index: -1; overflow: hidden;
|
| 35 |
}
|
|
|
|
| 46 |
100% { transform: translate(0, 0) scale(1); }
|
| 47 |
}
|
| 48 |
|
| 49 |
+
/* 4. Header */
|
| 50 |
.header {
|
| 51 |
position: sticky; top: 0; z-index: 10;
|
| 52 |
display: flex; align-items: center; justify-content: space-between;
|
| 53 |
padding: 1rem 2rem; background: var(--surface); backdrop-filter: blur(20px);
|
| 54 |
border-bottom: 1px solid var(--border);
|
| 55 |
}
|
| 56 |
+
.logo { font-family: "Gagalin"; font-size: 1.4rem; display: flex; align-items: center; gap: .5rem; color: var(--accent-solid); }
|
| 57 |
nav { display: flex; gap: 1.2rem; }
|
| 58 |
nav a { color: var(--text2); font-weight: 500; text-decoration: none; transition: color .2s; }
|
| 59 |
nav a:hover { color: var(--accent-solid); }
|
| 60 |
|
| 61 |
+
/* 5. Hero */
|
| 62 |
.hero {
|
| 63 |
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
| 64 |
text-align: center; min-height: 50vh; padding: 4rem 1rem;
|
|
|
|
| 70 |
.hero-sub { margin: .75rem 0 2rem; color: var(--text2); }
|
| 71 |
.cta {
|
| 72 |
background: var(--accent); color: #000; border: none;
|
| 73 |
+
padding: .9rem 2.2rem; border-radius: 50px; font-family: "Gagalin"; font-size: 1rem;
|
| 74 |
cursor: pointer; transition: transform .25s, box-shadow .25s;
|
|
|
|
| 75 |
}
|
| 76 |
.cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 179, 71, 0.35); }
|
| 77 |
|
| 78 |
+
/* 6. Stats */
|
| 79 |
.stats {
|
| 80 |
display: flex; justify-content: center; gap: 2.5rem; padding: 2rem 1rem; flex-wrap: wrap;
|
| 81 |
}
|
|
|
|
| 84 |
padding: 1.2rem 2rem; text-align: center; min-width: 150px; backdrop-filter: blur(20px);
|
| 85 |
transition: transform .25s, box-shadow .25s;
|
| 86 |
}
|
| 87 |
+
.stat-card:hover,
|
| 88 |
+
.stat-card:active { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(255, 179, 71, 0.35); }
|
| 89 |
.stat-card i {
|
| 90 |
display: block; font-size: 1.5rem;
|
| 91 |
background: var(--accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
|
|
|
| 94 |
.stat-card span { font-size: 1.4rem; font-weight: 700; }
|
| 95 |
.stat-card small { color: var(--text2); }
|
| 96 |
|
| 97 |
+
/* 7. API Section */
|
| 98 |
.api-section { padding: 3rem 1rem; max-width: 1000px; margin: auto; }
|
| 99 |
.controls { margin-bottom: 2rem; }
|
| 100 |
#search {
|
|
|
|
| 118 |
.card {
|
| 119 |
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
|
| 120 |
padding: 1.5rem; transition: transform .25s, box-shadow .25s; cursor: pointer;
|
|
|
|
| 121 |
}
|
| 122 |
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(255, 179, 71, 0.4); }
|
| 123 |
.card h4 { margin-bottom: .5rem; font-size: 1.1rem; }
|
|
|
|
| 140 |
}
|
| 141 |
.load-more:hover { background: var(--accent); color: #000; }
|
| 142 |
|
| 143 |
+
/* 8. Docs */
|
| 144 |
.docs {
|
| 145 |
background: var(--surface); margin: 2rem 0; padding: 3rem 1rem;
|
| 146 |
text-align: center;
|
|
|
|
| 153 |
.step-icon {
|
| 154 |
width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%;
|
| 155 |
background: var(--accent); display: grid; place-items: center;
|
| 156 |
+
font-family: "Gagalin"; font-size: 2.2rem; color: #000;
|
| 157 |
}
|
| 158 |
+
.step-icon::before { content: attr(class); }
|
| 159 |
.step-icon.icon-1::before { content: "1"; }
|
| 160 |
.step-icon.icon-2::before { content: "2"; }
|
| 161 |
.step-icon.icon-3::before { content: "3"; }
|
|
|
|
| 162 |
article h3 { font-size: 1.1rem; margin-bottom: .5rem; }
|
| 163 |
article p { color: var(--text2); }
|
| 164 |
|
| 165 |
+
/* 9. Footer */
|
| 166 |
footer {
|
| 167 |
text-align: center; padding: 2rem 1rem; color: var(--text2);
|
| 168 |
}
|
|
|
|
| 170 |
.social a { color: var(--text2); font-size: 1.3rem; transition: color .2s; }
|
| 171 |
.social a:hover { color: var(--accent-solid); }
|
| 172 |
|
| 173 |
+
/* 10. Modal */
|
| 174 |
.modal {
|
| 175 |
position: fixed; inset: 0; z-index: 100;
|
| 176 |
display: grid; place-items: center; padding: 1rem;
|
|
|
|
| 193 |
margin-top: 1rem; overflow-x: auto;
|
| 194 |
}
|
| 195 |
|
| 196 |
+
/* 11. Modal Buttons (tappable) */
|
| 197 |
.btn-copy {
|
| 198 |
background: var(--accent); color: #000; border: none;
|
| 199 |
padding: .5rem 1rem; border-radius: 50px; font-size: .85rem;
|
|
|
|
| 205 |
}
|
| 206 |
.btn-copy:hover { opacity: .9; }
|
| 207 |
|
| 208 |
+
/* 12. Responsive */
|
| 209 |
@media (max-width: 600px) {
|
| 210 |
.header { padding: 1rem; }
|
| 211 |
nav { display: none; }
|