added placeholder homepage

pull/3/head
Scott Anderson 2019-01-04 11:38:24 -07:00
parent 9dc080a560
commit 67ae63bf7c
3 changed files with 46 additions and 6 deletions

View File

@ -36,6 +36,34 @@ a {
flex-grow: 1;
}
/// Styles for the placeholder homepage only viewalbe with running locally ///
.home-placeholder {
max-width: 400px;
margin: 20vh auto 0;
color: $article-text;
text-align:center;
font-style:italic;
.welcome {
text-align:center;
font-weight: bold;
color: $article-heading;
font-size: 1.1rem;
}
p {
margin-top: 1rem;
line-height: 1.25rem;
}
a {
color: $article-link;
font-weight: bold;
text-decoration: none;
&:hover {
color: $article-link-hover;
}
}
}
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// MEDIA QUERIES ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,6 +1,14 @@
{{ partial "header.html" }}
{{ partial "header.html" . }}
<p><em>This is a placeholder for the future InfluxDB v2.0 homepage.</em></p>
<p><a href="/v2.0/">v2.0 director</a></p>
<div class="home-placeholder">
<p class="welcome">
Welcome to the InfluxDB v2.x documentation
</p>
<p>
This page is never actually shown on the live docs since visiting the docs domain will redirect to the latest version.
Select your desired version from the dropdown above or go straight to the
<a href="/{{ $.Site.Data.versions.latest_version }}">latest version</a>.
</p>
</div>
{{ partial "footer.html"}}
{{ partial "footer.html" . }}

View File

@ -5,12 +5,16 @@
<span class="icon-influx-logotype"></span>
</a>
<span class="divider"></span>
<a class="docs-home" href="/">Docs</a>
<a class="docs-home" href="/{{ $.Site.Data.versions.latest_version }}">Docs</a>
</div>
<div class="topnav--right">
<div class="version-selector">
{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) }}
<p class="selected">{{ $currentVersion }}</p>
{{ if eq $currentVersion nil }}
<p class="selected">Select Version</p>
{{ else }}
<p class="selected">{{ $currentVersion }}</p>
{{ end }}
<ul class="version-list">
{{ range .Site.Menus.versions.ByName.Reverse }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>