-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added sample for backup teaser video and button settings
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
testnet-useIframeVideo: false | ||
testnet-iframeVideoCode: "" | ||
testnet-useBackupLink: false | ||
testnet-backupLink: "" | ||
production-useIframeVideo: false | ||
production-iframeVideoCode: "" | ||
production-useBackupLink: false | ||
production-backupLink: "" | ||
--- | ||
|
||
# Video Settings | ||
|
||
This file contains configuration for video iframe settings used in different environments. | ||
|
||
## Available Settings | ||
|
||
### Testnet Environment Settings | ||
|
||
- **testnet-useIframeVideo**: Toggle to enable/disable iframe video in testnet environment | ||
- **testnet-iframeVideoCode**: HTML iframe code for the video when enabled in testnet. Should contain the complete iframe HTML code from video platforms (YouTube, Google Drive, etc.) | ||
- **testnet-useBackupLink**: When enabled, clicking the button will open a link in a new tab instead of showing the video | ||
- **testnet-backupLink**: URL to open in new tab when backup link mode is enabled for testnet | ||
|
||
### Production Environment Settings | ||
|
||
- **production-useIframeVideo**: Toggle to enable/disable iframe video in production environment | ||
- **production-iframeVideoCode**: HTML iframe code for the video when enabled in production. Should contain the complete iframe HTML code from video platforms (YouTube, Google Drive, etc.) | ||
- **production-useBackupLink**: When enabled, clicking the button will open a link in a new tab instead of showing the video | ||
- **production-backupLink**: URL to open in new tab when backup link mode is enabled for production | ||
|
||
## Usage Notes | ||
|
||
1. For each environment (testnet and production), you can choose between showing a video or using a backup link | ||
2. If both video and backup link are enabled for an environment, the backup link takes precedence | ||
3. Video code should be a complete iframe HTML element with all necessary attributes | ||
4. Backup links should be complete URLs including the protocol (http:// or https://) |