Skip to content

Commit

Permalink
Add YouTube social button in header and footer (kubernetes#16838)
Browse files Browse the repository at this point in the history
  • Loading branch information
hvaara authored and zacharysarah committed Dec 5, 2019
1 parent dc2c5e5 commit 53fb08d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 4 deletions.
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

0 comments on commit 53fb08d

Please sign in to comment.