Skip to content

Commit 18fffb4

Browse files
authored
Merge pull request #62 from chromy/add-events-page
Add events page
2 parents 701e33e + 14a13fb commit 18fffb4

File tree

4 files changed

+69
-4
lines changed

4 files changed

+69
-4
lines changed

_data/events.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"name": "Queer Code Pride Edition",
4+
"location": "Makers Academy 50-52 Commercial St, E1 6LT · London",
5+
"description": "This month we have two wonderful speakers to help us celebrate Pride! We'll be providing food before the talks, and there will be time to hang out and relax afterwards with your fellow queer coders.",
6+
"datetime": "2019-08-04T18:00:00Z",
7+
"url": "https://www.meetup.com/Queer-Code-London/events/262452231/",
8+
"hostGroup": "London"
9+
},
10+
{
11+
"name": "Breakfast & Catch-up",
12+
"datetime": "2019-07-25T08:00:00Z",
13+
"location": "The Warehouse, 211 Old Street, 2nd Floor, London EC1V 9NR",
14+
"description": "Socialise and chat over a free-of-charge buffet breakfast. You can arrive and leave any time between 8am and 9:30am, and a hot and cold buffet breakfast will be available throughout the entire time of the event. We will be seated at the far end of the room (look to your left after signing in at reception), near the space where the food is laid out.",
15+
"hostGroup": "London",
16+
"url": "https://www.meetup.com/Queer-Code-London/events/262381953/"
17+
}
18+
]

_includes/header.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,24 @@
4646

4747
<div class="navbar-menu is-active" id="navMenu">
4848
<div class="navbar-end">
49-
<a class="navbar-item" href="/">
49+
<a class="navbar-item
50+
{% if page.url == "/" %}is-active{% endif %}
51+
" href="/">
5052
Home
5153
</a>
52-
<a class="navbar-item" href="mission">
54+
<a class="navbar-item
55+
{% if page.url == "/events.html" %}is-active{% endif %}
56+
" href="/events">
57+
Events
58+
</a>
59+
<a class="navbar-item
60+
{% if page.url == "/mission.html" %}is-active{% endif %}
61+
" href="mission">
5362
Mission
5463
</a>
55-
<a class="navbar-item" href="coc">
64+
<a class="navbar-item
65+
{% if page.url == "/coc.html" %}is-active{% endif %}
66+
" href="coc">
5667
Code of Conduct
5768
</a>
5869
<span class="navbar-item navbar-item--slack">

css/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Bulma code with equivilant custom code.
3737

3838
// elements
3939

40-
// @import "bulma/elements/box";
40+
@import "bulma/elements/box";
4141
@import "bulma/elements/button";
4242
@import "queercode/elements/button";
4343
@import "bulma/elements/container";

events.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Events
3+
layout: default
4+
---
5+
6+
<div class="columns is-centered">
7+
<div class="column is-half">
8+
<h1 class="title is-1">Events</h1>
9+
{% for event in site.data.events %}
10+
<div class="box content">
11+
<p>
12+
<strong class="is-size-4">{{ event.name }}</strong><small>,
13+
{%- if event.datetime %}
14+
{{ event.datetime | date_to_long_string }}
15+
{{ event.datetime | date: "%I:%M%P" }}
16+
{%- else %}
17+
date <abbr title="To be confirmed">TBC</abbr>
18+
{%- endif %}, {{event.hostGroup}}
19+
</small>
20+
<br>
21+
{% if event.description %}
22+
{{ event.description }}
23+
{% if event.url %}
24+
<div class="is-pulled-right"><a href="{{event.url}}">Find out more</a></div>
25+
{% endif %}
26+
{% else %}
27+
{% if event.url %}
28+
<a href="{{event.url}}">Find out more</a>
29+
{% endif %}
30+
{% endif %}
31+
</p>
32+
</div>
33+
{% endfor %}
34+
<p></p>
35+
</div>
36+
</div>

0 commit comments

Comments
 (0)