Skip to content

Commit

Permalink
Add GitHub button main page hero
Browse files Browse the repository at this point in the history
Signed-off-by: lucperkins <lucperkins@gmail.com>
  • Loading branch information
lucperkins committed Jan 3, 2019
1 parent f613721 commit 7256e84
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
6 changes: 3 additions & 3 deletions assets/sass/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
{{- $fontsUrl := printf "https://fonts.googleapis.com/css?family=%s" (delimit $fontSlice "|") }}
{{- $sansSerifFont := .Site.Params.sansSerifFont }}
{{- $monospaceFont := .Site.Params.monospaceFont }}
//{{- $fontAwesomeVersion := .Site.Params.fontAwesomeVersion }}
//{{- $fontAwesomeUrl := printf "https://use.fontawesome.com/releases/v%s/css/all.css" $fontAwesomeVersion }}
{{- $fontAwesomeVersion := .Site.Params.fontAwesomeVersion }}
{{- $fontAwesomeUrl := printf "https://use.fontawesome.com/releases/v%s/css/all.css" $fontAwesomeVersion }}

@charset "utf-8"
@import url({{ $fontsUrl }})
//@import url({{ $fontAwesomeUrl }})
@import url({{ $fontAwesomeUrl }})

// Project-specific colors and variables
$etcd-blue: #419eda
Expand Down
4 changes: 3 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ etcd is written in [Go](https://golang.org), which has excellent cross-platform
Latency from the etcd leader is the most important metric to track and the built-in dashboard has a view dedicated to this. In our testing, severe latency will introduce instability within the cluster because Raft is only as fast as the slowest machine in the majority. You can mitigate this issue by properly tuning the cluster. etcd has been pre-tuned on cloud providers with highly variable networks.
"""


[params.logos]
hero = "https://raw.githubusercontent.com/cncf/artwork/master/etcd/horizontal/white/etcd-horizontal-white.png"
cncf = "https://raw.githubusercontent.com/cncf/artwork/master/cncf/horizontal/color/cncf-color.png"
footer = "https://raw.githubusercontent.com/cncf/artwork/master/etcd/icon/color/etcd-icon-color.png"
panel = "https://raw.githubusercontent.com/cncf/artwork/master/etcd/icon/color/etcd-icon-color.png"

[params.social]
github = "https://github.com/etcd-io/etcd"

[[params.features]]
title = "Simple interface"
description = "Read and write values using standard HTTP tools, such as curl"
Expand Down
20 changes: 18 additions & 2 deletions layouts/partials/home/hero.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{{ $logo := .Site.Params.logos.hero }}
{{ $description := .Site.Params.description | markdownify }}
{{ $params := .Site.Params }}
{{ $logo := $params.logos.hero }}
{{ $description := $params.description | markdownify }}
{{ $social := $params.social }}
{{ $github := $social.github }}
<section class="hero is-medium is-primary">
<div class="container has-text-centered">
<div class="hero-body">
Expand All @@ -8,6 +11,19 @@
<p class="subtitle is-size-2 is-size-4-mobile has-text-white-bis has-text-weight-light">
{{ $description }}
</p>

<br />

<div class="buttons is-centered">
<a class="button is-black is-medium" href="{{ $github }}">
<span class="icon">
<i class="fab fa-github"></i>
</span>
<span class="has-text-weight-bold">
GitHub
</span>
</a>
</div>
</div>
</div>
</section>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Target":"css/style.6171fb2ca63ff5317c88bc8140ef17e6f3df1bc8724aec7467dd67d45bedf534.css","MediaType":"text/css","Data":{"Integrity":"sha256-YXH7LKY/9TF8iLyBQO8X5vPfG8hySux0Z91n1Fvt9TQ="}}
{"Target":"css/style.b900ac2b6c4c6297dc6c1fe08e134bfb65c3f624403a6406de889fe435c899c9.css","MediaType":"text/css","Data":{"Integrity":"sha256-uQCsK2xMYpfcbB/gjhNL+2XD9iRAOmQG3oif5DXImck="}}

0 comments on commit 7256e84

Please sign in to comment.