diff --git a/assets/scss/_grpc.scss b/assets/scss/_grpc.scss index 5260393..c75461b 100644 --- a/assets/scss/_grpc.scss +++ b/assets/scss/_grpc.scss @@ -21,7 +21,7 @@ a > .fa-external-link-alt::before { /* Docsy's 'cover/block' option for setting background images does -not currrently support svg's. This sets the background on hero +not currently support svg's. This sets the background on hero sections site wide to the original site's background svg. */ .td-cover-block { @@ -134,7 +134,7 @@ body:not(.td-blog) .td-content:not(.list-page) { /* The following contains some styles in use on the top-level pages -(About, Community...). Bootstrap provides many responsive utilites +(About, Community...). Bootstrap provides many responsive utilities which are in use as well - these classes are meant to extract some common concerns from sections of content, and provide styling where Bootstrap falls short. @@ -151,13 +151,6 @@ c - Component (Aware of its content/context...) } // Layout -.l-constrained-width-content { - margin-left: auto; - margin-right: auto; - padding-bottom: 1rem; - max-width: 1140px; -} - .l-container--padded { padding-top: 2rem; padding-bottom: 2rem; @@ -235,28 +228,59 @@ c - Component (Aware of its content/context...) margin-right: 0.25rem; } -.o-logo { - width: 80%; +.grpc-logo { + max-height: 8rem; + max-width: 65%; } -.o-user-logo { - max-height: 7rem; +.used-by-logo { + max-height: 4rem; + max-width: 100%; } -.o-user-logo-sm { - max-height: 5rem; -} +.td-home { + h1 { + @extend .display-1; + margin-bottom: 2.5rem; + text-align: center; + } -.o-heading { - margin-bottom: 1.5rem; - font-weight: 300; - text-align: center -} + h2 { + @extend .display-2; + margin-bottom: 1.5rem; + text-align: center; + } -.o-logo--constrained { - margin-left: auto; - margin-right: auto; - max-width: 500px; + h3 { + @extend .display-3; + } + + h4 { + @extend .display-4; + margin-bottom: 1rem; + } + + .home--top-section { + text-align: center; + } + + .cncf-logo { + width: 20rem; + max-width: 80%; + } + + .why-grpc { + @include media-breakpoint-up(lg) { + padding-right: 5rem; + padding-left: 5rem; + } + + p { + font-size: $lead-font-size; + font-weight: $lead-font-weight; + text-align: left; + } + } } .o-features__feature { @@ -277,6 +301,7 @@ c - Component (Aware of its content/context...) margin-left: auto; margin-right: auto; margin-bottom: 1rem; + max-width: 10rem; } .o-lang-home__list { @@ -295,36 +320,18 @@ c - Component (Aware of its content/context...) } } -@include media-breakpoint-down(md) { - .o-user-logo { - max-height: 5rem; - max-width: 100%; - } -} - @include media-breakpoint-up(lg) { .o-features__feature { flex-direction: row; justify-content: space-between; } - .o-logo { - width: 50%; - } - .o-feature__icon { margin-right: 1rem; - max-width: 172px; } } // Component -.c-used-by { - h1 { - font-size: 4rem; - margin-bottom: 2.5rem; - } -} .c-features { display: flex; @@ -354,6 +361,7 @@ c - Component (Aware of its content/context...) flex-direction: column; flex-wrap: wrap; align-items: center; + margin-bottom: -3rem; } .c-used-by__user { @@ -391,12 +399,6 @@ c - Component (Aware of its content/context...) flex-direction: row; } - .c-used-by { - h1 { - font-size: 3rem; - } - } - .c-global-meta-links { & .td-page-meta a i { display: inline-block; diff --git a/assets/scss/_variables_project.scss b/assets/scss/_variables_project.scss index fef93fd..635ecfb 100644 --- a/assets/scss/_variables_project.scss +++ b/assets/scss/_variables_project.scss @@ -4,8 +4,11 @@ $secondary: #5ac5c5; $info: #379c9c; $gray-100: #fafafa; -$display1-weight: 300; -$display2-weight: 300; +// Display styles: prefer Bootstrap defaults to docsy's overrides +$display1-weight: $font-weight-light; +$display2-weight: $font-weight-light; +$display3-weight: $font-weight-light; +$display4-weight: $font-weight-light; $link-color: #379c9c; diff --git a/content/en/_index.md b/content/en/_index.md index 931b35d..dcce113 100644 --- a/content/en/_index.md +++ b/content/en/_index.md @@ -15,18 +15,17 @@ features: --- {{< blocks/cover image_anchor="top" height="max" color="primary" >}} - - -

- A high performance, open source universal RPC framework -

+ +

A high performance, open source universal RPC framework

Learn more -

Get started!

+ +
Get started!
+
- [Go]({{< relref "/docs/languages/go/quickstart" >}}) @@ -38,24 +37,21 @@ Learn more
{{< /blocks/cover >}} -
+
+ +
+

Why gRPC?

-{{% blocks/lead color="white" %}} -

Why gRPC?

-

gRPC is a modern open source high performance RPC framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking and authentication. It is also applicable in last mile of distributed computing to connect devices, mobile applications and browsers to backend services. -

-{{% /blocks/lead %}} +
{{< home/features >}} - {{< home/used-by >}} - {{< home/cncf >}}
diff --git a/layouts/shortcodes/about/testimonials.html b/layouts/shortcodes/about/testimonials.html index fae8348..3f5f83d 100644 --- a/layouts/shortcodes/about/testimonials.html +++ b/layouts/shortcodes/about/testimonials.html @@ -5,7 +5,7 @@ {{ $quote := .quote | markdownify -}}
- {{ .name }} testimonial logo +

{{- $quote -}} diff --git a/layouts/shortcodes/home/cncf.html b/layouts/shortcodes/home/cncf.html index 1f615b2..afa2714 100644 --- a/layouts/shortcodes/home/cncf.html +++ b/layouts/shortcodes/home/cncf.html @@ -1,8 +1,6 @@ -

-

- gRPC is a Cloud Native Computing Foundation incubation project -

- +
+

gRPC is a CNCF incubation project

+ +
\ No newline at end of file diff --git a/layouts/shortcodes/home/features.html b/layouts/shortcodes/home/features.html index 4ee90af..9169f88 100644 --- a/layouts/shortcodes/home/features.html +++ b/layouts/shortcodes/home/features.html @@ -1,17 +1,17 @@ -{{ $features := $.Page.Params.features }} +{{ $features := $.Page.Params.features -}}
-
- {{ range $features }} - {{ $icon := printf "img/icons/%s" .icon | relURL }} - {{ $desc := .description | markdownify }} +
+ {{ range $features -}} + {{ $icon := printf "img/icons/%s" .icon | relURL -}} + {{ $desc := .description | markdownify -}} -
- {{ .title }} feature icon -
-

{{ .title }}

-

{{ $desc }}

-
+
+ {{ .title }} feature icon +
+

{{ .title }}

+

{{ $desc }}

- {{ end }} -
+
+ {{ end }} +
diff --git a/layouts/shortcodes/home/used-by.html b/layouts/shortcodes/home/used-by.html index eea9bd5..127c79d 100644 --- a/layouts/shortcodes/home/used-by.html +++ b/layouts/shortcodes/home/used-by.html @@ -1,17 +1,15 @@ {{ $usedBy := site.Data.testimonials -}} -
-

- Used by -

-
- {{ range $usedBy -}} - {{ $img := printf "img/users/%s" .image | relURL -}} -
- - - -
- {{- end }} -
+
+

Used by

+
+ {{ range $usedBy -}} + {{ $img := printf "img/users/%s" .image | relURL -}} +
+ + + +
+ {{- end }} +
\ No newline at end of file diff --git a/themes/docsy b/themes/docsy index 6e2acd2..c83d811 160000 --- a/themes/docsy +++ b/themes/docsy @@ -1 +1 @@ -Subproject commit 6e2acd2b4d0fa29b1ce3ef8b36b922fe25b08303 +Subproject commit c83d811eae575f94ee62b8546bc8c3c53cc89cff