Skip to content

Commit 724bcae

Browse files
committed
feat: add terminal glitch and background breathing animations
1 parent 0f2b7b7 commit 724bcae

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

site/src/layouts/BaseLayout.astro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,12 @@ const repoUrl = "https://github.com/ALEVOLDON/Modular-Genesis";
845845
word-wrap: break-word;
846846
}
847847

848+
@keyframes terminalGlitch {
849+
0%, 96%, 100% { transform: translate(0); filter: none; }
850+
97% { transform: translate(-1px, 1px); filter: drop-shadow(1px 0 0 rgba(255, 95, 86, 0.8)) drop-shadow(-1px 0 0 rgba(102, 247, 255, 0.8)); }
851+
98.5% { transform: translate(1px, -1px); filter: drop-shadow(-1px 0 0 rgba(255, 95, 86, 0.8)) drop-shadow(1px 0 0 rgba(102, 247, 255, 0.8)); }
852+
}
853+
848854
.terminal-window {
849855
margin-top: 18px;
850856
border-radius: 12px;
@@ -858,6 +864,7 @@ const repoUrl = "https://github.com/ALEVOLDON/Modular-Genesis";
858864
backdrop-filter: blur(8px);
859865
max-width: 100%;
860866
box-sizing: border-box;
867+
animation: terminalGlitch 7s infinite linear;
861868
}
862869

863870
.terminal-header {
@@ -1493,6 +1500,16 @@ const repoUrl = "https://github.com/ALEVOLDON/Modular-Genesis";
14931500
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(102, 247, 255, 0.03);
14941501
}
14951502

1503+
@keyframes breatheBg {
1504+
0% { transform: scale(1); }
1505+
100% { transform: scale(1.04); }
1506+
}
1507+
1508+
.bg-breathe {
1509+
animation: breatheBg 14s ease-in-out infinite alternate;
1510+
will-change: transform;
1511+
}
1512+
14961513
@media (prefers-reduced-motion: reduce) {
14971514
.js-enabled .feature-card,
14981515
.js-enabled .mini-card,

site/src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const toolCards = [
7272
<section class="band band-hero">
7373
<div class="band-shell">
7474
<div style="position: relative; padding: clamp(16px, 4vw, 48px); border-radius: clamp(16px, 4vw, 32px); border: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; box-shadow: var(--shadow); box-sizing: border-box;">
75-
<div style={`position: absolute; inset: 0; background-image: url(${withBase("/images/hero_modular_cables.png")}); background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0;`}></div>
75+
<div class="bg-breathe" style={`position: absolute; inset: 0; background-image: url(${withBase("/images/hero_modular_cables.png")}); background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0;`}></div>
7676
<div style="position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,13,20,0.5) 0%, rgba(4,10,16,0.95) 100%); z-index: 1;"></div>
7777
<div class="display-grid" style="position: relative; z-index: 2;">
7878
<div>
@@ -186,7 +186,7 @@ const toolCards = [
186186
<section class="band band-alt">
187187
<div class="band-shell">
188188
<div style="position: relative; padding: clamp(16px, 4vw, 48px); border-radius: clamp(16px, 4vw, 32px); border: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; box-shadow: var(--shadow); box-sizing: border-box;">
189-
<div style={`position: absolute; inset: 0; background-image: url(${withBase("/images/generative_abstract_mesh.png")}); background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0;`}></div>
189+
<div class="bg-breathe" style={`position: absolute; inset: 0; background-image: url(${withBase("/images/generative_abstract_mesh.png")}); background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0;`}></div>
190190
<div style="position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,10,16,0.95) 0%, rgba(6,13,20,0.4) 100%); z-index: 1;"></div>
191191
<div class="split-hero" style="position: relative; z-index: 2;">
192192
<div class="feature-card" style="background: rgba(3, 9, 15, 0.65); backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, 0.08);">

0 commit comments

Comments
 (0)