-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathresources.html
120 lines (92 loc) · 1.76 KB
/
resources.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
layout: default
title: Resources
---
<h1>Resources</h1>
{% for category in site.data.resource_categories %}
<h3>{{category.name}}</h3>
<section class="resourcesSection">
{% for item in site.data.resources %}
{% if item.category == category.name %}
<div class="course">
<div class="course-preview">
<img src="assets/images/{{item.logourl}}"/>
</div>
<div class="course-info">
<h6>{{item.subheading}}</h6>
<h2>{{item.name}}</h2>
<p>{{item.description}}</p><br><br>
<a class="btn" href="{{item.link}}" style="color: white !important">View</a>
</div>
</div>
{% endif %}
{% endfor %}
</section>
{% endfor %}
<style type="text/css">
section {
display: grid;
justify-content: center;
width: 100%;
grid-template-columns: 1fr 1fr;
grid-gap: 25px;
margin-bottom: 50px;
}
@media only screen and (max-width: 1250px) {
section {
grid-template-columns: 1fr;
}
}
.course-preview img {
width: 175px;
height: auto;
}
.course {
background-color: #fff;
border-radius: 10px;
display: flex;
max-width: 100%;
margin: 20px;
overflow: hidden;
width: 100%;
height: auto;
}
.course h6 {
opacity: 0.6;
margin: 0;
letter-spacing: 1px;
text-transform: uppercase;
}
.course h2 {
letter-spacing: 1px;
margin: 10px 0;
}
.course-preview {
background-color: #2E86C1;
color: #fff;
padding: 30px;
max-width: 250px;
}
.course-preview a {
color: #fff;
display: inline-block;
font-size: 12px;
opacity: 0.6;
margin-top: 30px;
text-decoration: none;
}
.course-info {
padding: 30px;
position: relative;
width: 100%;
}
@media screen and (max-width: 50em) {
.course-preview {
display: none;
}
.course {
margin-left: 0px !important;
margin-right: 0px !important;
}
}
</style>