Skip to content

Commit 0eed7dd

Browse files
committed
Change colors via config file
1 parent 97fbdcb commit 0eed7dd

File tree

5 files changed

+37
-44
lines changed

5 files changed

+37
-44
lines changed

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ features :
3434
fontawesome_icon_name : adjust
3535

3636
# Theme Settings
37-
accent_color : #000000
38-
image_overlay_color : #000000
37+
accent_color : "#1d63ea"
38+
image_overlay_color : "#363b3d"
3939

4040

4141
# Analytics

_sass/base.scss

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
// Layout and grids
22
$content-width: 1170px;
33

4-
// Colors
5-
$accent-color: #00ff33;
6-
74
// Fonts and sizes
85
$font: 'Helvetica Neue', sans-serif;
96
$primary-text-color: #000;
107

11-
*,
12-
*::before,
13-
*::after {
14-
-webkit-box-sizing: border-box;
15-
-moz-box-sizing: border-box;
16-
box-sizing: border-box;
17-
}
18-
198
html {
209
font-size: 62.5%;
2110
}
@@ -40,7 +29,24 @@ h4 {
4029
font-size: 2rem;
4130
}
4231

32+
// Better font rendering
4333
body {
44-
-webkit-font-smoothing: antialiased; // Better font rendering
34+
-webkit-font-smoothing: antialiased;
4535
-moz-osx-font-smoothing: grayscale;
36+
}
37+
38+
// Shadows
39+
$drop-shadow: drop-shadow(0px 5px 10px rgba(#000, 0.1)) drop-shadow(0px 1px 1px rgba(#000, 0.2));
40+
41+
42+
// Various resets
43+
*,
44+
*::before,
45+
*::after {
46+
-webkit-box-sizing: border-box;
47+
-moz-box-sizing: border-box;
48+
box-sizing: border-box;
49+
50+
margin: 0;
51+
padding: 0;
4652
}

_sass/layout.scss

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
body {
22
box-sizing: border-box;
3-
margin: 0;
43
font-family: $font;
54
}
65

@@ -9,10 +8,10 @@ body {
98
height: 768px;
109
background:
1110
linear-gradient(
12-
rgba(#363b3d, 0.6),
13-
rgba(#363b3d, 0.6)
14-
),
15-
/* bottom, image */
11+
rgba($image-overlay-color, 0.6),
12+
rgba($image-overlay-color, 0.6)
13+
),
14+
1615
url("/assets/headerimage.png");
1716

1817
background-repeat: no-repeat;
@@ -24,7 +23,7 @@ body {
2423
.headerBackground {
2524
width: 100%;
2625
height: 115px;
27-
background-color: rgba(#000000, 0.1);
26+
background-color: rgba(#000, 0.1);
2827
}
2928

3029
.container {
@@ -96,10 +95,6 @@ nav > ul li a {
9695
color: #fff;
9796
}
9897

99-
.iphonePreview {
100-
grid-area: p;
101-
}
102-
10398
.appInfo {
10499
grid-area: i;
105100
display: flex;
@@ -109,10 +104,8 @@ nav > ul li a {
109104
}
110105

111106
.appIconShadow {
112-
margin: 0px;
113-
padding: 0px;
114107
display: flex;
115-
filter: drop-shadow(0px 5px 10px rgba(#000, 0.1)) drop-shadow(0px 1px 1px rgba(#000, 0.2));
108+
filter: $drop-shadow;
116109
}
117110

118111
.appIconLarge {
@@ -129,14 +122,12 @@ nav > ul li a {
129122
}
130123

131124
.appName {
132-
margin: 0px;
133125
margin-top: -5px;
134126
color: #fff;
135127
}
136128

137129
.appPrice {
138130
color: #fff;
139-
margin: 0px;
140131
margin-top: 8px;
141132
font-weight: normal;
142133
}
@@ -149,23 +140,22 @@ nav > ul li a {
149140
}
150141

151142
.appDescription {
152-
margin: 0px;
153143
color: #fff;
154144
font-weight: normal;
155145
}
156146

157147
.downloadButtonsContainer {
158148
margin-top: 42px;
159-
}
160-
161-
.appStore {
162-
margin-left: 24px;
149+
filter: $drop-shadow;
163150
}
164151

165152
.playStore {
153+
margin-right: 25px;
154+
margin-bottom: 25px;
166155
}
167156

168157
.iphonePreview {
158+
grid-area: p;
169159
background-image: url(/assets/Blue.png);
170160
background-repeat: no-repeat;
171161
margin-top: 68px;
@@ -226,7 +216,7 @@ nav > ul li a {
226216
}
227217

228218
.iconTop {
229-
color: #1d63ea;
219+
color: $accent-color;
230220
}
231221

232222
.socialIconBack {
@@ -247,11 +237,6 @@ nav > ul li a {
247237
line-height: 1.5;
248238
}
249239

250-
.featureText * {
251-
margin: 0px;
252-
padding: 0px;
253-
}
254-
255240
footer {
256241
grid-area: f;
257242
display: flex;
@@ -266,7 +251,6 @@ footer {
266251
text-align: center;
267252
padding-top: 100px;
268253
padding-bottom: 100px;
269-
margin: 0px;
270254
}
271255

272256
.footerIcons {

css/main.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Front matter comment to ensure Jekyll properly reads file.
33
---
44

5+
$accent-color: {{ site.accent_color }};
6+
$image-overlay-color: {{ site.image_overlay_color }};
7+
58
@import
69
"base",
710
"layout"

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ <h3 class="appPrice">
5050
</div>
5151
<div class="appDescriptionContainer">
5252
<h4 class ="appDescription">
53-
Wherever some that and kiwi that well dolphin alas this the mindfully jeepers one aside canny one preparatory up less therefore hello oh amid goodness checked.
53+
{{ site.app_description }}
5454
</h4>
5555
</div>
5656
<div class="downloadButtonsContainer">
57-
<a href=""><img class="playStore" src="/assets/playstore.png"></a>
58-
<a href=""><img class="appStore" src="/assets/appstore.png"></a>
57+
<a href="https://"><img class="playStore" src="/assets/playstore.png"></a>
58+
<a href="https://"><img class="appStore" src="/assets/appstore.png"></a>
5959
</div>
6060
</div>
6161
{% include features.html %}

0 commit comments

Comments
 (0)