Skip to content

Commit

Permalink
add cncf footer
Browse files Browse the repository at this point in the history
Signed-off-by: encalada <[email protected]>
  • Loading branch information
qu1queee committed Sep 19, 2024
1 parent 2fe1e71 commit 76d368e
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 54 deletions.
Binary file added assets/img/cncf-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ img.height-50 {

.td-navbar .navbar-brand__name {
display: none;
}
}

.td-footer__all_rights_reserved {
display: inline;
}

.tradem img {
width: 500px;
height: auto;
}
4 changes: 2 additions & 2 deletions content/en/_index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
+++
title = "Shipwright"
linkTitle = "Shipwright"

+++

{{< blocks/cover title="Shipwright: A framework for building container images on Kubernetes" image_anchor="top" height="full" color="orange" >}}

{{< blocks/cover title="Shipwright: A framework for building container images on Kubernetes" image_anchor="top" height="full" color="dark">}}
<div class="mx-auto">
<!-- <a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/docs" >}}">
Learn More <i class="fas fa-arrow-alt-circle-right ml-2"></i>
Expand Down
2 changes: 1 addition & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ params:
version_menu: Releases


copyright: 2024 The Shipwright Contributors
copyright: The Shipwright Contributors

# Flag used in the "version-banner" partial to decide whether to display a
# banner on every page indicating that this is an archived version of the docs.
Expand Down
3 changes: 3 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

[main_license]
other = """The Shipwright Contributors | Licensed under <a href="https://github.com/shipwright-io/website/LICENSE">CC BY 4.0</a>"""

[footer_all_rights_reserved]
other = " "
60 changes: 10 additions & 50 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,55 +1,15 @@
{{ $links := .Site.Params.links }}
<footer class="bg-dark py-5 row d-print-none">
<div class="container-fluid mx-sm-5">
<div class="row">
<div class="col-6 col-sm-4 text-xs-center order-sm-2">
{{ with $links }}
{{ with index . "user"}}
{{ template "footer-links-block" . }}
{{ end }}
{{ end }}
<footer class="td-footer row d-print-none">
<div class="container-fluid">
<div class="row mx-md-2">
<div class="col-6 col-sm-4 text-xs-center order-sm-1">
{{ partial "footer/left.html" . }}
</div>
<div class="col-6 col-sm-4 text-right text-xs-center order-sm-3">
{{ with $links }}
{{ with index . "developer"}}
{{ template "footer-links-block" . }}
{{ end }}
{{ end }}
<div class="col-6 col-sm-4 text-end text-xs-center order-sm-3">
{{ partial "footer/right.html" . }}
</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
{{ with .Site.Params.copyright }}<small class="text-white">&copy; {{ now.Year}} {{ T "main_license" | safeHTML }}</small>{{ end }}
<small class="text-white"></small>
{{ with .Site.Params.privacy_policy }}<small class="ml-1"><a href="{{ . }}" target="_blank">{{ T "footer_privacy_policy" }}</a></small>{{ end }}
{{ if not .Site.Params.ui.footer_about_disable }}
{{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
{{ end }}
</div>
</div>
<div class="row">
<div class="col text-left order-sm-2">
<a href="https://cd.foundation">
<img class="height-50" src="https://raw.githubusercontent.com/cdfoundation/artwork/main/cdf/stacked/white/cdf-stacked-white.svg" alt="CD Foundation" />
</a>
</div>
<div class="col text-center order-sm-2">
<small class="text-white">A <a href="https://cd.foundation">CD Foundation</a> Incubating Project</small>
</div>
<div class="col text-right order-sm-2">
<a href="https://www.netlify.com">
<img src="https://www.netlify.com/img/global/badges/netlify-color-bg.svg" alt="Deploys by Netlify" />
</a>
<div class="td-footer__copyright-etc col-12 col-sm-4 text-center py-2 order-sm-2">
{{ partial "footer/center.html" . }}
</div>
</div>
</div>
</footer>
{{ define "footer-links-block" }}
<ul class="list-inline mb-0">
{{ range . }}
<li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="{{ .name }}" aria-label="{{ .name }}">
<a class="text-white" target="_blank" rel="noopener noreferrer" href="{{ .url }}">
<i class="{{ .icon }}"></i>
</a>
</li>
{{ end }}
</ul>
{{ end }}
</footer>
14 changes: 14 additions & 0 deletions layouts/partials/footer/center.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="cncf">
<div class="tradem">
{{ $cncf := resources.Get "/img/cncf-logo.png" }}
<h2>We are a Cloud Native Computing Foundation sandbox project.</h2>
<img src="{{ $cncf.RelPermalink }}" alt="opened box" loading="lazy"/>
<p>The Linux Foundation® (TLF) has registered trademarks and uses trademarks. For a list of TLF trademarks, see <a href="https://www.linuxfoundation.org/trademark-usage/" target="_blank">Trademark Usage</a>.</p>
</div>
</div>
{{ with .Site.Params.copyright -}}
<span>&copy; {{ now.Year }} {{ . }} {{ T "footer_all_rights_reserved" }}</span>
{{- end }}
{{ with .Site.Params.privacy_policy -}}
<span class="ms-1"><a href="{{ . }}" target="_blank" rel="noopener">{{ T "footer_privacy_policy" }}</a></span>
{{- end }}
5 changes: 5 additions & 0 deletions layouts/partials/footer/left.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{ with .Site.Params.links }}
{{ with index . "user" }}
{{ partial "footer/links.html" . }}
{{ end }}
{{ end }}
9 changes: 9 additions & 0 deletions layouts/partials/footer/links.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<ul class="td-footer__links-list">
{{ range . }}
<li class="td-footer__links-item" data-bs-toggle="tooltip" title="{{ .name }}" aria-label="{{ .name }}">
<a target="_blank" rel="noopener" href="{{ .url }}" aria-label="{{ .name }}">
<i class="{{ .icon }}"></i>
</a>
</li>
{{ end }}
</ul>
5 changes: 5 additions & 0 deletions layouts/partials/footer/right.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{ with .Site.Params.links }}
{{ with index . "developer" }}
{{ partial "footer/links.html" . }}
{{ end }}
{{ end }}

0 comments on commit 76d368e

Please sign in to comment.