diff --git a/assets/scss/_video-landing_project.scss b/assets/scss/_video-landing_project.scss index 5123f6c4751..d61c214af3e 100644 --- a/assets/scss/_video-landing_project.scss +++ b/assets/scss/_video-landing_project.scss @@ -241,6 +241,20 @@ a#videoPageLink:focus { margin-bottom: 2rem; } +.video-grid-container { + position: relative; + min-height: 500px; + transition: min-height 0.15s ease; +} + +.video-group { + position: absolute; + width: 100%; + opacity: 0; + pointer-events: none; + transition: opacity 0.15s ease; +} + .video-card { background-color: rgba(18,18,18,1); border-radius: 12px; diff --git a/content/en/videos/template-category/sub-category/video-1.md b/content/en/videos/template-category/sub-category/video-1.md index bb14183de04..d04a2c388b9 100644 --- a/content/en/videos/template-category/sub-category/video-1.md +++ b/content/en/videos/template-category/sub-category/video-1.md @@ -11,5 +11,4 @@ tags: [] # example: [review, collaboration, comments] # also available as hyperl duration: 2:30 # optional, duration of the video in minutes:seconds format, "min" is automatically appended the duration --- -{{< youtube id=videoId class="youtube-embed-container" >}} - \ No newline at end of file +{{< youtube id=bb6J--aApk8 class="yt-embed-container" >}} \ No newline at end of file diff --git a/layouts/partials/video-category-navigation.html b/layouts/partials/video-category-navigation.html new file mode 100644 index 00000000000..e5566ff5363 --- /dev/null +++ b/layouts/partials/video-category-navigation.html @@ -0,0 +1,52 @@ +{{ $.Scratch.Set "pathToHashMap" dict }} +{{ $videos := .Site.GetPage "section" "videos" }} +{{ if $videos }} + {{ range $mainIndex, $mainSection := $videos.Sections }} + {{ $mainPath := $mainSection.RelPermalink }} + {{ if not (hasPrefix $mainPath "/") }} + {{ $mainPath = "/" | add $mainPath }} + {{ end }} + {{ $.Scratch.SetInMap "pathToHashMap" $mainPath (printf "category-%d-subcategory-0" $mainIndex) }} + {{ range $subIndex, $subSection := $mainSection.Sections }} + {{ $subPath := $subSection.RelPermalink }} + {{ if not (hasPrefix $subPath "/") }} + {{ $subPath = "/" | add $subPath }} + {{ end }} + {{ $.Scratch.SetInMap "pathToHashMap" $subPath (printf "category-%d-subcategory-%d" $mainIndex $subIndex) }} + {{ end }} + {{ end }} +{{ end }} + +
+ + + diff --git a/layouts/partials/video-landing-page.html b/layouts/partials/video-landing-page.html index 650b8749331..ce32da09315 100644 --- a/layouts/partials/video-landing-page.html +++ b/layouts/partials/video-landing-page.html @@ -7,7 +7,7 @@