Skip to content

Commit 4410150

Browse files
committed
feat(sponsors): Addded in sponsors that get displayed using a standardized summary component
1 parent b371133 commit 4410150

12 files changed

+77
-11
lines changed

_config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ collections:
22
events:
33
output: true
44
permalink: /events/:path
5+
sponsors:
6+
output: false
57
sass:
68
style: compressed
79
sass_dir: assets/scss
10+
11+
future: true

_events/2018-03-27-railway-oriented-programming.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Railway-Oriented Programming with Stuart Herbert
3-
date: Thu Mar 27 2018
3+
date: Wed Mar 28 2018
44
description: >
55
Another warm welcome to brumPHP! We're building on our successful introductory event by welcoming veteran PHP speaker Stuart Herbert to 1000 Trades in the Jewellery Quarter, to talk about functional programming
66
link: https://www.meetup.com/brumphp/events/246966799/

_includes/component/event-summary.html

-5
This file was deleted.

_includes/component/summary.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div class="col-md-4 brum--summary">
2+
<h3>{{include.summary.title}}</h3>
3+
<p class="description">{{include.summary.description}}</p>
4+
{% if include.summary.img %}
5+
<div class="img-container">
6+
<img src="{{include.summary.img}}" />
7+
</div>
8+
{% endif %}
9+
10+
{% if include.summary.link %}
11+
<p><a class="btn btn-secondary" href="{{include.summary.link}}" role="button">View More &raquo;</a></p>
12+
{% endif %}
13+
</div>

_sponsors/jetbrains.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: JetBrains
3+
description: JetBrains have kindly given us licenses to their development tools to give away at meetups.
4+
img: /assets/images/jetbrains.png
5+
link: https://www.jetbrains.com/
6+
---

_sponsors/packt.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Packt
3+
description: Packt are supporting the event by providing select copies of free PHP eBooks to attendees.
4+
img: /assets/images/packt.png
5+
link: https://www.packtpub.com/
6+
---

_sponsors/z-your-company.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Your Company
3+
description: Interested in sponsoring the group? <a href="/community">Contact the organisers</a>
4+
---

assets/images/jetbrains.png

122 KB
Loading

assets/images/packt.png

5.87 KB
Loading

assets/scss/_palette.scss

+16-2
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,27 @@ $palette: (
6262
}
6363
}
6464

65-
.brum--event-summary h3 {
65+
h1 {
66+
margin-top: 10px;
67+
}
68+
69+
.brum--summary h3 {
6670
overflow: hidden;
6771
white-space: nowrap;
6872
text-overflow: ellipsis;
6973
}
7074

71-
.brum--event-summary .description {
75+
.brum--summary .img-container {
76+
height: 120px;
77+
}
78+
79+
.brum--summary img {
80+
width: 50%;
81+
margin: 10px auto;
82+
display: block;
83+
}
84+
85+
.brum--summary .description {
7286
$line-height: 1.5;
7387
$font-size: 1rem;
7488
$lines-to-show: 3;

index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ layout: landingpage
1010
<p>
1111
We are starting on a mission to showcase, discuss and learn anything in the world of PHP Developer life, encompassing anything from Symfony and Laravel, Composer, Personal/Commercial app demos, Toolchains, Dev culture and of course, Birmingham.
1212
<br/>
13-
Don't hesitate to get in touch if there is a subject or idea you'd like to discuss!
13+
Don't hesitate to <a href="/community">get in touch</a> if there is a subject or idea you'd like to discuss!
1414
</p>
1515
</div>
1616
</div>
@@ -26,8 +26,8 @@ layout: landingpage
2626
<div class="container">
2727
<h2>Events</h2>
2828
<div class="row">
29-
{% for event in site.events reversed limit=3 %}
30-
{% include component/event-summary.html event=event %}
29+
{% for event in site.events reversed limit:3 %}
30+
{% include component/summary.html summary=event %}
3131
{% endfor %}
3232
</div>
3333
</div>

sponsors.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Our Sponsors
3+
layout: landingpage
4+
# Future use, show this as what we offer to potential sponsors
5+
benefits:
6+
- A shoutout at events
7+
- The ability to hand out marketing materials at the event
8+
- A spot on this site
9+
---
10+
11+
<main role="main">
12+
<div class="container">
13+
<h1>Sponsors</h1>
14+
<div class="row">
15+
Our sponsors mean a lot to us, as they help shape what we're able to do at events. Feel free to check them out.
16+
</div>
17+
<hr />
18+
<div class="row">
19+
{% for sponsor in site.sponsors %}
20+
{% include component/summary.html summary=sponsor %}
21+
{% endfor %}
22+
</div>
23+
</div>
24+
</main>

0 commit comments

Comments
 (0)