Skip to content

Commit 0a1af48

Browse files
authored
feat: Initial homepage redesign
2 parents 50fb93e + c1a9106 commit 0a1af48

File tree

19 files changed

+1918
-39
lines changed

19 files changed

+1918
-39
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,8 @@ cython_debug/
163163
.idea/
164164
*.iml
165165

166-
mkdocs.yml
166+
mkdocs.yml
167+
/node_modules/
168+
169+
overrides/assets/javascripts/*.min.js*
170+
overrides/assets/stylesheets/*.css*

base.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ repo_name: concourse/concourse
66

77
edit_uri: https://github.com/Aviator-Labs/docs-ci/edit/main/docs/
88

9+
watch:
10+
- docs
11+
- overrides
12+
913
markdown_extensions:
1014
- admonition
1115
- def_list
@@ -33,6 +37,12 @@ markdown_extensions:
3337
kwds:
3438
case: lower
3539

40+
extra_css:
41+
- assets/stylesheets/mwc-theme.css
42+
43+
extra_javascript:
44+
- assets/javascripts/mwc-bundle.min.js
45+
3646
exclude_docs: |
3747
libs/**/*.md
3848
libs/examples/apps
@@ -43,6 +53,8 @@ exclude_docs: |
4353
theme:
4454
name: material
4555
custom_dir: overrides
56+
font:
57+
text: Roboto Slab
4658
features:
4759
- navigation.tabs # Top-level tabs
4860
- navigation.tabs.sticky # Keep tabs visible
@@ -59,12 +71,12 @@ theme:
5971

6072
palette:
6173
- scheme: default
62-
primary: blue
74+
primary: custom
6375
toggle:
6476
icon: material/brightness-7
6577
name: Switch to dark mode
6678
- scheme: slate
67-
primary: blue
79+
primary: custom
6880
toggle:
6981
icon: material/brightness-4
7082
name: Switch to light mode
@@ -99,9 +111,12 @@ extra:
99111
link: https://bsky.app/profile/concourse-ci.org
100112
- icon: fontawesome/solid/paper-plane
101113
link: mailto:[email protected]
114+
version: 7.14.2
115+
116+
not_in_nav: |
117+
index.md
102118
103119
nav:
104-
- index.md
105120
- Docs:
106121
- docs/index.md
107122
- Getting Started:

ci/build

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,44 @@
22

33
set -e -x
44

5-
apk add --no-progress --quiet ytt
5+
apk add git
66

77
git config --global user.email "[email protected]"
88
git config --global user.name "Concourse Bot"
99

10+
# Change to the docs repo
1011
pushd docs
11-
if [ -e .git ] && git remote | grep origin >/dev/null; then
12-
# undo single-branch clone and fetch gh-pages
13-
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
14-
git fetch origin gh-pages
12+
# Install dependencies
13+
pip install zensical nodeenv
14+
nodeenv env --node=22.21.1
15+
npm ci
1516

16-
ref=$(git rev-parse HEAD)
17-
git checkout gh-pages
18-
git pull
19-
git merge --no-edit $ref
17+
# Remove apps before build
18+
rm -rf docs/libs/examples/apps/
19+
rm -rf docs/libs/examples/**/*.md
2020

21-
# clear out old content
22-
git rm *.html || true
23-
git rm search_index.json || true
24-
fi
21+
# Create site directory
22+
npm run build
2523

26-
./scripts/build
24+
# Copy well-known for BlueSky
25+
cp -R .well-known site/.well-known
2726

2827
if [ -e .git ]; then
28+
git checkout gh-pages
29+
git rm -rf .
30+
31+
rm -rf venv/ node_modules/ env/ .cache/ overrides/ docs/ .idea/
32+
33+
mv site/{.,}* .
34+
rmdir site
35+
36+
# Create CNAME file
37+
echo -n "concourse-ci.org" > CNAME
38+
39+
# Create robots.txt file
40+
echo "User-agent: *" > robots.txt
41+
echo -n "Disallow: /single-page.html" >> robots.txt
42+
2943
git add -A
3044
git commit --allow-empty -m "build"
3145
fi

ci/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ platform: linux
44
image_resource:
55
type: registry-image
66
source:
7-
repository: 3.14-alpine3.21
7+
repository: python
8+
tag: 3.14-alpine3.21
89

