refactor move home / into vue components (#3498)

This commit is contained in:
dni ⚡
2025-11-10 14:48:27 +01:00
committed by GitHub
parent c9270bbf7f
commit bd50a3c546
16 changed files with 491 additions and 740 deletions
+1
View File
@@ -1,6 +1,7 @@
@import 'themes';
@import 'borders';
@import 'background';
@import 'home';
[v-cloak] {
display: none;
+60
View File
@@ -0,0 +1,60 @@
:root {
--size: 100px;
--gap: 25px;
}
.home {
.btn-fixed-width {
/* width: 45%; */
}
.wrapper {
display: flex;
flex-direction: column;
gap: var(--gap);
margin: auto;
max-width: 100%;
}
.marquee {
display: flex;
overflow: hidden;
user-select: none;
gap: var(--gap);
height: max-content;
mask-image: linear-gradient(
to right,
hsl(0 0% 0% / 0),
hsl(0 0% 0% / 1) 20%,
hsl(0 0% 0% / 1) 80%,
hsl(0 0% 0% / 0)
);
}
.marquee__group {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-around;
gap: var(--gap);
min-width: 100%;
animation: scroll-x 60s linear infinite;
}
.marquee:hover .marquee__group {
animation-play-state: paused;
}
.marquee__group div {
width: var(--size);
}
@keyframes scroll-x {
from {
transform: translateX(0);
}
to {
transform: translateX(calc(-100% - var(--gap)));
}
}
}