Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a9a6b04

Browse files
added homepage blurbs
1 parent 60d7c55 commit a9a6b04

File tree

7 files changed

+73
-4
lines changed

7 files changed

+73
-4
lines changed

content/home/blurb/competitions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Competitions"
33
icon: "flag"
4+
type: "blurb"
45
weight: 3
56
---
67

content/home/blurb/ctf-meetings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "CTF Meetings"
33
icon: "users"
4+
type: "blurb"
45
weight: 1
56
---
67

content/home/blurb/guest-speakers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Guest Speakers"
33
icon: "street-view"
4+
type: "blurb"
45
weight: 2
56
---
67

layouts/index.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ <h1 class="hero-title py-1">{{ .Site.Params.FullTitle }}</h1>
99
</div>
1010
</div>
1111

12-
<div class="bg-light" style="min-height: 40vh;">
13-
<p>help me</p>
12+
<div class="bg-light justify-content-center" style="min-height: 60vh;">
13+
<div class="blurb-box d-flex flex-wrap justify-content-around">
14+
{{ range .Site.Sections }}
15+
{{ if eq .Type "home" }}
16+
{{ range .Sections.ByWeight }}
17+
{{ partial "home/blurb.html" . }}
18+
{{ end }}
19+
{{ end }}
20+
{{ end }}
21+
</div>
1422
</div>
1523

1624
{{ end }}

layouts/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<link rel="preconnect" href="https://fonts.googleapis.com">
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10-
<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@300;600&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
10+
<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@300;600;800&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
1111

1212
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css" integrity="sha512-q3eWabyZPc1XTCmF+8/LuE1ozpg5xxn7iO89yfSOd5/oKvyqLngoNGsx8jq92Y8eXJ/IRxQbEC+FGSYxtk2oiw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
1313
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/solid.min.css" integrity="sha512-LopA1sokwAW/FNZdP+/5q8MGyb9CojL1LTz8JMyu/8YZ8XaCDn1EOm6L7RWIIOHRM7K4jwnHuOmyLZeeeYxSOA==" crossorigin="anonymous" referrerpolicy="no-referrer" />

layouts/partials/home/blurb.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{ range where .Data.Pages "Section" .Section }}
2+
<div class="blurb-each text-center">
3+
<i class="fas fa-{{ .Params.icon }} blurb-icons fa-4x"></i>
4+
<h5 class="blurb-title">{{ .Title }}</h5>
5+
<p>{{ .Content }}</p>
6+
</div>
7+
{{ end }}

static/caseyhates.css

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:root {
22
--primary-color: #dc4405;
33
--secondary-color: #f15f25;
4+
--text-color: #7a7a7a;
45
}
56

67
/* protip: I HATE FOOTERS */
@@ -73,7 +74,7 @@ body {
7374
letter-spacing: 0.9px;
7475
color: white;
7576
margin-bottom: 10vw;
76-
min-height: 50vh;
77+
min-height: 40vh;
7778
}
7879

7980
.hero-title {
@@ -113,3 +114,53 @@ body {
113114
.discord-button:hover {
114115
border-color: rgba(255,255,255,.7);
115116
}
117+
118+
119+
.blurb-box {
120+
min-height: 200px;
121+
padding: 0 25vw;
122+
}
123+
124+
.blurb-each {
125+
width: 15rem;
126+
color: var(--text-color);
127+
}
128+
129+
.blurb-title {
130+
text-transform: uppercase;
131+
font-family: "Mulish", sans-serif;
132+
line-height: 1.5rem;
133+
font-size: 1rem;
134+
font-weight: 800;
135+
letter-spacing: .14rem;
136+
color: #3C424F;
137+
}
138+
139+
.blurb-each > p {
140+
font-size: .99rem;
141+
}
142+
143+
.blurb-icons {
144+
color: white;
145+
background-color: var(--primary-color);
146+
border-radius: 100%;
147+
padding: 1.75rem 1.5rem;
148+
width: 128px;
149+
height: 128px;
150+
box-shadow: 0 10px 30px 0 rgba(49,52,57,.3),0 10px 30px rgba(0,0,0,.08);
151+
}
152+
153+
/*@include media-breakpoint-up(lg) {*/
154+
@media (min-width: 992px) {
155+
.blurb-icons {
156+
position: relative;
157+
bottom: 64px;
158+
}
159+
}
160+
161+
/*@include media-breakpoint-down(md) {*/
162+
@media (max-width: 991.98px) {
163+
.blurb-icons {
164+
margin: 1.5rem;
165+
}
166+
}

0 commit comments

Comments
 (0)