Bob AI: Add a dynamic, animated background to the website for visual

This commit is contained in:
kudinDmitriyUp
2026-04-20 09:53:11 +00:00
parent 36c04637eb
commit b7fb8ae000
3 changed files with 34 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ export default function App() {
}, []);
return (
<>
<div className="app-container">
<div id="nav" data-section="nav">
<NavbarCentered
logo="Apex Plumbing"
@@ -284,6 +284,6 @@ export default function App() {
]}
/>
</div>
</>
</div>
);
}

View File

@@ -143,6 +143,26 @@ body {
overscroll-behavior-y: none;
}
.app-container {
position: relative;
isolation: isolate;
}
.app-container::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
background: linear-gradient(
60deg,
var(--background) 0%,
var(--accent) 50%,
var(--background) 100%
);
background-size: 400% 400%;
animation: moveGradient 15s ease infinite;
}
h1,
h2,
h3,

View File

@@ -203,3 +203,15 @@
left: 125%;
}
}
@keyframes moveGradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}