fix: add Drive overlay button to demo videos for alternative access#22
Merged
hoangsonww merged 1 commit intomasterfrom Apr 25, 2026
Merged
fix: add Drive overlay button to demo videos for alternative access#22hoangsonww merged 1 commit intomasterfrom
hoangsonww merged 1 commit intomasterfrom
Conversation
…nd improve UI clarity
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a Google Drive overlay button for demo videos in index.html, providing an alternative viewing option for users. Corresponding styles for the button's appearance and behavior are added to wiki/styles.css. The review feedback focuses on improving code maintainability by moving inline layout styles to the stylesheet and utilizing existing CSS variables for font consistency.
| <div class="code-win" style="margin: 0 0 32px; display: flex; flex-direction: column;"> | ||
| <div class="titlebar"><div class="traffic"><i></i><i></i><i></i></div><span class="ttl">REPL demo · forge</span></div> | ||
| <video src="https://github.com/user-attachments/assets/eb592bbf-62a1-4d74-a540-7e066ebe56a4 | ||
| <div class="video-wrap" style="position:relative"> |
Contributor
There was a problem hiding this comment.
| <div class="code-win" style="margin: 0 0 32px; display: flex; flex-direction: column;"> | ||
| <div class="titlebar"><div class="traffic"><i></i><i></i><i></i></div><span class="ttl">CLI demo · forge run</span></div> | ||
| <video src="https://github.com/user-attachments/assets/bc3b3204-fd87-436f-9467-604535edb4e2 | ||
| <div class="video-wrap" style="position:relative"> |
Contributor
There was a problem hiding this comment.
| <div class="code-win" style="margin: 0; display: flex; flex-direction: column;"> | ||
| <div class="titlebar"><div class="traffic"><i></i><i></i><i></i></div><span class="ttl">Web dashboard demo · forge ui start</span></div> | ||
| <video src="https://github.com/user-attachments/assets/218cd64f-40fe-4836-9c62-c7a08538056b | ||
| <div class="video-wrap" style="position:relative"> |
Contributor
There was a problem hiding this comment.
| white-space: pre; | ||
| } | ||
|
|
||
| /* Top-right "↗ Drive" overlay on demo videos. Positioned over the player |
Contributor
There was a problem hiding this comment.
| align-items: center; | ||
| gap: 7px; | ||
| padding: 7px 13px 7px 11px; | ||
| font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request improves the user experience for demo videos on the site by adding a visible overlay button that links directly to Google Drive copies of each demo. This provides an easy alternative for users who may have trouble playing the inline GitHub-hosted videos (for example, due to corporate proxies).
Key changes:
Feature addition:
.video-overlay-btn) above each demo video inindex.html, linking to a Google Drive folder containing all demo clips. This gives users a one-click fallback if the embedded video doesn't play.Styling and accessibility:
wiki/styles.cssfor the overlay button, ensuring it is visually distinct, accessible, and remains readable over any video frame. The overlay includes a top-right position, a ↗ arrow icon, hover/focus states, and a drop shadow for clarity.