Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

fix(docs): align demo heading with CTA edge

rponeb491061c7f32
diff --git a/docs/.vitepress/theme/components/SvmlDemoCarousel.vue b/docs/.vitepress/theme/components/SvmlDemoCarousel.vue
index 3fcd019a..4e4f8daa 100644
--- a/docs/.vitepress/theme/components/SvmlDemoCarousel.vue
+++ b/docs/.vitepress/theme/components/SvmlDemoCarousel.vue
@@ -196,7 +196,7 @@ onBeforeUnmount(() => { activationId += 1; });
<style scoped>
.svml-demo-carousel { width: 100%; }
.demo-carousel-stage { display: grid; width: 100%; overflow: hidden; perspective: 1600px; }
-.carousel-heading { width: calc(100% - 78px); margin-right: 64px; margin-left: 14px; }
+.carousel-heading { width: calc(100% - 64px); margin-right: 64px; margin-left: 0; }
.demo-card { position: relative; grid-area: 1 / 1; justify-self: center; width: calc(100% - 64px); overflow: hidden; border-radius: 16px; transform-origin: center center; will-change: transform, opacity, filter; transition: transform 850ms cubic-bezier(.16,1,.3,1), opacity 650ms cubic-bezier(.16,1,.3,1), filter 650ms cubic-bezier(.16,1,.3,1); }
.demo-card.is-center { z-index: 3; opacity: 1; filter: brightness(1); transform: translateX(0) scale(1); }
.demo-card.is-left { z-index: 1; opacity: .56; filter: brightness(.58) saturate(.75); transform: translateX(calc(-100% + 58px)) scale(.955); }
@@ -221,7 +221,7 @@ onBeforeUnmount(() => { activationId += 1; });
@keyframes demo-loading-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
- .carousel-heading { width: calc(100% - 54px); margin-right: 40px; margin-left: 14px; }
+ .carousel-heading { width: calc(100% - 40px); margin-right: 40px; margin-left: 0; }
.demo-card { width: calc(100% - 40px); }
.demo-card.is-left { transform: translateX(calc(-100% + 34px)) scale(.97); }
.demo-card.is-right { transform: translateX(calc(100% - 34px)) scale(.97); }
@@ -229,7 +229,7 @@ onBeforeUnmount(() => { activationId += 1; });
}
@media (max-width: 520px) {
- .carousel-heading { width: calc(100% - 34px); margin-right: 20px; margin-left: 14px; }
+ .carousel-heading { width: calc(100% - 20px); margin-right: 20px; margin-left: 0; }
.demo-card { width: calc(100% - 20px); }
.demo-card.is-left { transform: translateX(calc(-100% + 20px)) scale(.98); }
.demo-card.is-right { transform: translateX(calc(100% - 20px)) scale(.98); }