Skip to content

Commit f5b8600

Browse files
committed
renames section2 to keyfeatures
1 parent 5a4d365 commit f5b8600

File tree

6 files changed

+51
-51
lines changed

6 files changed

+51
-51
lines changed

config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ params:
5454
alttext: Cricket ball on green field.
5555
url: /case-studies/cricket-analytics
5656

57-
section2:
57+
keyfeatures:
5858
title: KEY FEATURES
5959
features:
6060
- title: Powerful N-dimensional arrays

layouts/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
{{ partial "news.html" . }}
88
{{ end }}
99

10-
{{ if .Site.Params.section2 }}
11-
{{ partial "section2.html" . }}
10+
{{ if .Site.Params.keyfeatures }}
11+
{{ partial "keyfeatures.html" . }}
1212
{{ end }}
1313

1414
{{ if .Site.Params.shell }}

layouts/partials/css.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
<link rel="stylesheet" type="text/css" href="{{ "css/tabs.css" | relURL }}" />
2626
<link rel="stylesheet" type="text/css" href="{{ "css/content.css" | relURL }}" />
2727
<link rel="stylesheet" type="text/css" href="{{ "css/news.css" | relURL }}" />
28-
<link rel="stylesheet" type="text/css" href="{{ "css/section2.css" | relURL }}" />
28+
<link rel="stylesheet" type="text/css" href="{{ "css/keyfeatures.css" | relURL }}" />
2929
<link rel="stylesheet" type="text/css" href="{{ "css/section3.css" | relURL }}" />

layouts/partials/keyfeatures.html

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{{- $keyfeatures := .Site.Params.keyfeatures }}
2+
{{- $title := index $keyfeatures "title" }}
3+
{{- $features := index $keyfeatures "features" }}
4+
<section class="keyfeatures">
5+
<div class="container">
6+
<h1 class="keyfeatures-header">
7+
{{ $title }}
8+
<a class="keyfeatures-header-link hvr-icon-forward" href="/learn">
9+
<span class="keyfeatures-header-link-title">LEARN MORE</span>
10+
<span class="keyfeatures-header-link-icon" style="color: firebrick;">
11+
<i class="fal fa-arrow-circle-right hvr-icon"></i>
12+
</span>
13+
</a>
14+
</h1>
15+
<div class="keyfeatures-box-container">
16+
{{- range $features }}
17+
<div class="keyfeatures-box-content keyfeatures-underline">
18+
<p>
19+
<div class="keyfeatures-box-title">{{ .title }}</div>
20+
<div class="keyfeatures-box-text">{{ .text | markdownify }}</div>
21+
</p>
22+
</div>
23+
{{- end }}
24+
</div>
25+
</div>
26+
</section>

layouts/partials/section2.html

-26
This file was deleted.

static/css/section2.css renamed to static/css/keyfeatures.css

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
.section2 {
1+
.keyfeatures {
22
margin-bottom: 30px;
33
}
44

5-
.section2 .container {
5+
.keyfeatures .container {
66
display: flex;
77
flex-direction: column;
88
}
99

10-
.section2-header {
10+
.keyfeatures-header {
1111
display: flex;
1212
flex-direction: column;
1313
width: 100%;
@@ -16,7 +16,7 @@
1616
font-size: 27px;
1717
}
1818

19-
.section2-header-link {
19+
.keyfeatures-header-link {
2020
display: flex;
2121
width: 156px;
2222
align-items: baseline;
@@ -29,12 +29,12 @@
2929
margin-top: 5px;
3030
}
3131

32-
.section2-header-link-title {
32+
.keyfeatures-header-link-title {
3333
padding: 2px 5px 0 0;
3434
color: #013243;
3535
}
3636

37-
section2-header-link i {
37+
keyfeatures-header-link i {
3838
padding: 2px 0 0 0;
3939
}
4040

@@ -64,76 +64,76 @@ section2-header-link i {
6464
transform: translateX(4px);
6565
}
6666

67-
.section2-box-container {
67+
.keyfeatures-box-container {
6868
display: flex;
6969
flex-wrap: wrap;
7070
justify-content: center;
7171
}
7272

73-
.section2-box-content {
73+
.keyfeatures-box-content {
7474
height: 175px;
7575
min-width: 275px;
7676
width: 325px;
7777
margin: 30px 30px 30px 0;
7878
border-radius: 3px;
7979
}
8080

81-
.section2-box-title {
81+
.keyfeatures-box-title {
8282
margin: 15px;
8383
font-size: 16px;
8484
text-transform: uppercase;
8585
}
8686

87-
.section2-box-text > a {
87+
.keyfeatures-box-text > a {
8888
color: #4D77CF;
8989
}
9090

91-
.section2-box-text {
91+
.keyfeatures-box-text {
9292
margin: 30px 15px;
9393
font-size: 14px;
9494
}
9595

96-
.section2-box-content:hover > .section2-box-text, .section2-box-content:focus > .section2-box-text, .section2-box-content:active > .section2-box-text {
96+
.keyfeatures-box-content:hover > .keyfeatures-box-text, .keyfeatures-box-content:focus > .keyfeatures-box-text, .keyfeatures-box-content:active > .keyfeatures-box-text {
9797
color: #6C7A89;
9898
}
9999

100100
@media only screen and (max-width: 1280px) {
101-
.section2 .container {
101+
.keyfeatures .container {
102102
align-items: center;
103103
justify-content: center;
104104
}
105105

106-
.section2-box-container {
106+
.keyfeatures-box-container {
107107
justify-content: center;
108108
}
109109
}
110110

111111
@media only screen and (max-width: 1090px) {
112-
.section2 .container {
112+
.keyfeatures .container {
113113
margin: 0 6vw;
114114
}
115115
}
116116

117117

118118
@media only screen and (max-width: 525px) {
119-
.section2-header {
119+
.keyfeatures-header {
120120
flex-direction: column;
121121
}
122122
}
123123

124124
@media only screen and (max-width: 425px) {
125-
.section2 .container {
125+
.keyfeatures .container {
126126
align-items: center;
127127
justify-content: center;
128128
margin: 0 10%;
129129
}
130130

131-
.section2-box-content {
131+
.keyfeatures-box-content {
132132
margin: 30px;
133133
}
134134
}
135135

136-
.section2-underline {
136+
.keyfeatures-underline {
137137
display: inline-block;
138138
vertical-align: middle;
139139
-webkit-transform: perspective(1px) translateZ(0);
@@ -144,7 +144,7 @@ section2-header-link i {
144144
overflow: hidden;
145145
}
146146

147-
.section2-underline:before {
147+
.keyfeatures-underline:before {
148148
content: "";
149149
position: absolute;
150150
z-index: -1;
@@ -161,6 +161,6 @@ section2-header-link i {
161161
transition-timing-function: ease-out;
162162
}
163163

164-
.section2-underline:hover:before, .section2-underline:focus:before, .section2-underline:active:before {
164+
.keyfeatures-underline:hover:before, .keyfeatures-underline:focus:before, .keyfeatures-underline:active:before {
165165
right: 0;
166166
}

0 commit comments

Comments
 (0)