-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from gf-dcc/site-updates-feb2024
Site updates feb2024
- Loading branch information
Showing
17 changed files
with
234 additions
and
51 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
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
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
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 |
---|---|---|
@@ -1,22 +1,27 @@ | ||
<div> | ||
<div class="vimeo-slider__slide"> | ||
<div class="vimeo-slider__slide-content"> | ||
{% if include.type == 'vimeo' %} | ||
{% assign videoUrl = 'https://player.vimeo.com/video/' | append: include.id %} | ||
{% else %} | ||
{% assign videoUrl = 'https://www.youtube.com/embed/' | append: include.id | append: '?rel=0' %} | ||
{% endif %} | ||
<div class="video-slider__slide"> | ||
<div class="video-slider__slide-content"> | ||
<img srcset="{{ '/assets/img/logo-gray_white.png' | relative_url }}, | ||
{{ '/assets/img/[email protected]' | relative_url }} 2x" | ||
src="{{ '/assets/img/logo-gray_white.png' | relative_url }}" | ||
alt="Gray Foundation" class="vimeo-slider__slide-logo"> | ||
alt="Gray Foundation" class="video-slider__slide-logo"> | ||
<div class="video-slider__slide-title">{{ include.title }}</div> | ||
</div> | ||
<div class="vimeo-slider__slide-thumb"> | ||
<div class="video-slider__slide-thumb"> | ||
<img src="{{ site.imgbaseurl | append: include.image }}?w=290&h=215&fit=clip" alt=""> | ||
</div> | ||
<a href="https://player.vimeo.com/video/{{ include.id }}" class="video-card__slide-overlay" data-lity> | ||
<a href="{{ videoUrl }}" class="video-card__slide-overlay" data-lity> | ||
<span class="video-card__slide-play"></span> | ||
</a> | ||
</div> | ||
<div class="vimeo-slider__slide-footer"> | ||
<div class="video-slider__slide-footer"> | ||
<div class="video-slider__slide-footer-title">{{ include.title }}</div> | ||
<a href="https://player.vimeo.com/video/{{ include.id }}" class="video-card__slide-video-link" data-lity>Click to Enlarge</a> | ||
<a href="{{ videoUrl }}" class="video-card__slide-video-link" data-lity>Click to Enlarge</a> | ||
{% if include.link %} | ||
<div> | ||
{% if include.link contains 'http' %} | ||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
_includes/vimeo-slider-start.html → _includes/video-slider-start.html
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<div class="vimeo-slider"> | ||
<div class="video-slider"> | ||
<div class="carousel" data-slick='{"slidesToShow": 1, "speed": 400, "arrows": true, "dots": true}'> |
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
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
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,33 @@ | ||
|
||
<div class="video-card"> | ||
{% include youtube.html id=include.id playsinline=include.playsinline autoplay=include.autoplay mute=include.mute color=include.color controls=include.controls loop=include.loop start=include.start cc_load_policy=include.cc_load_policy iv_load_policy=include.iv_load_policy %} | ||
|
||
{% comment %} | ||
Values to include with the modal version of the player. | ||
{% endcomment %} | ||
{%- if include.start != nil %} | ||
{% assign start = include.start %} | ||
{% else %} | ||
{% assign start = '0' %} | ||
{% endif -%} | ||
{%- if include.cc_load_policy != nil %} | ||
{% assign cc_load_policy = include.cc_load_policy %} | ||
{% else %} | ||
{% assign cc_load_policy = '0' %} | ||
{% endif -%} | ||
{%- if include.iv_load_policy != nil %} | ||
{% assign iv_load_policy = include.iv_load_policy %} | ||
{% else %} | ||
{% assign iv_load_policy = '1' %} | ||
{% endif -%} | ||
|
||
<div class="video-card__text"> | ||
{% if include.title %} | ||
<div class="video-card__title">{{ include.title }}</div> | ||
{% endif %} | ||
<a href="https://www.youtube.com/embed/{{ include.id }}?cc_load_policy={{ cc_load_policy }}&iv_load_policy={{ iv_load_policy }}&start={{ start }}" class="video-card__expand-link" data-lity>Click to enlarge</a> | ||
{% if include.description %} | ||
<div class="video-card__description">{{ include.description }}</div> | ||
{% endif %} | ||
</div> | ||
</div> |
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,73 @@ | ||
{%- if include.playsinline != nil and include.playsinline == false %} | ||
{% assign playsinline = '0' %} | ||
{% else %} | ||
{% assign playsinline = '1' %} | ||
{% endif -%} | ||
|
||
{%- if include.autoplay != nil and include.autoplay == true %} | ||
{% assign autoplay = '1' %} | ||
{% else %} | ||
{% assign autoplay = '0' %} | ||
{% endif -%} | ||
|
||
{% comment %} | ||
Available colors: | ||
- red | ||
- white | ||
{% endcomment %} | ||
{%- if include.color != nil %} | ||
{% assign color = include.color %} | ||
{% else %} | ||
{% assign color = 'white' %} | ||
{% endif -%} | ||
|
||
{%- if include.controls != nil and include.controls == false %} | ||
{% assign controls = '0' %} | ||
{% else %} | ||
{% assign controls = '1' %} | ||
{% endif -%} | ||
|
||
{%- if include.loop != nil and include.loop == true %} | ||
{% assign loop = '1' %} | ||
{% else %} | ||
{% assign loop = '0' %} | ||
{% endif -%} | ||
|
||
{%- if include.mute != nil and include.mute == true %} | ||
{% assign mute = '1' %} | ||
{% else %} | ||
{% assign mute = '0' %} | ||
{% endif -%} | ||
|
||
{%- if include.rel != nil and include.rel == true %} | ||
{% assign rel = '1' %} | ||
{% else %} | ||
{% assign rel = '0' %} | ||
{% endif -%} | ||
|
||
{%- if include.cc_load_policy != nil and include.cc_load_policy == false %} | ||
{% assign cc_load_policy = '0' %} | ||
{% else %} | ||
{% assign cc_load_policy = '1' %} | ||
{% endif -%} | ||
|
||
{% comment %} | ||
Applied parameter values: | ||
- 1 (default) - Annotations are shown | ||
- 3 - Annotations are hidden | ||
{% endcomment %} | ||
{%- if include.iv_load_policy != nil and include.iv_load_policy == false %} | ||
{% assign iv_load_policy = '3' %} | ||
{% else %} | ||
{% assign iv_load_policy = '1' %} | ||
{% endif -%} | ||
|
||
{%- if include.start != nil %} | ||
{% assign start = include.start %} | ||
{% else %} | ||
{% assign start = '0' %} | ||
{% endif -%} | ||
|
||
<div class="video-wrapper"> | ||
<iframe src="https://www.youtube.com/embed/{{ include.id }}?autoplay={{ autoplay }}&mute={{ mute }}&playsinline={{ playsinline }}&color={{ color }}&controls={{ controls }}&loop={{ loop }}&rel={{ rel }}&cc_load_policy={{ cc_load_policy }}&iv_load_policy={{ iv_load_policy }}&start={{ start }}" allow="autoplay; fullscreen"></iframe> | ||
</div> |
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
Oops, something went wrong.