Skip to content

Commit 54bba00

Browse files
Chaged background overlay opacity for contact to make title stand out better.
Changed contact title / subtitle text - suggestions are welcome. Centered send message button. Styled contact page. Unified colors on the home page (titles / subtitles).
1 parent 0eb72eb commit 54bba00

File tree

3 files changed

+77
-15
lines changed

3 files changed

+77
-15
lines changed

_pages/04_contact.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
<style>
88
.contact__background-img {
9-
background-size: cover;
9+
background-size: contain;
1010
background: linear-gradient(90deg,
11-
rgba(0, 0, 0, 0.7),
12-
rgba(0, 0, 0, 0.7)),
11+
rgba(0, 0, 0, 0.75),
12+
rgba(0, 0, 0, 0.75)),
1313
url("{{ site.baseurl }}/static/images/contact/contact_top_1920x600px.jpg") top center no-repeat;
1414
}
1515
</style>
@@ -19,13 +19,13 @@
1919
<div class="contact__background-img">
2020
<div class="row container-fluid">
2121
<div class="col-sm-12">
22-
<h2 class="section-title contact__title">Contact</h2>
23-
<h3 class="contact__subtitle">Let us know about your ideas and concerns</h3>
22+
<h2 class="section-title contact__title">Contact Us</h2>
23+
<h3 class="contact__subtitle">Got an idea? Can you or your company support us? Let us know.</h3>
2424
</div>
2525
</div>
2626
</div>
2727
<!--Contact form-->
28-
<form class="contact__form container" method="POST" action="//formspree.io/tomaszk1@hotmail.co.uk" role="form">
28+
<form class="contact__form container" method="POST" action="//formspree.io/py.sprints@gmail.com" role="form">
2929
<div class="row">
3030
<div class="col-md-6">
3131
<div class="form-group">
@@ -50,7 +50,7 @@ <h3 class="contact__subtitle">Let us know about your ideas and concerns</h3>
5050
<div class="help-block with-errors"></div>
5151
</div>
5252
</div>
53-
<div class="col-md-12">
53+
<div class="col-md-12 text-center">
5454
<input type="text" name="_gotcha" style="display: none">
5555
<input type="hidden" name="_subject" value="Message from Python Sprints">
5656
<button type="submit" class="contact__submit-button btn btn-success btn-send btn-lg">Send Message<span class="contact__icon"><i class="fas fa-envelope"></i></span></button>

_sass/contact.scss

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,84 @@
11
.contact {
22
margin-top: -66px;
3+
padding-bottom: 5vh;
34
}
45

5-
.contact__background-img {
6+
@media (orientation: landscape) {
7+
.contact__background-img {
68
min-height: 55vh;
9+
}
10+
}
11+
12+
@media (orientation: portrait) {
13+
.contact__background-img {
14+
min-height: 25vh;
15+
}
716
}
817

918
.contact .contact__title {
19+
margin-top: 20vh;
1020
color: antiquewhite;
1121
}
1222

1323
.contact__subtitle {
14-
font-size: 1.5em;
24+
font-size: 1.75em;
1525
text-align: center;
1626
font-family: 'Playfair Display', serif;
1727
color: #A55605;
28+
margin-bottom: 10vh;
1829
}
1930

2031
.contact__form {
21-
margin-top: 5%;
32+
margin-top: 10%;
33+
border-radius: 5px;
34+
background: linear-gradient(180deg,
35+
rgba(0, 0, 0, 0.75),
36+
rgba(7, 41, 72, 0.85) 50%,
37+
#072948 100%);
38+
height: 100%;
39+
}
40+
41+
.contact__label {
42+
color: antiquewhite;
43+
}
44+
45+
.form-group {
46+
margin-top: 2em;
47+
margin-bottom: 0;
48+
}
49+
50+
.form-control {
51+
background: rgba(0, 0, 0, 0.5);
52+
&:focus {
53+
background: rgba(250, 235, 215, 0.5);
54+
color: black;
55+
}
56+
}
57+
58+
.contact__submit-button {
59+
margin-top: 2em;
60+
min-width: 10em;
61+
font-size: 1.25em;
62+
font-family: 'Playfair Display', serif;
63+
text-align: center;
64+
background: #072948;
65+
border: #035E9A 2px ridge;
66+
transition: all 0.5s ease-in;
67+
color: #7FA0C2;
68+
&:hover {
69+
text-align: center;
70+
background: rgba(7, 41, 72, 0.53);
71+
border: #A55605 2px ridge;
72+
color: antiquewhite;
73+
74+
}
75+
&:hover > .contact__icon {
76+
color: antiquewhite;
77+
}
78+
}
79+
80+
.contact__icon {
81+
transition: all 0.5s ease-in;
82+
margin-left: 5%;
83+
color: #7FA0C2;
2284
}

_sass/style.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ a {
8383

8484
.navigation__brand-name {
8585
font-size: 0.8em;
86-
color: #ffffff;
86+
color: antiquewhite;
8787
font-family: 'Share Tech Mono', monospace;
8888
}
8989

@@ -120,7 +120,7 @@ a {
120120

121121
.navigation__title {
122122
font-family: 'Share Tech Mono', monospace;
123-
color: #ffffff;
123+
color: antiquewhite;
124124
font-size: 3.5em;
125125
margin-top: 40vh;
126126
text-align: center;
@@ -129,7 +129,7 @@ a {
129129
.navigation__subtitle {
130130
font-size: 1.16em;
131131
font-family: 'Share Tech Mono', monospace;
132-
color: #818181;
132+
color: #A55605;
133133
text-align: center;
134134
margin-bottom: 50%;
135135
}
@@ -585,8 +585,7 @@ a {
585585
}
586586

587587
.footer {
588-
margin-top: 10%;
589-
padding-top: 2.5%;
588+
margin-top: 5%;
590589
background: #072948;
591590
border-top: #7fa0c2 1px solid;
592591
}
@@ -618,6 +617,7 @@ a {
618617
}
619618

620619
.footer__section-title {
620+
margin-top: 1em;
621621
color: aliceblue;
622622
font-size: 1.5em;
623623
text-align: center;

0 commit comments

Comments
 (0)