-
Notifications
You must be signed in to change notification settings - Fork 5
Add new logo to hero section #472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
d00c27f
feat: Add 3D video asset
yamcodes 1a33f55
feat: Replace `3d.mp4` with theme-specific `3d-dark.mp4` and `3d-ligh…
yamcodes b2271f8
feat: add 3D dark and light video metadata files
yamcodes 9d63779
[autofix.ci] apply automated fixes
autofix-ci[bot] c654f75
feat: Implement theme-aware hero video, replacing the old video demo …
yamcodes 703c24c
chore: Remove star-us-button export
yamcodes b77d981
feat: Add dark mode top gradient overlay, adjust background colors, a…
yamcodes 67e005b
feat: add video demo component to the home page with StackBlitz integ…
yamcodes bad1638
feat: hide hero video on small screens
yamcodes 346693e
style: Decrease dark mode overlay opacity on the home page.
yamcodes 9be832e
feat: Implement smooth theme-based video transitions by rendering bot…
yamcodes 5db21e5
feat: enhance home page layout by adjusting hero video positioning an…
yamcodes 22a4c1e
style: Adjust home page button container width for responsiveness.
yamcodes 299f1ab
[autofix.ci] apply automated fixes
autofix-ci[bot] ebf8bc4
style: Adjust home page top gradient overlay height and color.
yamcodes 8d6ad8a
refactor: replace top gradient overlay div with SVG implementation
yamcodes 1f0873f
style: Adjust hero video and home page content layout by updating mar…
yamcodes d6320df
style: adjust hero video's right margin on large screens.
yamcodes e216f08
style: enhance video demo button shadow with hover effects and transi…
yamcodes ab2de5a
test: Scope video/image element locator to the interactive demo button.
yamcodes e1d1e40
feat: add title to gradient overlay SVG element
yamcodes 15af5b6
Merge branch 'main' into 471-update-www-hero-section-to-use-new-logo
yamcodes 3b92537
fix: Pin next-themes dependency to exact version 0.4.6
yamcodes 9646232
test(theme-switching): add Playwright tests for theme switching and h…
yamcodes 8b185e1
a11y: improve SVG accessibility on home page and update TypeScript di…
yamcodes e5b846f
docs: Refine hero video update proposal and add accessibility attribu…
yamcodes 359f796
fix: Replace `role="presentation"` with `tabIndex={-1}` on video elem…
yamcodes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| "use client"; | ||
|
|
||
| import { useTheme } from "next-themes"; | ||
| import { useEffect, useState } from "react"; | ||
|
|
||
| export function HeroVideo() { | ||
| const { resolvedTheme } = useTheme(); | ||
| const [mounted, setMounted] = useState(false); | ||
|
|
||
| useEffect(() => { | ||
| setMounted(true); | ||
| }, []); | ||
|
|
||
| if (!mounted) { | ||
| return <div className="w-full aspect-4/3" />; | ||
| } | ||
|
|
||
| return ( | ||
| <div className="relative w-full max-w-[500px] mx-auto lg:ml-auto lg:-mr-22 lg:mt-8 aspect-4/3"> | ||
| <video | ||
| src="/assets/3d-light.mp4" | ||
| autoPlay | ||
| loop | ||
| muted | ||
| playsInline | ||
| aria-hidden="true" | ||
| tabIndex={-1} | ||
| className={`absolute inset-0 w-full h-full object-contain ${ | ||
| resolvedTheme === "dark" ? "opacity-0" : "opacity-100" | ||
| }`} | ||
| /> | ||
| <video | ||
| src="/assets/3d-dark.mp4" | ||
| autoPlay | ||
| loop | ||
| muted | ||
| playsInline | ||
| aria-hidden="true" | ||
| tabIndex={-1} | ||
| className={`absolute inset-0 w-full h-full object-contain ${ | ||
| resolvedTheme === "dark" ? "opacity-100" : "opacity-0" | ||
| }`} | ||
| /> | ||
| </div> | ||
| ); | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.