Skip to content

Commit 0ab2024

Browse files
committed
grid-ify splash page, put quickstart on side
Signed-off-by: Alex Suraci <[email protected]>
1 parent 5f26c7c commit 0ab2024

File tree

6 files changed

+68
-93
lines changed

6 files changed

+68
-93
lines changed

css/booklit.css

+43-68
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ h2, h3 {
8888

8989
.top-logo {
9090
grid-area: logo;
91+
min-width: 300px;
9192
}
9293

9394
.top-nav {
@@ -155,8 +156,7 @@ h2, h3 {
155156
}
156157

157158
.page-nav {
158-
background: #212121;
159-
box-shadow: inset -9px 9px 9px -6px rgba(0, 0, 0, .125);
159+
background: #2A2929;
160160
display: flex;
161161
flex-direction: column;
162162
}
@@ -169,14 +169,45 @@ h2, h3 {
169169
}
170170

171171
.page-content.wide {
172-
padding-left: 50px;
173-
padding-right: 50px;
174-
grid-column-start: 2;
175-
grid-column-end: 3;
172+
grid-column-start: span 2;
176173
}
177174

178-
.top-logo {
179-
flex: 1;
175+
.splash-title {
176+
grid-column-start: span 2;
177+
margin-bottom: 14px;
178+
font-size: 19px;
179+
border: 0;
180+
align-self: end;
181+
}
182+
183+
.page-content.wide .section {
184+
display: grid;
185+
grid-template-columns: 385px auto;
186+
grid-gap: 0 30px;
187+
}
188+
189+
.splash-intro h2 {
190+
font-size: 18px;
191+
font-style: italic;
192+
color: #616161;
193+
font-family: 'Roboto Slab', serif;
194+
font-style: normal;
195+
margin: 0;
196+
border: 0;
197+
font-size: 26px;
198+
font-weight: 500;
199+
margin-top: -4px;
200+
}
201+
202+
.segment.example pre {
203+
margin-top: 6px;
204+
font-size: .9em;
205+
}
206+
207+
@media (min-width: 800px) {
208+
.segment p:first-child {
209+
margin-top: 0;
210+
}
180211
}
181212

182213
.top-logo a {
@@ -223,7 +254,7 @@ h2, h3 {
223254
}
224255

225256
.page-content h1 {
226-
border-top: 5px solid #212121;
257+
border-top: 5px solid #2A2929;
227258
padding-top: 10px;
228259
}
229260

@@ -334,7 +365,7 @@ h2, h3 {
334365
}
335366

336367
.page-nav .context .children a.active {
337-
color: #fff;
368+
text-decoration: underline;
338369
}
339370

340371
.page-nav .context a.self {
@@ -391,38 +422,6 @@ h2, h3 {
391422
font-style: italic;
392423
}
393424

394-
.splash-intro {
395-
font-size: 18px;
396-
font-style: italic;
397-
color: #616161;
398-
}
399-
400-
.splash-intro h2 {
401-
font-family: 'Roboto Slab', serif;
402-
font-style: normal;
403-
margin: 0;
404-
border: 0;
405-
font-size: 26px;
406-
font-weight: 500;
407-
margin-top: -4px;
408-
}
409-
410-
.splash-example h2 {
411-
margin-bottom: 14px;
412-
font-size: 19px;
413-
border: 0;
414-
}
415-
416-
.splash-example pre {
417-
margin-top: 6px;
418-
}
419-
420-
.side-by-side {
421-
display: flex;
422-
flex-direction: column;
423-
}
424-
425-
426425
.schema-content {
427426
display: none;
428427
}
@@ -673,7 +672,7 @@ h2, h3 {
673672
}
674673

675674
.note-tag.security {
676-
border-color: #212121;
675+
border-color: #2A2929;
677676
}
678677

679678
.note-tag.fix {
@@ -687,7 +686,7 @@ h2, h3 {
687686

688687
.downloads-toggle {
689688
position: relative;
690-
border-left: 2px solid #212121;
689+
border-left: 2px solid #2A2929;
691690
padding-left: 10px;
692691
margin-left: 100px;
693692
}
@@ -920,26 +919,6 @@ label.quickstart-label::before {
920919
padding-bottom: 2px;
921920
}
922921

923-
@media (min-width: 800px) {
924-
.side-by-side {
925-
flex-direction: row;
926-
justify-content: space-between;
927-
}
928-
929-
.segment {
930-
width: 390px;
931-
}
932-
933-
.segment.example {
934-
width: 385px;
935-
flex-shrink: 0;
936-
}
937-
938-
.segment p:first-child {
939-
margin-top: 0;
940-
}
941-
}
942-
943922
@media (max-width: 1200px) {
944923
body {
945924
grid-template-columns: 3fr 1fr;
@@ -958,10 +937,6 @@ label.quickstart-label::before {
958937
vertical-align: top;
959938
}
960939

961-
.page-nav {
962-
box-shadow: inset 9px 9px 9px -6px rgba(0, 0, 0, .25);
963-
}
964-
965940
.page-aside {
966941
display: none;
967942
}

html/splash-example.tmpl

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
<div class="splash-example">
2-
<h2>
3-
{{.Partial "Title" | render}}
4-
</h2>
1+
<h2 class="splash-title">
2+
{{.Partial "Title" | render}}
3+
</h2>
54

6-
<div class="side-by-side">
7-
<div class="segment example">
8-
{{.Partial "Example" | render}}
9-
</div>
5+
<div class="segment example">
6+
{{.Partial "Example" | render}}
7+
</div>
108

11-
<div class="segment">
12-
{{.Content | render}}
13-
</div>
14-
</div>
9+
<div class="segment">
10+
{{.Content | render}}
1511
</div>

html/splash-intro.tmpl

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
<div class="splash-intro">
2-
<div class="side-by-side">
3-
<div class="segment example">
4-
<h2>{{.Partial "Intro" | render}}</h2>
5-
</div>
1+
<div class="segment example splash-intro">
2+
<h2>{{.Partial "Intro" | render}}</h2>
3+
</div>
64

7-
<div class="segment">
8-
{{.Content | render}}
9-
</div>
10-
</div>
5+
<div class="segment">
6+
{{.Content | render}}
117
</div>

html/wide-page.tmpl

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
<body class="wide">
77
{{template "top.tmpl" .}}
88

9+
<div class="page-aside">
10+
{{- if .Partial "RightSide" }}
11+
<div class="page-partial">
12+
{{.Partial "RightSide" | render}}
13+
</div>
14+
{{ end -}}
15+
</div>
16+
917
<div class="page-content wide">
1018
{{template "section.tmpl" .}}
1119
</div>

lit/download.lit

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
\use-plugin{concourse-docs}
2-
31
\title{Download}{download}{downloads}
42

3+
\use-plugin{concourse-docs}
4+
55
\right-side{Warnings}{
66
\warn{
77
If you are currently on a version older than \reference{v3.6.0}, \bold{you

lit/index.lit

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
\link{CI}{https://en.wikipedia.org/wiki/Continuous_integration}/\link{CD}{https://en.wikipedia.org/wiki/Continuous_delivery}.
1414
}
1515

16-
\quick-start{
16+
\right-side{Quick Start}{
1717
Concourse is distributed as a single \code{concourse} binary, making it easy
1818
to run just about anywhere, especially with Docker.
1919

@@ -33,7 +33,7 @@
3333
target your local Concourse as the \code{test} user:
3434

3535
\codeblock{bash}{{
36-
$ fly -t tutorial login -c http://localhost:8080 -u test -p test
36+
$ fly -t tutorial login -c http://localhost:8080
3737
logging in to team 'main'
3838

3939
target saved

0 commit comments

Comments
 (0)