-
Notifications
You must be signed in to change notification settings - Fork 45
hero and navbar improvements #129
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
base: main
Are you sure you want to change the base?
Changes from all commits
25a2578
bc19a15
3973c3f
d97eb62
d4ce849
bebfa51
f3f8013
e6c9a07
496b90b
a8552f5
658ce98
9225016
74b420d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# macOS leftovers | ||
.DS_Store | ||
.hugo-build.lock | ||
|
||
# Node.js-related assets (e.g. for CSS) | ||
node_modules/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"private": true, | ||
"devDependencies": { | ||
"bulma": "^0.7.1" | ||
"bulma": "^0.9.4" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{{- $logo := "img/logos/footer-logo.png" | relURL }} | ||
{{- $logo := "/img/logos/navbar-light-logo.png" | relURL }} | ||
{{- $docs := where .Site.Pages "Section" "docs" }} | ||
{{- $year := now.Year }} | ||
{{- $twitterHandle := .Site.Params.twitterHandle }} | ||
|
@@ -7,19 +7,19 @@ | |
{{- $githubUrl := printf "https://github.com/%s" $githubRepo }} | ||
{{- $slackChannel := .Site.Params.slackChannel }} | ||
{{- $projectPages := where .Site.RegularPages "Section" "" }} | ||
<div class="footer"> | ||
<div class="footer has-background-pattern has-text-white"> | ||
<div class="container"> | ||
<div class="columns"> | ||
<div class="column"> | ||
<img src="{{ $logo }}" class="is-footer-logo" alt="containerd footer logo"> | ||
<div class="column" style="display: flex;justify-content: center;align-items: center;"> | ||
<img style=" transform:scale(1.2);" src="{{ $logo }}" class="is-footer-logo" alt="containerd footer logo"> | ||
Comment on lines
+13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't hardcode |
||
</div> | ||
|
||
<div class="column"> | ||
<span class="is-size-4 is-size-5-mobile"> | ||
<span class="is-size-4 is-size-5-mobile has-text-weight-bold"> | ||
Docs | ||
</span> | ||
|
||
<hr class="hr has-background-grey"> | ||
<hr class="hr "> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: remove unnecessary space in class string, here and the other instances below. |
||
|
||
<ul> | ||
{{- range $docs }} | ||
|
@@ -33,11 +33,11 @@ | |
</div> | ||
|
||
<div class="column"> | ||
<span class="is-size-4 is-size-5-mobile"> | ||
<span class="is-size-4 is-size-5-mobile has-text-weight-bold"> | ||
Project | ||
</span> | ||
|
||
<hr class="hr has-background-grey"> | ||
<hr class="hr "> | ||
|
||
<ul> | ||
<li> | ||
|
@@ -57,14 +57,14 @@ | |
</div> | ||
|
||
<div class="column"> | ||
<span class="is-size-4 is-size-5-mobile"> | ||
<span class="is-size-4 is-size-5-mobile has-text-weight-bold"> | ||
Community | ||
</span> | ||
|
||
<hr class="hr has-background-grey"> | ||
<hr class="hr "> | ||
|
||
<div class="buttons"> | ||
<a class="button has-background-twitter-blue is-borderless has-text-white" href="{{ $twitterUrl }}"> | ||
<a class="button is-normal has-background-twitter-blue is-borderless has-text-white has-text-weight-semibold" href="{{ $twitterUrl }}"> | ||
<span class="icon"> | ||
<i class="fab fa-twitter" aria-hidden="true"></i> | ||
</span> | ||
|
@@ -73,16 +73,16 @@ | |
</span> | ||
</a> | ||
|
||
<a class="button is-borderless has-background-black has-text-white" href="{{ $githubUrl }}"> | ||
<a class="button is-normal is-borderless has-background-white has-text-black has-text-weight-semibold" href="{{ $githubUrl }}"> | ||
<span class="icon"> | ||
<i class="fab fa-github" aria-hidden="true"></i> | ||
<i style="color:black" class="fab fa-github" aria-hidden="true"></i> | ||
</span> | ||
<span> | ||
GitHub | ||
</span> | ||
</a> | ||
|
||
<a class="button is-borderless has-background-slack-green has-text-white" href="{{ $slackChannel }}"> | ||
<a class="button is-normal is-borderless has-background-slack-green has-text-white has-text-weight-semibold" href="{{ $slackChannel }}"> | ||
<span class="icon"> | ||
<i class="fab fa-slack" aria-hidden="true"></i> | ||
</span> | ||
|
@@ -95,19 +95,19 @@ | |
</div> <!-- .column --> | ||
</div> <!-- .column --> | ||
|
||
<hr class="hr has-background-grey-lighter"> | ||
<hr style="background: transparent;" class="hr"> | ||
</div> <!-- .columns --> | ||
|
||
<div class="container has-text-centered"> | ||
<div class="has-text-weight-light"> | ||
<div class="has-text-weight-normal"> | ||
<p class="is-size-5 is-size-6-mobile"> | ||
© containerd Authors {{ $year }} | Documentation Distributed under <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY-4.0</a> | ||
© containerd Authors {{ $year }} | Documentation Distributed under <a href="https://creativecommons.org/licenses/by/4.0/" class="has-text-white is-underlined" >CC-BY-4.0</a> | ||
</p> | ||
|
||
<br /> | ||
|
||
<p> | ||
© {{ $year }} The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage">Trademark Usage</a> page. | ||
© {{ $year }} The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a class="has-text-white is-underlined" href="https://www.linuxfoundation.org/trademark-usage">Trademark Usage</a> page. | ||
</p> | ||
</div> | ||
</div> <!-- .container --> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
{{- $isHome := .IsHome }} | ||
{{- $logo := cond $isHome ("img/logos/navbar-light-logo.png" | relURL) ("img/logos/navbar-dark-logo.png" | relURL) }} | ||
{{- $logo := cond $isHome ("img/logos/navbar-light-logo.png" | relURL) ("img/logos/navbar-light-logo.png" | relURL) }} | ||
{{- $docs := where .Site.Pages "Section" "docs" }} | ||
{{- $twitterHandle := .Site.Params.twitterHandle }} | ||
{{- $twitterUrl := printf "https://twitter.com/@%s" $twitterHandle }} | ||
{{- $githubRepo := .Site.Params.githubRepo }} | ||
{{- $githubUrl := printf "https://github.com/%s" $githubRepo }} | ||
{{- $slackChannel := .Site.Params.slackChannel }} | ||
{{- $projectPages := where .Site.RegularPages "Section" "" }} | ||
<div class="navbar is-fixed-top{{ if $isHome }} is-dark{{ else }} has-shadow{{ end }}"> | ||
<div id="mainnav" style="padding:10px" class="navbar is-transparent has-background-pattern is-fixed-top{{ if $isHome }} {{ else }} has-shadow{{ end }}"> | ||
<div class="container"> | ||
<div class="navbar-brand"> | ||
<a class="navbar-item" href="{{ .Site.BaseURL }}"> | ||
<img src="{{ $logo }}" alt="containerd navbar logo"> | ||
<img src="{{ $logo }}" alt="containerd navbar logo" style="transform: scale(1.2);padding-left: 20px;"> | ||
</a> | ||
|
||
{{- if not $isHome }} | ||
<div class="navbar-item is-docs-title has-text-weight-bold is-hidden-mobile"> | ||
<div class="navbar-item is-docs-title has-text-weight-bold has-text-white is-hidden-mobile"> | ||
{{ .Title }} | ||
</div> | ||
{{- end }} | ||
|
@@ -29,12 +29,12 @@ | |
|
||
<div class="navbar-menu" id="navbarMenu"> | ||
<div class="navbar-end"> | ||
<a class="navbar-item has-text-weight-bold" href="/downloads"> | ||
<a class="navbar-item has-text-weight-bold has-text-white" href="/downloads"> | ||
Downloads | ||
</a> | ||
|
||
<div class="navbar-item is-hoverable has-dropdown has-text-weight-bold" href="/docs"> | ||
<a class="navbar-link"> | ||
<a class="navbar-link has-text-white"> | ||
Docs | ||
</a> | ||
|
||
|
@@ -48,7 +48,7 @@ | |
</div> <!-- .navbar-item --> | ||
|
||
<div class="navbar-item is-hoverable has-dropdown has-text-weight-bold"> | ||
<div class="navbar-link"> | ||
<div class="navbar-link has-text-white"> | ||
Project | ||
</div> | ||
|
||
|
@@ -78,9 +78,9 @@ | |
</span> | ||
</a> | ||
|
||
<a class="button is-borderless has-background-black has-text-white" href="{{ $githubUrl }}"> | ||
<a class="button is-borderless has-background-white has-text-white" href="{{ $githubUrl }}"> | ||
<span class="icon"> | ||
<i class="fab fa-github" aria-hidden="true"></i> | ||
<i class="fab fa-github" aria-hidden="true" style="color:black"></i> | ||
</span> | ||
</a> | ||
|
||
|
@@ -96,3 +96,16 @@ | |
</div> <!-- .navbar-menu --> | ||
</div> <!-- .container --> | ||
</div> <!-- .navbar --> | ||
|
||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This project already includes jQuery 3.6 (see under the themes folder). |
||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script> | ||
Comment on lines
+100
to
+102
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CSS frameworks are resource heavy, and add a non-trivial overhead for maintainers. This website was built using bulma. Here you're adding full support for Bootstrap. We don't want that. Use either bulma or Bootstrap, not both. |
||
|
||
<script> | ||
$(function () { | ||
$(document).scroll(function () { | ||
var $nav = $("#mainnav"); | ||
$nav.toggleClass("scrolled", $(this).scrollTop() > $nav.height()); | ||
}); | ||
}); | ||
</script> | ||
Comment on lines
+104
to
+111
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that nothing was changed here other than whitespace. Please undo the whitespace change.