Skip to content
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

Add YouTube social button in header and footer #16838

Merged
merged 1 commit into from
Dec 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions assets/sass/_base.sass
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ header
background-size: contain
background-position: center center
background-repeat: no-repeat

#blog
&.flip-nav, &.open-nav
.logo
Expand Down Expand Up @@ -490,7 +490,7 @@ footer
display: inline-block
background-image: url(/images/social_sprite.svg)
background-repeat: no-repeat
background-size: 300px
background-size: 350px
width: 50px
height: 50px
border-radius: 5px
Expand Down Expand Up @@ -549,6 +549,12 @@ a.calendar
&:hover
background-position: -250px 100%

a.youtube
background-position: -300px 0

&:hover
background-position: -300px 100%

#viewDocs
display: none

Expand Down
8 changes: 7 additions & 1 deletion assets/sass/_desktop.sass
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ $video-section-height: 550px
display: inline-block
background-image: url(../images/social_sprite.svg)
background-repeat: no-repeat
background-size: 300px
background-size: 350px
width: 50px
height: 50px
border-radius: 5px
Expand Down Expand Up @@ -264,6 +264,12 @@ $video-section-height: 550px
&:hover
background-position: -250px 100%

a.youtube
background-position: -300px 0

&:hover
background-position: -300px 100%

#community, .gridPage
#hero
text-align: left
Expand Down
3 changes: 3 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ other = "Stack Overflow"
[community_twitter_name]
other = "Twitter"

[community_youtube_name]
other = "YouTube"

[deprecation_warning]
other = " documentation is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date documentation, see the "

Expand Down
1 change: 1 addition & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</div>
<div>
<a href="https://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>{{ T "community_stack_overflow_name" }}</span></a>
<a href="https://www.youtube.com/kubernetescommunity" class="youtube"><span>{{ T "community_youtube_name" }}</span></a>
<a href="https://discuss.kubernetes.io" class="mailing-list"><span>{{ T "community_forum_name" }}</span></a>
<a href="https://calendar.google.com/calendar/embed?src=nt2tcnbtbied3l6gi2h29slvc0%40group.calendar.google.com" class="calendar"><span>{{ T "community_events_calendar" }}</span></a>
</div>
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ <h5 class="github-invite">{{ T "main_community_explore" }}</h5>
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>{{ T "community_github_name" }}</span></a>
<a href="http://slack.k8s.io/" class="slack"><span>{{ T "community_slack_name" }} Slack</span></a>
<a href="https://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>{{ T "community_stack_overflow_name" }}</span></a>
<a href="https://www.youtube.com/kubernetescommunity" class="youtube"><span>{{ T "community_youtube_name" }}</span></a>
<a href="https://discuss.kubernetes.io" class="mailing-list"><span>{{ T "community_forum_name" }}</span></a>
<a href="https://calendar.google.com/calendar/embed?src=nt2tcnbtbied3l6gi2h29slvc0%40group.calendar.google.com" class="calendar"><span>{{ T "community_events_calendar" }}</span></a>
</div>
Expand Down
Loading