Skip to content

Commit

Permalink
Add YouTube Regrets default share copy (#3758)
Browse files Browse the repository at this point in the history
* Add YouTube Regrets default share copy

* adjust background gradient
  • Loading branch information
mmmavis committed Oct 10, 2019
1 parent 4441026 commit ae41814
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
</figure>
</div>

{% with share_text="28 reasons why YouTube must change: startling stories of YouTube’s recommendations leading people down bizarre and dangerous paths" %}
<main class="container">
<div class="row hidden-md-up my-3">
<div class="col-12">
<div class="share-button-group-wrapper" data-version="mini" data-share-text="{{page.title}} by @mozilla" data-link="{{ request.scheme }}://{{ request.get_host }}{{ request.get_full_path }}"></div>
<div class="share-button-group-wrapper" data-version="mini" data-share-text="{{share_text}}" data-link="{{ request.scheme }}://{{ request.get_host }}{{ request.get_full_path }}"></div>
</div>
</div>

Expand All @@ -58,7 +59,7 @@
<div class="row">
<div class="offset-md-1 col-md-1 text-center pb-md-5 hidden-sm-down">
<div class="sticky-side">
<div class="share-button-group-wrapper" data-version="mini" data-layout="stacked" data-share-text="{{page.title}} by @mozilla" data-link="{{ request.scheme }}://{{ request.get_host }}{{ request.get_full_path }}"></div>
<div class="share-button-group-wrapper" data-version="mini" data-layout="stacked" data-share-text="{{share_text}}" data-link="{{ request.scheme }}://{{ request.get_host }}{{ request.get_full_path }}"></div>
</div>
</div>

Expand All @@ -77,6 +78,7 @@
</div>
</div>
</main>
{% endwith %}
{% endblock %}

{% block footer_block %}
Expand Down
6 changes: 5 additions & 1 deletion source/sass/views/youtube-regrets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

#view-youtube-regrets {
.wrapper {
background: linear-gradient($youtube-regrets-light-red, $white);
background: linear-gradient(
$youtube-regrets-light-red 100vh,
$white 500vh,
$white
);
}

.intro-viewport {
Expand Down

0 comments on commit ae41814

Please sign in to comment.