feat: Add digital signage animation to the intro section block.
This commit is contained in:
@@ -3272,7 +3272,8 @@ p:last-child { margin-bottom: 0; }
|
||||
color: #fff;
|
||||
}
|
||||
/* When an image is set, remove the gradient box styling */
|
||||
.about-intro-visual.has-img {
|
||||
.about-intro-visual.has-img,
|
||||
.about-intro-visual.has-cloud-anim {
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
aspect-ratio: unset;
|
||||
@@ -3284,6 +3285,119 @@ p:last-child { margin-bottom: 0; }
|
||||
.about-intro-visual { max-width: 280px; margin-inline: auto; }
|
||||
}
|
||||
|
||||
/* ── Digital Signage Animation ────────────────────────────── */
|
||||
.ds-anim-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem 0;
|
||||
position: relative;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .ds-anim-container {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.ds-tv, .ds-cloud {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.ds-tv {
|
||||
font-size: 5rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ds-tv-screen {
|
||||
position: absolute;
|
||||
top: 15%;
|
||||
left: 10%;
|
||||
width: 80%;
|
||||
height: 60%;
|
||||
background: rgba(var(--color-primary-rgb), 0.2);
|
||||
border-radius: 4px;
|
||||
animation: ds-screen-pulse 3s infinite alternate;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .ds-tv-screen {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
@keyframes ds-screen-pulse {
|
||||
0% { opacity: 0.4; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
||||
.ds-cloud {
|
||||
font-size: 4.5rem;
|
||||
animation: ds-float 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes ds-float {
|
||||
0% { transform: translateY(0); }
|
||||
50% { transform: translateY(-8px); }
|
||||
100% { transform: translateY(0); }
|
||||
}
|
||||
|
||||
.ds-line {
|
||||
flex-grow: 1;
|
||||
height: 2px;
|
||||
background: rgba(var(--color-primary-rgb), 0.2);
|
||||
margin: 0 1.5rem;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .ds-line {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.ds-packet {
|
||||
width: 12px;
|
||||
height: 4px;
|
||||
background: var(--color-primary);
|
||||
border-radius: 4px;
|
||||
position: absolute;
|
||||
left: -20px;
|
||||
box-shadow: 0 0 8px var(--color-primary);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .ds-packet {
|
||||
background: #fff;
|
||||
box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
.ds-packet-1 { animation: ds-travel 2s linear infinite; }
|
||||
.ds-packet-2 { animation: ds-travel 2s linear infinite 0.6s; }
|
||||
.ds-packet-3 { animation: ds-travel 2s linear infinite 1.2s; }
|
||||
|
||||
@keyframes ds-travel {
|
||||
0% { left: -20px; opacity: 0; }
|
||||
10% { opacity: 1; }
|
||||
90% { opacity: 1; }
|
||||
100% { left: 100%; opacity: 0; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.ds-tv-screen, .ds-cloud, .ds-packet {
|
||||
animation: none;
|
||||
}
|
||||
.ds-packet-1 { left: 20%; opacity: 1; }
|
||||
.ds-packet-2 { left: 50%; opacity: 1; }
|
||||
.ds-packet-3 { left: 80%; opacity: 1; }
|
||||
}
|
||||
|
||||
|
||||
/* ── 13. Contact ────────────────────────────────────────────── */
|
||||
.contact-layout {
|
||||
display: grid;
|
||||
|
||||
Reference in New Issue
Block a user