Skip to content

Commit 6625d15

Browse files
committed
added video demo
1 parent bcab467 commit 6625d15

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

website/public/anime-sdk-test.mp4

2.58 MB
Binary file not shown.

website/src/components/sections/Demo.astro

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const megaplayCode = `<code><span class="kw">import</span> <span class="pun">{</
2727
</p>
2828
</div>
2929

30-
<div class="hline">
31-
<div class="cell no-right no-bottom show-dots px-10 py-9">
30+
<div class="hline grid grid-cols-2">
31+
<div class="cell no-bottom show-dots px-10 py-9">
3232
<div class="mb-5 flex items-center gap-3">
3333
<span class="badge badge-muted">Install</span>
3434
<span class="font-mono text-[11px]" style="color: var(--muted);">terminal</span>
@@ -50,5 +50,22 @@ const megaplayCode = `<code><span class="kw">import</span> <span class="pun">{</
5050
. Need a different source? Swap the provider; same three calls.
5151
</p>
5252
</div>
53+
<div class="cell no-right no-bottom" style="padding:0; position:relative; overflow:hidden;">
54+
<video
55+
autoplay
56+
loop
57+
controls
58+
playsinline
59+
style="position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center;"
60+
src="/anime-sdk-test.mp4"></video>
61+
<a
62+
href="https://github.com/hexxt-git/anime-sdk/tree/master/examples/website"
63+
target="_blank"
64+
rel="noopener noreferrer"
65+
style="position:absolute; top:12px; right:12px; z-index:10; background:var(--bg); color:var(--muted); font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:600; letter-spacing:0.06em; padding:4px 10px; text-decoration:none; transition:color 0.15s;"
66+
onmouseover="this.style.color='#fff'"
67+
onmouseout="this.style.color='var(--muted)'">demo website ↗</a
68+
>
69+
</div>
5370
</div>
5471
</section>

0 commit comments

Comments
 (0)