Add CNCF section to main page

Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
lucperkins 2020-03-09 12:41:37 -07:00
parent b8caac55e4
commit 441f3ef445
7 changed files with 42 additions and 3 deletions

View File

@ -32,6 +32,7 @@ $code: $primary
$code-background: $white-bis $code-background: $white-bis
$navbar-height: 5rem $navbar-height: 5rem
$navbar-item-img-max-height: $navbar-height * 0.6 $navbar-item-img-max-height: $navbar-height * 0.6
$section-padding: 3rem 1.5rem
// Font overrides // Font overrides
{{ if $fonts }} {{ if $fonts }}
@ -112,6 +113,14 @@ $colors: mergeColorMaps(("secondary": ($secondary, $white)), $colors)
+touch +touch
width: $t width: $t
.is-cncf-logo
+logo(50%, 90%)
+desktop
margin-top: 1.25rem
+touch
margin-top: 0.75rem
.is-hero-logo .is-hero-logo
+logo(50%, 80%) +logo(50%, 80%)

View File

@ -4,5 +4,20 @@
{{ define "main" }} {{ define "main" }}
{{ partial "hero.html" . }} {{ partial "hero.html" . }}
{{ partial "content.html" (dict "content" .Content "size" "medium") }}
<section class="section">
<div class="container">
<div class="columns is-variable is-8">
<div class="column is-three-quarters">
{{ partial "content.html" (dict "content" .Content "size" "normal" "constrained" true) }}
</div>
<div class="column">
<aside class="is-sticky">
{{ .TableOfContents }}
</aside>
</div>
</div>
</div>
</section>
{{ end }} {{ end }}

View File

@ -2,4 +2,5 @@
{{ partial "home/hero.html" . }} {{ partial "home/hero.html" . }}
{{ partial "home/info.html" . }} {{ partial "home/info.html" . }}
{{ partial "home/used-by.html" . }} {{ partial "home/used-by.html" . }}
{{ partial "home/cncf.html" . }}
{{ end }} {{ end }}

View File

@ -1,3 +1,7 @@
<footer class="footer has-background-image"> <footer class="footer has-background-image">
<div class="container">
<p class="title">
gRPC
</p>
</div>
</footer> </footer>

View File

@ -2,7 +2,7 @@
{{ $desc := .Params.description | markdownify }} {{ $desc := .Params.description | markdownify }}
<section class="hero is-medium is-primary has-background-image"> <section class="hero is-medium is-primary has-background-image">
<div class="hero-body"> <div class="hero-body">
<div class="container has-text-centered"> <div class="container">
<p class="title is-size-1 is-size-2-mobile has-text-weight-light{{ if $desc }} is-spaced{{ end }}"> <p class="title is-size-1 is-size-2-mobile has-text-weight-light{{ if $desc }} is-spaced{{ end }}">
{{ $title }} {{ $title }}
</p> </p>

View File

@ -0,0 +1,10 @@
{{ $logo := "img/logos/cncf-horizontal-color.png" | relURL }}
<section class="section has-extra-padding">
<div class="container has-text-centered">
<p class="title is-size-2 is-size-3-mobile has-text-weight-light">
gRPC is a <a href="https://cncf.io">Cloud Native Computing Foundation</a> incubating project
</p>
<img class="is-cncf-logo" src="{{ $logo }}" alt="Cloud Native Computing Foundation logo">
</div>
</section>

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB