Skip to content

Commit 4589d46

Browse files
Changed post background image overlay to 0.6 black (title more readable).
Fixed sponsor logo layout. Changed title for PyMC3 post. Styled post.html. Changed section-content to mission__statement class. Created Zopa sponsor. Added Zopa sponsor logo.
1 parent 7bf7a2d commit 4589d46

File tree

7 files changed

+59
-25
lines changed

7 files changed

+59
-25
lines changed

_layouts/post.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
{% endif %}
99
<style>
1010
.post__img-container {
11-
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("{{ site.baseurl }}/{{ image }}");
11+
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("{{ site.baseurl }}/{{ image }}");
1212
}
1313

1414
@media (min-width: 769px) {
1515
.post__img-container {
16-
background-image: linear-gradient(75deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.5) 80%, black 87%, black 100%), url("{{ site.baseurl }}/{{ image }}");
16+
background-image: linear-gradient(75deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.6) 80%, black 87%, black 100%), url("{{ site.baseurl }}/{{ image }}");
1717
}
1818
}
1919
</style>
@@ -88,15 +88,15 @@ <h1 class="post__content-title">Event's sponsors</h1>
8888
<div class="row">
8989
<div class="post__sponsor-col col-md-12">
9090
<div class="row">
91-
<div class="col-md-3">
91+
<div class="post__logo-col col-sm-12 col-lg-3">
92+
<h3 class="post__sponsor-name">{{ sponsor_obj.sponsor_name }}</h3>
9293
<div class="post__sponsor-container">
9394
<a class="post__sponsor-link" href="{{ sponsor_obj.sponsor_link }}">
94-
<img class="post__sponsor-img" src="{{ site.baseurl }}/{{ sponsor_obj.sponsor_logo }}">
95-
</a>
95+
<img class="post__sponsor-img" src="{{ site.baseurl }}/{{ sponsor_obj.sponsor_logo }}">
96+
</a>
9697
</div>
97-
<p class="post__sponsor-name">{{ sponsor_obj.sponsor_name }}</p>
98-
</div>
99-
<div class="col-md-9">
98+
</div >
99+
<div class="col-sm-12 col-lg-9 col-xl-8">
100100
<p class="post__sponsor-content">{{ sponsor_obj.content}}</p>
101101
</div>
102102
</div>

_posts/2017-10-24-PyMC3.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: PyMC3
3+
title: PyMC3 - beginner friendly issues
44
project: PyMC3
55
project_description: Bayesian Modeling and Probabilistic Machine Learning with Theano
66
date: 2017-10-24
@@ -11,4 +11,20 @@ sponsors:
1111
- zopa
1212
---
1313

14-
We worked on PyMC3 project.
14+
Probabilistic programming are a family of programming languages where a probabilistic model can be specified, in order to do inference over unknown variables.
15+
16+
A common application is in financial markets, where probabilistic programming can be used to infer expected returns or risk.
17+
18+
The best introduction to Bayesian methods and probabilistic programming I know is this [excellent book](https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers).
19+
20+
[PyMC3](https://github.com/pymc-devs/pymc3) is a Python package for Bayesian statistical modeling and Probabilistic Machine Learning which focuses on advanced Markov chain Monte Carlo and variational fitting algorithms.
21+
22+
In this sprint we'll address [PyMC3 beginner friendly issues](https://github.com/pymc-devs/pymc3/issues?q=is%3Aissue+is%3Aopen+label%3Abeginner_friendly).
23+
24+
If the meetup is full, or you can't attend in person, feel free to join remotely:
25+
26+
[Gitter channel (chat)](https://gitter.im/py-sprints/pymc3) during the sprint.
27+
28+
Short videocall at 7pm: [Hangouts link](https://plus.google.com/hangouts/_/calendar/Z2FyY2lhLm1hcmNAZ21haWwuY29t.55ipep9qnd33surdfrrsnhd763?authuser=0)
29+
30+
Thanks to our sponsor [Zopa](https://www.zopa.com/), for making this sprint possible.

_sass/post.scss

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

1111
.post__title {
12-
padding-top: 25vh;
12+
padding-top: 10%;
1313
text-align: center;
1414
font-size: 3em;
1515
font-family: 'Encode Sans Expanded', sans-serif;
@@ -18,7 +18,7 @@
1818
.post__subtitle {
1919
padding-top: 1%;
2020
text-align: center;
21-
font-size: 1.5em;
21+
font-size: 1.25em;
2222
font-family: 'Encode Sans Expanded', sans-serif;
2323
color: #818181;
2424
}
@@ -100,7 +100,9 @@
100100
.post__sponsor-col {
101101
padding-left: 10%;
102102
padding-right: 10%;
103+
}
103104

105+
.post__logo-col {
104106
}
105107

106108
.post__paragraph {
@@ -112,6 +114,15 @@
112114
width: 10%;
113115
}
114116

117+
.post__sponsor-name {
118+
margin-top: 0.25em;
119+
line-height: 1em;
120+
text-align: center;
121+
font-family: 'Encode Sans Expanded', sans-serif;
122+
font-size: 1.25em;
123+
color: #072948;
124+
}
125+
115126
.post__sponsor-container {
116127
background: #041729;
117128
border-radius: 5px;
@@ -120,20 +131,15 @@
120131
}
121132

122133
.post__sponsor-link {
134+
text-align: center;
123135
line-height: 102px;
124-
width: 278px;
125-
height: 102px;
126136
}
127137

128138
.post__sponsor-img {
129139
vertical-align: middle;
140+
padding: 10px;
130141
}
131142

132-
.post__sponsor-name {
133-
margin-top: 0.25em;
134-
line-height: 1em;
135-
text-align: center;
136-
font-family: 'Encode Sans Expanded', sans-serif;
137-
font-size: 1.25em;
138-
color: #072948;
143+
.post__sponsor-content {
144+
margin-top: 1.6em;
139145
}

_sass/style.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ a {
2626
margin-right: 0;
2727
}
2828

29+
.center-block {
30+
display: table;
31+
margin: auto;
32+
}
33+
2934
.container-fluid {
3035
padding-left: 0;
3136
padding-right: 0;
@@ -258,7 +263,7 @@ a {
258263
}
259264
}
260265

261-
.section-content {
266+
.mission__statement {
262267
font-size: 1.1em;
263268
text-align: center;
264269
font-family: 'Playfair Display', serif;

_sponsors/zopa.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
sponsor_id: zopa
3+
sponsor_name: "Zopa"
4+
sponsor_logo: static/images/sponsors/zopa.png
5+
sponsor_link: https://www.zopa.com/
6+
---
7+
Zopa provide loans and offer competitive rates, flexible and intuitive products and award-winning customer service. They strive to make money simple and fair for everyone – to enable people to do more with their money and take control of their finances.

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ <h2 class="navigation__subtitle"><em>The World Is Waiting For Your Code</em></h2
3838
<div class="row">
3939
<div class="col-md-12">
4040
<h2 class="section-title">Our Mission</h2>
41-
<p class="section-content">Contribute to open source projects.</p>
42-
<p class="section-content">Grow the Python community.</p>
43-
<p class="section-content">Provide mentorship and challenge for people of all backgrounds and skills.</p>
41+
<h3 class="mission__statement">Contribute to open source projects.</h3>
42+
<h3 class="mission__statement">Grow the Python community.</h3>
43+
<h3 class="mission__statement">Provide mentorship and challenge for people of all backgrounds and skills.</h3>
4444
</div>
4545
</div>
4646
</div>

static/images/sponsors/zopa.png

4.01 KB
Loading

0 commit comments

Comments
 (0)