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.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
fix(docs): render logo glyphs as inline SVG
rponeeff5417e7e5f
diff --git a/docs/.vitepress/theme/components/NarratageMark.vue b/docs/.vitepress/theme/components/NarratageMark.vueindex 8fe35fb2..74a3258d 100644--- a/docs/.vitepress/theme/components/NarratageMark.vue+++ b/docs/.vitepress/theme/components/NarratageMark.vue@@ -1,9 +1,9 @@<script setup lang="ts">-import markUrl from "../assets/narratage-logo/mark.svg";+import markSvg from "../assets/narratage-logo/mark.svg?raw";withDefaults(defineProps<{ class?: string; label?: string }>(), { label: "Narratage" });</script><template>- <span :class="['narratage-mark', $props.class]" :style="{ '--narratage-mark-mask': `url(${markUrl})` }" role="img" :aria-label="label"></span>+ <span :class="['narratage-mark', $props.class]" role="img" :aria-label="label" v-html="markSvg"></span></template>diff --git a/docs/.vitepress/theme/components/NarratageWordmark.vue b/docs/.vitepress/theme/components/NarratageWordmark.vueindex 83309052..53d3cce8 100644--- a/docs/.vitepress/theme/components/NarratageWordmark.vue+++ b/docs/.vitepress/theme/components/NarratageWordmark.vue@@ -1,24 +1,24 @@<script setup lang="ts">-import nUrl from "../assets/narratage-logo/glyph-1.svg";-import aTopUrl from "../assets/narratage-logo/glyph-4.svg";-import rTopUrl from "../assets/narratage-logo/glyph-6.svg";-import rSecondUrl from "../assets/narratage-logo/glyph-5.svg";-import aBottomUrl from "../assets/narratage-logo/glyph-3.svg";-import tUrl from "../assets/narratage-logo/glyph-9.svg";-import aLastUrl from "../assets/narratage-logo/glyph-2.svg";-import gUrl from "../assets/narratage-logo/glyph-7.svg";-import eUrl from "../assets/narratage-logo/glyph-8.svg";+import nSvg from "../assets/narratage-logo/glyph-1.svg?raw";+import aTopSvg from "../assets/narratage-logo/glyph-4.svg?raw";+import rTopSvg from "../assets/narratage-logo/glyph-6.svg?raw";+import rSecondSvg from "../assets/narratage-logo/glyph-5.svg?raw";+import aBottomSvg from "../assets/narratage-logo/glyph-3.svg?raw";+import tSvg from "../assets/narratage-logo/glyph-9.svg?raw";+import aLastSvg from "../assets/narratage-logo/glyph-2.svg?raw";+import gSvg from "../assets/narratage-logo/glyph-7.svg?raw";+import eSvg from "../assets/narratage-logo/glyph-8.svg?raw";const letters = [- { url: nUrl, width: .499 },- { url: aTopUrl, width: .472 },- { url: rTopUrl, width: .462 },- { url: rSecondUrl, width: .467 },- { url: aBottomUrl, width: .474 },- { url: tUrl, width: .457 },- { url: aLastUrl, width: .469 },- { url: gUrl, width: .467 },- { url: eUrl, width: .37 },+ { svg: nSvg, width: .499 },+ { svg: aTopSvg, width: .472 },+ { svg: rTopSvg, width: .462 },+ { svg: rSecondSvg, width: .467 },+ { svg: aBottomSvg, width: .474 },+ { svg: tSvg, width: .457 },+ { svg: aLastSvg, width: .469 },+ { svg: gSvg, width: .467 },+ { svg: eSvg, width: .37 },];withDefaults(defineProps<{ class?: string; label?: string; animate?: boolean }>(), { label: "NARRATAGE", animate: false });</script>@@ -27,10 +27,11 @@ withDefaults(defineProps<{ class?: string; label?: string; animate?: boolean }>(<span class="narratage-wordmark" :class="[$props.class, { 'is-animated': animate }]" role="img" :aria-label="label"><spanv-for="(letter, index) in letters"- :key="`${letter.url}-${index}`"+ :key="index"class="narratage-wordmark-letter"- :style="{ '--narratage-letter-mask': `url(${letter.url})`, '--narratage-letter-width': `${letter.width}em` }"+ :style="{ '--narratage-letter-width': `${letter.width}em` }"aria-hidden="true"+ v-html="letter.svg"></span></span></template>diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.cssindex ced24964..83333d45 100644--- a/docs/.vitepress/theme/style.css+++ b/docs/.vitepress/theme/style.css@@ -97,10 +97,8 @@ html.home-page .nav-narratage-mark {width: 30px;height: 30px;color: var(--ink);- background: currentColor;- -webkit-mask: var(--narratage-mark-mask) center / contain no-repeat;- mask: var(--narratage-mark-mask) center / contain no-repeat;}+html.home-page .nav-narratage-mark svg { display: block; width: 100%; height: 100%; }html.home-page .nav-narratage-wordmark {display: inline-flex;align-items: center;@@ -192,7 +190,8 @@ html.home-page .VPPage { background: var(--paper); }line-height: 1;}.narratage-wordmark { display: inline-flex; align-items: flex-end; gap: .09em; color: currentColor; vertical-align: bottom; }-.narratage-wordmark-letter { display: block; width: var(--narratage-letter-width); height: 1em; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--narratage-letter-mask) center / 100% 100% no-repeat; mask: var(--narratage-letter-mask) center / 100% 100% no-repeat; }+.narratage-wordmark-letter { display: block; width: var(--narratage-letter-width); height: 1em; flex: 0 0 auto; }+.narratage-wordmark-letter svg { display: block; width: 100%; height: 100%; color: inherit; }.narratage-wordmark.is-animated .narratage-wordmark-letter { opacity: 0; transform: translateY(.12em); animation: wordmark-letter-type .11s cubic-bezier(.22,1,.36,1) forwards; }.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(1) { animation-delay: .18s; }.narratage-wordmark.is-animated .narratage-wordmark-letter:nth-child(2) { animation-delay: .25s; }