Skip to content

Commit ea48608

Browse files
authored
Merge pull request #22 from hoangsonww/fix/fix-index-ui
fix: add Drive overlay button to demo videos for alternative access a…
2 parents 93fb144 + 0a7999b commit ea48608

2 files changed

Lines changed: 79 additions & 3 deletions

File tree

index.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,21 +266,30 @@ <h3>Run these for yourself</h3>
266266

267267
<div class="code-win" style="margin: 0 0 32px; display: flex; flex-direction: column;">
268268
<div class="titlebar"><div class="traffic"><i></i><i></i><i></i></div><span class="ttl">REPL demo · forge</span></div>
269-
<video src="https://github.com/user-attachments/assets/eb592bbf-62a1-4d74-a540-7e066ebe56a4
269+
<div class="video-wrap" style="position:relative">
270+
<video src="https://github.com/user-attachments/assets/eb592bbf-62a1-4d74-a540-7e066ebe56a4
270271
" poster="images/repl.png" controls muted playsinline preload="metadata"
271272
style="display:block;width:100%;max-height:70vh;height:auto;object-fit:contain;background:#000"></video>
273+
<a class="video-overlay-btn" href="https://drive.google.com/drive/folders/1YJLQblgGl_2fNZ0-8-lX9TvQsGGZ12sn?usp=sharing" target="_blank" rel="noopener noreferrer" title="Open all demos on Google Drive">Drive</a>
274+
</div>
272275
</div>
273276
<div class="code-win" style="margin: 0 0 32px; display: flex; flex-direction: column;">
274277
<div class="titlebar"><div class="traffic"><i></i><i></i><i></i></div><span class="ttl">CLI demo · forge run</span></div>
275-
<video src="https://github.com/user-attachments/assets/bc3b3204-fd87-436f-9467-604535edb4e2
278+
<div class="video-wrap" style="position:relative">
279+
<video src="https://github.com/user-attachments/assets/bc3b3204-fd87-436f-9467-604535edb4e2
276280
" poster="images/cli.png" controls muted playsinline preload="metadata"
277281
style="display:block;width:100%;max-height:70vh;height:auto;object-fit:contain;background:#000"></video>
282+
<a class="video-overlay-btn" href="https://drive.google.com/drive/folders/1YJLQblgGl_2fNZ0-8-lX9TvQsGGZ12sn?usp=sharing" target="_blank" rel="noopener noreferrer" title="Open all demos on Google Drive">Drive</a>
283+
</div>
278284
</div>
279285
<div class="code-win" style="margin: 0; display: flex; flex-direction: column;">
280286
<div class="titlebar"><div class="traffic"><i></i><i></i><i></i></div><span class="ttl">Web dashboard demo · forge ui start</span></div>
281-
<video src="https://github.com/user-attachments/assets/218cd64f-40fe-4836-9c62-c7a08538056b
287+
<div class="video-wrap" style="position:relative">
288+
<video src="https://github.com/user-attachments/assets/218cd64f-40fe-4836-9c62-c7a08538056b
282289
" poster="images/ui.png" controls muted playsinline preload="metadata"
283290
style="display:block;width:100%;height:auto;background:#000"></video>
291+
<a class="video-overlay-btn" href="https://drive.google.com/drive/folders/1YJLQblgGl_2fNZ0-8-lX9TvQsGGZ12sn?usp=sharing" target="_blank" rel="noopener noreferrer" title="Open all demos on Google Drive">Drive</a>
292+
</div>
284293
</div>
285294
</div>
286295
</section>

wiki/styles.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,73 @@ section.alt {
10281028
white-space: pre;
10291029
}
10301030

1031+
/* Top-right "↗ Drive" overlay on demo videos. Positioned over the player
1032+
so users who can't load the inline GitHub-hosted MP4 (corp proxies, etc.)
1033+
have a one-click escape hatch to the same clips on Google Drive. */
1034+
.video-overlay-btn {
1035+
position: absolute;
1036+
top: 12px;
1037+
right: 12px;
1038+
z-index: 5;
1039+
display: inline-flex;
1040+
align-items: center;
1041+
gap: 7px;
1042+
padding: 7px 13px 7px 11px;
1043+
font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1044+
letter-spacing: .04em;
1045+
text-transform: uppercase;
1046+
color: #f5f7fb;
1047+
background:
1048+
linear-gradient(180deg, rgba(28, 38, 58, 0.92) 0%, rgba(10, 14, 22, 0.92) 100%);
1049+
border: 1px solid rgba(255, 255, 255, 0.14);
1050+
border-radius: 8px;
1051+
text-decoration: none;
1052+
/* Soft inner highlight on top edge + outer drop shadow so the chip reads
1053+
clearly over both bright and dark video frames. */
1054+
box-shadow:
1055+
0 1px 0 rgba(255, 255, 255, 0.08) inset,
1056+
0 0 0 1px rgba(0, 0, 0, 0.25),
1057+
0 4px 14px rgba(0, 0, 0, 0.45);
1058+
backdrop-filter: blur(8px) saturate(1.2);
1059+
-webkit-backdrop-filter: blur(8px) saturate(1.2);
1060+
transition:
1061+
background .18s var(--ease, ease),
1062+
border-color .18s var(--ease, ease),
1063+
transform .18s var(--ease, ease),
1064+
box-shadow .18s var(--ease, ease);
1065+
pointer-events: auto;
1066+
}
1067+
/* Lift the arrow glyph optically — it sits on the baseline by default
1068+
which makes it look low next to the uppercase text. translateY -1.5px
1069+
centers its visual mass with the cap-height of "DRIVE". */
1070+
.video-overlay-btn::before {
1071+
content: "↗";
1072+
font-size: 13px;
1073+
line-height: 1;
1074+
color: #9cc2ff;
1075+
transform: translateY(-1.5px);
1076+
display: inline-block;
1077+
transition: transform .18s var(--ease, ease), color .18s var(--ease, ease);
1078+
}
1079+
.video-overlay-btn:hover {
1080+
background:
1081+
linear-gradient(180deg, rgba(38, 56, 92, 0.96) 0%, rgba(14, 20, 32, 0.96) 100%);
1082+
border-color: rgba(124, 184, 255, 0.55);
1083+
transform: translateY(-1px);
1084+
box-shadow:
1085+
0 1px 0 rgba(255, 255, 255, 0.12) inset,
1086+
0 0 0 1px rgba(0, 0, 0, 0.3),
1087+
0 6px 18px rgba(0, 0, 0, 0.55);
1088+
}
1089+
.video-overlay-btn:hover::before {
1090+
color: #cfe0ff;
1091+
transform: translateY(-2.5px) translateX(0.5px);
1092+
}
1093+
.video-overlay-btn:focus-visible {
1094+
outline: 2px solid var(--accent, #7cb8ff);
1095+
outline-offset: 2px;
1096+
}
1097+
10311098
.code-win pre .dim { color: var(--fg3); }
10321099
.code-win pre .ok { color: var(--teal); }
10331100
.code-win pre .warn { color: var(--orange); }

0 commit comments

Comments
 (0)