Skip to content

Commit 410e497

Browse files
committed
feat: move html to different block to be able to use global css
Signed-off-by: Kevin Bimonte <[email protected]>
1 parent 8826c22 commit 410e497

File tree

2 files changed

+93
-57
lines changed

2 files changed

+93
-57
lines changed
Lines changed: 52 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,79 @@
11

22
body {
3-
background-image: url('../images/concourse-pattern.svg');
4-
position: fixed;
5-
top: 0;
6-
left: 0;
7-
width: 100%;
8-
height: 100%;
9-
background-size: cover;
10-
background-position: center center;
11-
background-repeat: no-repeat;
12-
background-attachment: fixed;
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;
1313
}
1414

1515
.centered-section {
16-
position: relative;
17-
/* left: 50%; */
18-
top: 30%;
19-
width: 90%;
20-
/* transform: translate(-50%, -50%); */
21-
background-color: rgba(
22-
255,
23-
255,
24-
255,
25-
0.2
26-
);
27-
border-radius: 8px;
28-
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
29-
text-align: center;
30-
/* padding: 140px 70px; */
31-
margin-top: 200px;
32-
padding-left: 20px;
16+
display: flex;
17+
align-items: center;
18+
justify-content: center;
19+
height: 100%;
3320
}
3421

3522
.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;
3632
display: grid;
37-
margin-bottom: 1em;
33+
/*margin-bottom: 1em;*/
3834
grid-template-columns: 48% 48%;
3935
grid-gap: 0 4%;
40-
padding-top: 140px;
36+
/*padding-top: 140px;*/
37+
padding: 3em 1.5em;
38+
margin-left: 1.5em;
39+
margin-right: 1.5em;
4140
}
4241

4342
.side-by-side .segment {
44-
display: flex;
45-
flex-direction: column;
46-
text-align: left;
47-
padding: 10px;
43+
display: flex;
44+
flex-direction: column;
45+
text-align: left;
46+
padding: 10px;
4847
}
4948

5049
.splash-intro {
51-
background-color: aqua;
50+
/*background-color: aqua;*/
51+
color: #efeeee;
5252
}
5353

5454
.splash-intro p {
55-
font-size: 1rem;
55+
font-size: 1rem;
5656
}
57+
5758
.splash-intro h1 {
58-
font-size: xx-large;
59+
font-size: xx-large;
60+
color: #efeeee;
61+
}
62+
63+
.splash-intro a {
64+
text-decoration: underline !important;
65+
color: #efeeee;
66+
}
67+
68+
.splash-intro a:hover {
69+
color: #efeeee;
5970
}
6071

6172
.right-flex {
62-
background-color: blueviolet;
73+
background-color: blueviolet;
6374
}
6475

76+
.right-flex .grid {
77+
display: grid;
78+
grid-template-columns: 1fr 1fr;
79+
}

overrides/home.html

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,44 @@
1-
{% extends "main.html" %} {% block tabs %} {{ super() }}
2-
<link rel="stylesheet" href="assets/stylesheets/home.css" />
1+
{% extends "main.html" %}
2+
{% block tabs %}
3+
{{ super() }}
4+
5+
{% endblock %}
6+
7+
{% block content %}
8+
9+
<link rel="stylesheet" href="assets/stylesheets/home.css"/>
310
<div class="centered-section">
4-
<div class="side-by-side">
5-
<div class="segment splash-intro">
6-
<h1>Concourse is an open-source continuous thing-doer.</h1>
7-
<p>
8-
Centered around the simple mechanics of
9-
<a href="https://concourse-ci.org/resources.html">resources</a>,
10-
<a href="https://concourse-ci.org/tasks.html">tasks</a>, and
11-
<a href="https://concourse-ci.org/jobs.html">jobs</a>, Concourse
12-
delivers a versatile approach to automation that excels at
13-
<a href="https://en.wikipedia.org/wiki/Continuous_integration">CI</a>/<a
14-
href="https://en.wikipedia.org/wiki/Continuous_delivery"
15-
>CD</a
16-
>.
17-
</p>
11+
<div class="side-by-side">
12+
<div class="segment splash-intro">
13+
<h1>Concourse is an open-source continuous thing-doer.</h1>
14+
<p>
15+
Centered around the simple mechanics of
16+
<a href="docs/resources">resources</a>,
17+
<a href="docs/tasks">tasks</a>, and
18+
<a href="docs/jobs">jobs</a>, Concourse
19+
delivers a versatile approach to automation that excels at
20+
<a href="https://en.wikipedia.org/wiki/Continuous_integration">CI</a>/<a
21+
href="https://en.wikipedia.org/wiki/Continuous_delivery">CD</a>.
22+
</p>
23+
</div>
24+
<div class="segment right-flex">
25+
<div class="grid">
26+
<p>Download the Latest Release</p>
27+
<button class="md-button md-button--primary"> v7.14.2 </button>
28+
</div>
29+
<div class="grid">
30+
<div><pre>concourse</pre> cli</div>
31+
<button class="md-button md-button--primary">Button</button>
32+
</div>
33+
<div class="grid">
34+
<div><pre>concourse</pre> cli</div>
35+
<button class="md-button md-button--primary">Button</button>
36+
</div>
37+
</div>
1838
</div>
19-
<div class="segment right-flex"><h1>Concourse</h1></div>
20-
</div>
2139
</div>
22-
{% endblock %} {% block content %}{% endblock %} {% block footer %}{% endblock
23-
%}
40+
41+
{% endblock %}
42+
43+
{% block footer %}
44+
{% endblock%}

0 commit comments

Comments
 (0)