Update version to v0.1.2.a.3 and enhance UI/UX features
- Updated version number in version.txt. - Improved smooth scrolling for anchor links in script.js. - Added Intersection Observer for fade-in animations in script.js. - Enhanced CSS styles for various elements, including buttons, metrics, and backgrounds for better visual appeal and interactivity.
This commit is contained in:
340
styles.css
340
styles.css
@@ -4,12 +4,14 @@
|
||||
--bg: #05060a;
|
||||
--bg-alt: #0e1018;
|
||||
--card: #121422;
|
||||
--card-border: rgba(255, 255, 255, 0.08);
|
||||
--card-border: rgba(255, 255, 255, 0.12);
|
||||
--text: #f5f6fd;
|
||||
--muted: #9aa2c4;
|
||||
--accent: #4dd5ff;
|
||||
--accent-strong: #6d84ff;
|
||||
--accent-glow: rgba(77, 213, 255, 0.4);
|
||||
--shadow: 0 18px 45px rgba(4, 6, 11, 0.6);
|
||||
--shadow-glow: 0 0 30px rgba(77, 213, 255, 0.2);
|
||||
}
|
||||
|
||||
*,
|
||||
@@ -18,15 +20,43 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
background: radial-gradient(circle at top, rgba(77, 213, 255, 0.12), transparent 55%),
|
||||
radial-gradient(circle at 20% 20%, rgba(109, 132, 255, 0.25), transparent 35%),
|
||||
var(--bg);
|
||||
background:
|
||||
radial-gradient(circle at 0% 0%, rgba(77, 213, 255, 0.15), transparent 50%),
|
||||
radial-gradient(circle at 100% 0%, rgba(109, 132, 255, 0.2), transparent 50%),
|
||||
radial-gradient(circle at 50% 100%, rgba(77, 213, 255, 0.08), transparent 60%),
|
||||
var(--bg);
|
||||
background-attachment: fixed;
|
||||
color: var(--text);
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background:
|
||||
radial-gradient(circle at 20% 30%, rgba(77, 213, 255, 0.03), transparent 50%),
|
||||
radial-gradient(circle at 80% 70%, rgba(109, 132, 255, 0.03), transparent 50%);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
body > * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
img {
|
||||
@@ -56,6 +86,27 @@ button:focus-visible {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -50%;
|
||||
right: -20%;
|
||||
width: 600px;
|
||||
height: 600px;
|
||||
background: radial-gradient(circle, rgba(77, 213, 255, 0.1), transparent 70%);
|
||||
border-radius: 50%;
|
||||
filter: blur(60px);
|
||||
pointer-events: none;
|
||||
animation: pulse 8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
|
||||
50% { transform: scale(1.2) translate(-10%, 10%); opacity: 0.8; }
|
||||
}
|
||||
|
||||
.nav {
|
||||
@@ -68,6 +119,12 @@ button:focus-visible {
|
||||
.brand {
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
font-size: 1.25rem;
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
text-shadow: 0 0 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
.nav__links {
|
||||
@@ -79,14 +136,32 @@ button:focus-visible {
|
||||
.nav__links a {
|
||||
color: var(--muted);
|
||||
font-weight: 500;
|
||||
transition: color 0.2s ease;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
.nav__links a::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 0;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, var(--accent), var(--accent-strong));
|
||||
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 0 10px var(--accent-glow);
|
||||
}
|
||||
|
||||
.nav__links a:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.nav__links a:hover::after {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.nav__toggle {
|
||||
display: none;
|
||||
background: none;
|
||||
@@ -119,6 +194,11 @@ h1 {
|
||||
font-size: clamp(2.7rem, 5vw, 4.8rem);
|
||||
margin: 0 0 1rem;
|
||||
line-height: 1.05;
|
||||
background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent-strong) 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
filter: drop-shadow(0 0 20px rgba(77, 213, 255, 0.3));
|
||||
}
|
||||
|
||||
h2 {
|
||||
@@ -149,8 +229,28 @@ h3 {
|
||||
border-radius: 999px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.btn::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
transform: translate(-50%, -50%);
|
||||
transition: width 0.6s, height 0.6s;
|
||||
}
|
||||
|
||||
.btn:hover::before {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.btn:focus-visible {
|
||||
@@ -163,32 +263,51 @@ h3 {
|
||||
}
|
||||
|
||||
.btn.primary {
|
||||
background: linear-gradient(90deg, var(--accent-strong), var(--accent));
|
||||
background: linear-gradient(135deg, var(--accent-strong), var(--accent));
|
||||
color: #05060a;
|
||||
border: none;
|
||||
box-shadow: 0 15px 40px rgba(77, 213, 255, 0.3);
|
||||
box-shadow: 0 15px 40px rgba(77, 213, 255, 0.3), 0 0 20px rgba(77, 213, 255, 0.2);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.btn.primary:hover {
|
||||
transform: translateY(-2px) scale(1.02);
|
||||
box-shadow: 0 20px 50px rgba(77, 213, 255, 0.4), 0 0 30px rgba(77, 213, 255, 0.3);
|
||||
}
|
||||
|
||||
.btn.ghost {
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
border-color: rgba(255, 255, 255, 0.25);
|
||||
color: var(--text);
|
||||
background: transparent;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
backdrop-filter: blur(10px);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 12px 30px rgba(109, 132, 255, 0.25);
|
||||
.btn.ghost:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: rgba(77, 213, 255, 0.5);
|
||||
background: rgba(77, 213, 255, 0.1);
|
||||
box-shadow: 0 10px 30px rgba(77, 213, 255, 0.15);
|
||||
}
|
||||
|
||||
.install-command {
|
||||
display: block;
|
||||
padding: 1rem 1.25rem;
|
||||
border-radius: 0.75rem;
|
||||
background: rgba(18, 20, 34, 0.7);
|
||||
background: rgba(18, 20, 34, 0.8);
|
||||
border: 1px solid var(--card-border);
|
||||
font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
|
||||
font-size: 0.95rem;
|
||||
overflow-x: auto;
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.install-command:hover {
|
||||
border-color: rgba(77, 213, 255, 0.3);
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(77, 213, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.hero__metrics {
|
||||
@@ -201,7 +320,32 @@ h3 {
|
||||
padding: 1.25rem;
|
||||
border-radius: 1rem;
|
||||
border: 1px solid var(--card-border);
|
||||
background: rgba(5, 6, 10, 0.55);
|
||||
background: rgba(5, 6, 10, 0.6);
|
||||
backdrop-filter: blur(10px);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.metric::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(77, 213, 255, 0.1), transparent);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
|
||||
.metric:hover {
|
||||
transform: translateY(-4px);
|
||||
border-color: rgba(77, 213, 255, 0.3);
|
||||
box-shadow: 0 10px 30px rgba(77, 213, 255, 0.15);
|
||||
}
|
||||
|
||||
.metric:hover::before {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
.metric__label {
|
||||
@@ -239,6 +383,40 @@ h3 {
|
||||
background: var(--card);
|
||||
box-shadow: var(--shadow);
|
||||
min-height: 10rem;
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, transparent, var(--accent), transparent);
|
||||
transform: translateX(-100%);
|
||||
transition: transform 0.6s ease;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translateY(-6px);
|
||||
border-color: rgba(77, 213, 255, 0.4);
|
||||
box-shadow: 0 20px 50px rgba(77, 213, 255, 0.2), var(--shadow);
|
||||
}
|
||||
|
||||
.card:hover::before {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
.card h3 {
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.card:hover h3 {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.card p {
|
||||
@@ -262,10 +440,19 @@ h3 {
|
||||
padding: 1.5rem;
|
||||
border-radius: 1rem;
|
||||
border: 1px solid var(--card-border);
|
||||
background: rgba(5, 6, 10, 0.5);
|
||||
background: rgba(5, 6, 10, 0.6);
|
||||
backdrop-filter: blur(10px);
|
||||
counter-increment: install-step;
|
||||
position: relative;
|
||||
padding-left: 4.5rem;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.install-steps li:hover {
|
||||
transform: translateX(8px);
|
||||
border-color: rgba(77, 213, 255, 0.3);
|
||||
background: rgba(5, 6, 10, 0.7);
|
||||
box-shadow: 0 10px 30px rgba(77, 213, 255, 0.1);
|
||||
}
|
||||
|
||||
.install-steps li::before {
|
||||
@@ -281,6 +468,14 @@ h3 {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-weight: 600;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 0 15px rgba(77, 213, 255, 0.3);
|
||||
}
|
||||
|
||||
.install-steps li:hover::before {
|
||||
background: rgba(77, 213, 255, 0.3);
|
||||
box-shadow: 0 0 25px rgba(77, 213, 255, 0.5);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.callout {
|
||||
@@ -289,6 +484,14 @@ h3 {
|
||||
border-radius: 1rem;
|
||||
background: rgba(255, 196, 87, 0.12);
|
||||
border: 1px solid rgba(255, 196, 87, 0.35);
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: 0 8px 32px rgba(255, 196, 87, 0.1);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.callout:hover {
|
||||
border-color: rgba(255, 196, 87, 0.5);
|
||||
box-shadow: 0 8px 32px rgba(255, 196, 87, 0.2);
|
||||
}
|
||||
|
||||
.showcase__grid {
|
||||
@@ -303,7 +506,33 @@ figure {
|
||||
border-radius: 1rem;
|
||||
padding: 1rem;
|
||||
background: rgba(9, 10, 18, 0.8);
|
||||
backdrop-filter: blur(10px);
|
||||
min-height: 15rem;
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
figure::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -50%;
|
||||
left: -50%;
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
background: radial-gradient(circle, rgba(77, 213, 255, 0.1), transparent 70%);
|
||||
opacity: 0;
|
||||
transition: opacity 0.4s ease;
|
||||
}
|
||||
|
||||
figure:hover {
|
||||
transform: translateY(-8px) scale(1.02);
|
||||
border-color: rgba(77, 213, 255, 0.4);
|
||||
box-shadow: 0 20px 50px rgba(77, 213, 255, 0.2);
|
||||
}
|
||||
|
||||
figure:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
@@ -313,22 +542,55 @@ figcaption {
|
||||
}
|
||||
|
||||
pre {
|
||||
background: rgba(5, 6, 10, 0.65);
|
||||
background: rgba(5, 6, 10, 0.8);
|
||||
padding: 1rem;
|
||||
border-radius: 0.75rem;
|
||||
overflow: auto;
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.3;
|
||||
border: 1px solid rgba(77, 213, 255, 0.1);
|
||||
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
|
||||
position: relative;
|
||||
backdrop-filter: blur(5px);
|
||||
}
|
||||
|
||||
pre::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, rgba(77, 213, 255, 0.3), transparent);
|
||||
}
|
||||
|
||||
.statusbar-demo {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background: linear-gradient(90deg, var(--accent-strong), var(--accent));
|
||||
background: linear-gradient(135deg, var(--accent-strong), var(--accent));
|
||||
color: #05060a;
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: 0.5rem;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 4px 20px rgba(77, 213, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.statusbar-demo::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
||||
animation: shimmer 3s infinite;
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% { left: -100%; }
|
||||
100% { left: 100%; }
|
||||
}
|
||||
|
||||
.community__actions {
|
||||
@@ -340,7 +602,7 @@ pre {
|
||||
|
||||
.footer {
|
||||
padding: 2rem clamp(1.5rem, 5vw, 5rem);
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
@@ -348,6 +610,28 @@ pre {
|
||||
gap: 1rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--muted);
|
||||
background: rgba(5, 6, 10, 0.5);
|
||||
backdrop-filter: blur(10px);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.footer::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, rgba(77, 213, 255, 0.3), transparent);
|
||||
}
|
||||
|
||||
.footer a {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.footer a:hover {
|
||||
color: var(--accent);
|
||||
text-shadow: 0 0 10px var(--accent-glow);
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
@@ -365,9 +649,27 @@ pre {
|
||||
flex-direction: column;
|
||||
padding: 1rem 0 0;
|
||||
gap: 0.75rem;
|
||||
background: rgba(5, 6, 10, 0.95);
|
||||
backdrop-filter: blur(20px);
|
||||
border-radius: 0.5rem;
|
||||
padding: 1rem;
|
||||
margin-top: 1rem;
|
||||
border: 1px solid var(--card-border);
|
||||
}
|
||||
|
||||
.nav__links.is-open {
|
||||
display: flex;
|
||||
animation: slideDown 0.3s ease;
|
||||
}
|
||||
|
||||
@keyframes slideDown {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user