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.

feat(docs): add subtle inlay shimmer to Narratage wordmark

rpone7c61814c3016
diff --git a/docs/.vitepress/theme/components/HeroStatement.vue b/docs/.vitepress/theme/components/HeroStatement.vue
index 189c76ad..0b83bbcc 100644
--- a/docs/.vitepress/theme/components/HeroStatement.vue
+++ b/docs/.vitepress/theme/components/HeroStatement.vue
@@ -56,7 +56,9 @@ onBeforeUnmount(() => {
<template>
<div class="hero-statement">
- <h1 class="hero-statement-name">Narratage</h1>
+ <div class="hero-wordmark">
+ <h1 class="hero-statement-name" data-text="Narratage">Narratage</h1>
+ </div>
<div class="hero-statement-viewport hero-statement-viewport-en">
<Transition name="hero-statement-swap">
diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css
index e81debae..f827eb11 100644
--- a/docs/.vitepress/theme/style.css
+++ b/docs/.vitepress/theme/style.css
@@ -35,6 +35,7 @@ body { letter-spacing: -0.012em; }
font-optical-sizing: auto;
font-weight: 500;
letter-spacing: -.018em;
+ padding-right: .12em;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
@@ -47,11 +48,21 @@ body { letter-spacing: -0.012em; }
.VPHero .text { max-width: 820px !important; color: #f4f7f0 !important; font-size: clamp(28px, 4vw, 52px) !important; line-height: 1.04 !important; letter-spacing: -.045em !important; }
.VPHero .tagline { max-width: 650px !important; font-size: 18px !important; line-height: 1.65 !important; }
.hero-statement { width: 100%; }
+.hero-wordmark {
+ position: relative;
+ width: fit-content;
+ max-width: 100%;
+ margin: 0 -30px 0 0;
+ padding-right: 30px;
+ overflow: visible;
+}
.hero-statement-name {
+ position: relative;
+ display: inline-block;
width: fit-content;
margin: 0;
border: 0;
- padding: 0 .025em .06em 0;
+ padding: 0 .18em .08em .035em;
color: var(--narratage-rose-light);
background: linear-gradient(106deg, #fbd4e5 0%, var(--narratage-rose) 43%, #f2afcd 72%, var(--narratage-rose-deep) 108%);
background-clip: text;
@@ -66,6 +77,28 @@ body { letter-spacing: -0.012em; }
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
+.hero-statement-name::after {
+ content: attr(data-text);
+ position: absolute;
+ inset: 0;
+ padding: inherit;
+ background:
+ radial-gradient(circle, rgba(255,250,252,1) 0 1.25px, transparent 2.1px) 7px 3px / 39px 29px,
+ radial-gradient(circle, rgba(255,224,239,.9) 0 1px, transparent 1.9px) 21px 14px / 57px 41px,
+ linear-gradient(108deg, transparent 36%, rgba(255,246,251,0) 43%, rgba(255,246,251,.78) 49%, rgba(255,246,251,.18) 54%, transparent 61%) -160% 0 / 250% 100% no-repeat;
+ background-clip: text;
+ opacity: .48;
+ pointer-events: none;
+ animation: narratage-inlay-shimmer 8.5s cubic-bezier(.45,0,.2,1) infinite;
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+}
+
+@keyframes narratage-inlay-shimmer {
+ 0%, 16% { opacity: .34; background-position: 7px 3px, 21px 14px, -160% 0; }
+ 48% { opacity: .58; }
+ 78%, 100% { opacity: .38; background-position: 21px -4px, 7px 24px, 125% 0; }
+}
@media (forced-colors: active) {
.VPNavBarTitle .title,
@@ -75,6 +108,9 @@ body { letter-spacing: -0.012em; }
-webkit-text-fill-color: currentColor;
}
}
+@media (prefers-reduced-motion: reduce) {
+ .hero-statement-name::after { animation: none; opacity: .4; }
+}
.hero-statement-viewport { position: relative; width: min(100%,900px); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%); mask-image: linear-gradient(to bottom,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%); }
.hero-statement-viewport-en { height: clamp(108px,12vw,142px); margin-top: 8px; }
.hero-statement-viewport-zh { height: 68px; margin-top: -20px; }