Skip to content

fix: add Drive overlay button to demo videos for alternative access#22

Merged
hoangsonww merged 1 commit intomasterfrom
fix/fix-index-ui
Apr 25, 2026
Merged

fix: add Drive overlay button to demo videos for alternative access#22
hoangsonww merged 1 commit intomasterfrom
fix/fix-index-ui

Conversation

@hoangsonww
Copy link
Copy Markdown
Owner

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:

  • Added a "Drive" overlay button (.video-overlay-btn) above each demo video in index.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:

  • Introduced comprehensive CSS styles in wiki/styles.css for 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.

@hoangsonww hoangsonww self-assigned this Apr 25, 2026
@hoangsonww hoangsonww added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers feature Feature request labels Apr 25, 2026
@hoangsonww hoangsonww merged commit ea48608 into master Apr 25, 2026
8 checks passed
@hoangsonww hoangsonww changed the title fix: add Drive overlay button to demo videos for alternative access a… fix: add Drive overlay button to demo videos for alternative access Apr 25, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread index.html
<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">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Avoid using inline styles for layout. Since you've introduced the video-wrap class, move the position: relative property to the stylesheet. This promotes reusability and keeps the HTML structure clean.

Suggested change
<div class="video-wrap" style="position:relative">
<div class="video-wrap">

Comment thread index.html
<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">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Avoid using inline styles for layout. Since you've introduced the video-wrap class, move the position: relative property to the stylesheet. This promotes reusability and keeps the HTML structure clean.

Suggested change
<div class="video-wrap" style="position:relative">
<div class="video-wrap">

Comment thread index.html
<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">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Avoid using inline styles for layout. Since you've introduced the video-wrap class, move the position: relative property to the stylesheet. This promotes reusability and keeps the HTML structure clean.

Suggested change
<div class="video-wrap" style="position:relative">
<div class="video-wrap">

Comment thread wiki/styles.css
white-space: pre;
}

/* Top-right "↗ Drive" overlay on demo videos. Positioned over the player
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Add the .video-wrap class definition here to handle the relative positioning for the video containers. This allows the overlay buttons to be correctly positioned relative to their parent.

.video-wrap {
  position: relative;
}

/* Top-right "↗ Drive" overlay on demo videos. Positioned over the player

Comment thread wiki/styles.css
align-items: center;
gap: 7px;
padding: 7px 13px 7px 11px;
font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Use the --mono CSS variable instead of hardcoding the font stack to ensure consistency with the rest of the site's typography.

  font: 600 11.5px/1 var(--mono);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request feature Feature request good first issue Good for newcomers

Development

Successfully merging this pull request may close these issues.

1 participant