910
inputs:
1011
- name: docs

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Concourse
3+
template: home.html
34
hide:
45
- navigation
56
- toc
File renamed without changes.
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
2+
body {
3+
background-image: url('../images/concourse-pattern.svg');
4+
position: fixed;
5+
top: 0;
6+
left: 0;
7+
width: 100vw;
8+
height: 100vh;
9+
background-size: cover;
10+
background-position: center center;
11+
background-repeat: no-repeat;
12+
background-attachment: fixed;
13+
}
14+
15+
.centered-section {
16+
display: flex;
17+
align-items: center;
18+
justify-content: center;
19+
height: 100%;
20+
}
21+
22+
.side-by-side {
23+
background-color: rgba(
24+
255,
25+
255,
26+
255,
27+
0.2
28+
);
29+
border-radius: 8px;
30+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
31+
text-align: center;
32+
display: grid;
33+
grid-template-columns: 1fr 1fr;
34+
grid-gap: 0 4%;
35+
padding: 3em 1.5em;
36+
margin-left: 1.5em;
37+
margin-right: 1.5em;
38+
}
39+
40+
.side-by-side .segment {
41+
display: flex;
42+
flex-direction: column;
43+
text-align: left;
44+
padding: 10px;
45+
}
46+
47+
.splash-intro {
48+
color: #efeeee;
49+
}
50+
51+
.splash-intro p {
52+
font-size: 1rem;
53+
}
54+
55+
.splash-intro h1 {
56+
font-size: xx-large;
57+
font-weight: bold;
58+
color: #efeeee;
59+
}
60+
61+
.splash-intro > * > .text-links {
62+
text-decoration: underline !important;
63+
color: #efeeee;
64+
}
65+
66+
.splash-intro > * > .text-links:hover {
67+
color: #efeeee;
68+
}
69+
70+
.quick-start {
71+
width: fit-content;
72+
flex-grow: 0;
73+
}
74+
75+
.splash-downloads {
76+
background: #2a2929;
77+
justify-self: stretch;
78+
position: relative;
79+
}
80+
81+
.split-header {
82+
display: flex;
83+
flex-direction: row;
84+
justify-content: space-between;
85+
}
86+
87+
/* The container <div> - needed to position the dropdown content */
88+
.dropdown {
89+
position: absolute;
90+
display: inline-block;
91+
}
92+
93+
/* Dropdown Content (Hidden by Default) */
94+
.dropdown-content {
95+
display: none;
96+
position: absolute;
97+
background-color: #f1f1f1;
98+
min-width: 160px;
99+
z-index: 1;
100+
}
101+
102+
/* Links inside the dropdown */
103+
.dropdown-content a {
104+
color: black;
105+
padding: 12px 16px;
106+
text-decoration: none;
107+
display: block;
108+
}
109+
110+
/* Change color of dropdown links on hover */
111+
.dropdown-content a:hover {
112+
background-color: #ddd
113+
}
114+
115+
/* Show the dropdown menu on hover */
116+
.dropdown:hover .dropdown-content {
117+
display: block;
118+
}
119+
120+
/* Change the background color of the dropdown button when the dropdown content is shown */
121+
.md-button.download-dropdown-btn:hover {
122+
border-left: 1px solid white
123+
}
124+
125+
.download-btn, .download-dropdown-btn {
126+
height: 3em;
127+
}
128+
129+
.download-dropdown-btn {
130+
width: fit-content;
131+
}
132+
133+
.md-button.download-btn {
134+
border-radius: 1em 0 0 1em;
135+
}
136+
137+
.md-button.download-dropdown-btn {
138+
border-radius: 0 1em 1em 0;
139+
border-left: 1px solid white
140+
}
141+
142+
.download-ctr {
143+
display: grid;
144+
grid-template-columns: 0.75fr 1.25fr;
145+
}
146+
147+
.std-flex-box {
148+
display: flex;
149+
justify-content: space-between;
150+
align-items: center;
151+
padding: 0.5em;
152+
}
153+
154+
.std-flex-box > div > .tool-select {
155+
width: 17em;
156+
height: 2em;
157+
}
158+
159+
#release-text {
160+
margin-top: 0;
161+
margin-bottom: 0;
162+
}
163+
164+
.splash-split {
165+
display: flex;
166+
flex-direction: column;
167+
justify-content: space-between;
168+
height: 100%;
169+
margin: 1.5em 1em;
170+
color: white;
171+
}
172+
173+
@media screen and (max-width: 1219px) { /* Example breakpoint for tablets */
174+
.side-by-side, .download-ctr {
175+
grid-template-columns: 1fr; /* Two equal columns */
176+
}
177+
}
178+

0 commit comments

Comments
 (0)