Skip to content

Commit 5e0edf4

Browse files
kjaymilleroleksis
authored andcommitted
adds pico colors
1 parent a701d7b commit 5e0edf4

File tree

13 files changed

+5863
-46
lines changed

13 files changed

+5863
-46
lines changed

_data/locales/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ en:
88
- Conferences
99
- Community
1010
index:
11-
lead: Blacker than your formatter
11+
lead: Extending the Python Community to our Communities
1212
article:
1313
table_of_contents: Table of Contents
1414
footer:

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<footer role="contentinfo">
22
<div class="wrapper">
3-
<div class="social-links">{%- include social.html -%}</div>
3+
<nav class="social-links">{%- include social.html -%}</nav>
44
<div class="footer-col-wrapper">
55
<div class="footer-col">
66
<small>&copy; {{ 'now' | date: "%Y" }} {{ site.domain }}</small>

_includes/latest-posts.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{% if site.paginate %} {% assign posts = paginator.posts %} {% else %} {% assign posts = site.posts %} {% endif %} {%- if posts.size > 0 -%} {%- if page.list_title -%}
2+
<h2 class="post-list-heading">{{ page.list_title }}</h2>
3+
{%- endif -%}
4+
<div class="post-list">
5+
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%} {% assign count = 0 %} {% assign limit_posts = 3 %} {%- for post in posts -%} {%- if count < limit_posts -%}
6+
<div>
7+
<h3>
8+
<a class="" href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a>
9+
</h3>
10+
<span class="post-meta">{{ post.date | date: date_format }}</span>
11+
{%- if site.show_excerpts -%} {{ post.excerpt }} {%- endif -%}
12+
</div>
13+
{%- assign count = count | plus:1 -%} {%- endif -%} {%- endfor -%}
14+
</div>
15+
16+
{% if site.paginate %}
17+
<div class="pager">
18+
<ul class="pagination">
19+
{%- if paginator.previous_page %}
20+
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
21+
{%- else %}
22+
<li><div class="pager-edge"></div></li>
23+
{%- endif %}
24+
<li><div class="current-page">{{ paginator.page }}</div></li>
25+
{%- if paginator.next_page %}
26+
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
27+
{%- else %}
28+
<li><div class="pager-edge"></div></li>
29+
{%- endif %}
30+
</ul>
31+
</div>
32+
{%- endif %} {%- endif -%}

_includes/posts.html

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,24 @@
88
{%- if page.list_title -%}
99
<h2 class="post-list-heading">{{ page.list_title }}</h2>
1010
{%- endif -%}
11-
<ul class="post-list">
11+
<div class="post-list">
1212
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%}
1313
{% assign count = 0 %}
14-
{% assign limit_posts = 3 %}
1514
{%- for post in posts -%}
16-
{%- if count < limit_posts -%}
17-
<li>
18-
<span class="post-meta">{{ post.date | date: date_format }}</span>
15+
<div>
1916
<h3>
2017
<a class="post-link" href="{{ post.url | relative_url }}">
2118
{{ post.title | escape }}
2219
</a>
2320
</h3>
21+
<span class="post-meta">{{ post.date | date: date_format }}</span>
2422
{%- if site.show_excerpts -%}
25-
{{ post.excerpt }}
23+
{{ post.excerpt }}
2624
{%- endif -%}
27-
</li>
25+
</div>
2826
{%- assign count = count | plus:1 -%}
29-
{%- endif -%}
3027
{%- endfor -%}
31-
</ul>
28+
</div>
3229

3330
{% if site.paginate %}
3431
<div class="pager">

_layouts/default.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}" />
77
<title>{% if page.title %}{{ site.title }} | {{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
88
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}" />
9+
<link rel="stylesheet" href="{{ '/assets/css/pico.min.css' | relative_url }}" />
10+
<link rel="stylesheet" href="{{ '/assets/css/pico.colors.min.css' | relative_url }}" />
911
<link rel="stylesheet" href="{{ '/assets/css/bpd.css' | relative_url }}" />
1012
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" />
1113
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | prepend: site.baseurl | prepend: site.url }}" />
@@ -28,10 +30,8 @@
2830

2931
<body>
3032
{%- include header.html -%}
31-
<main role="main" class="page-content" aria-label="Content">
32-
<div class="wrapper">
33+
<main class="container" role="main" aria-label="Content">
3334
{{ content }}
34-
</div>
3535
</main>
3636
{%- include footer.html -%}
3737
<script src="{{ '/assets/js/index.js' | relative_url }}"></script>

_layouts/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
---
44
<div class="home">
55
{% assign t = site.data.locales[page.lang][page.lang] %} {% if page.title %} {% assign header = page.title %} {% else %} {% assign header = site.title %} {% endif %}
6-
<h1 class="page-heading">{{ t.index.lead }}</h1>
7-
6+
<article class="hero grid">
7+
<div class="hero-text">{{ t.index.lead }}</div>
8+
</article>
89
{{ content }}
910

11+
<img src="{{'/assets/images/dcus.jpg' | relative_url }}" />
1012

11-
{%- include posts.html -%}
13+
{%- include latest-posts.html -%}
1214
{%- include newsletter_form.html -%}
1315
</div>

about.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ We're here to amplify your voice, not the other way around. That's why we're hap
1414

1515
Any content that a member contributes to the community is given to them to publish as they please. That means if it's on our platforms, they allowed us to publish and have the right to change their mind at any time.
1616

17-
### Secure the Bag: Establish guidance, mentorship, and career support for _Black Python Devs_ Members
17+
### Secure the Bag:
18+
19+
**Establish guidance, mentorship, and career support for _Black Python Devs_ Members**
1820

1921
Lack of stable employment often prevents members from contributing to the greater community at their desired leve. It is important that Black Python Developers are first and foremost employed and compensated at a fair rate and given opportunities to thrive.
2022

@@ -44,24 +46,24 @@ To do this we're hoping to gather folks from around the world and see where our
4446

4547
### Executor: Jay Miller
4648

47-
<div style="display:flex; flex-wrap: wrap;" markdown="1">
49+
<div class="grid" style="display:flex; flex-wrap: wrap;" markdown="1">
4850

4951
<div style="display:flex">
50-
<img style="margin: 0 1rem; border-radius:1em" height="150px" alt="photo of Jay" src="https://github.com/kjaymiller.png">
52+
<img class="leadership-photo" alt="photo of Jay" src="https://github.com/kjaymiller.png">
5153
<p> Jay is a founder of Black Python Devs. Jay is an American Developer Advocate based in the Atlanta, Georgia area. </p>
5254
</div>
5355

5456
### Technical Manager: Oleksis Fraga
5557

5658
<div style="display:flex">
57-
<img style="margin: 0 1rem; border-radius:1em" height="150px" alt="photo of Oleksis" src="https://github.com/oleksis.png">
59+
<img class="leadership-photo" alt="photo of Oleksis" src="https://github.com/oleksis.png">
5860
<p> Oleksis is a Cuban software engineer and open-source maintainer based in the Toronto Canada area.</p>
5961
</div>
6062

6163
### Events Coordinator: Velda Kiara
6264

6365
<div style="display:flex">
64-
<img style="margin: 0 1rem; border-radius:1em" height="150px" alt="photo of Velda" src="https://github.com/VeldaKiara.png">
66+
<img class="leadership-photo" alt="photo of Velda" src="https://github.com/VeldaKiara.png">
6567
<p> Velda is a Kenyan software engineer and technical writer based in Nairobi.</p>
6668
</div>
6769

assets/css/bpd.css

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
body {
22
/* color: #6b747a; */
33
line-height: 1.66667;
4-
padding-left: 30px;
5-
padding-right: 30px;
64
}
75

86
main.page-content div.wrapper p img {
@@ -200,23 +198,12 @@ div#newsletter {
200198
border-bottom: 1px solid #d7d7d7;
201199
align-items: center;
202200
display: flex;
203-
padding-bottom: 3.33333em;
204-
padding-top: 2.5em;
205-
}
206-
207-
.site-title {
208-
color: #2c343c;
209-
/* font-family: "Noto Serif",Georgia,serif; */
210-
font-size: 1.66667rem;
211-
font-weight: 700;
212-
letter-spacing: -1px;
213-
line-height: 1.2;
214-
margin: 0 15px 0 0;
201+
padding: 1.33333rem 0.5rem;
202+
background-color: #222;
215203
}
216204

217205
a.logo-text img {
218-
width: 247px;
219-
height: 46px;
206+
width: 15rem;
220207
}
221208

222209
@media only screen and (max-width: 600px) {
@@ -321,7 +308,7 @@ a.logo-text img {
321308
}
322309
}
323310

324-
@media only screen and (max-width: 600px) {
311+
@media only screen and (max-width: 1080px) {
325312
#menu-close {
326313
right: 30px;
327314
top: 2.2rem;
@@ -416,3 +403,26 @@ footer {
416403
padding: 30px 0;
417404
flex: 1 0 auto;
418405
}
406+
407+
.hero {
408+
width: 100%;
409+
/* background-color: #222; */
410+
background-image: url("/assets/images/hero-bpd-background.jpg");
411+
background-color: RGBA(25, 25, 25, 0.8);
412+
height: 25rem;
413+
flex-flow: column;
414+
justify-content: center;
415+
align-items: center;
416+
}
417+
418+
.hero-text {
419+
font-size: 2rem;
420+
font-weight: 100;
421+
color: #fff;
422+
font-style: italic;
423+
}
424+
img.leadership-photo {
425+
margin: 0 1rem;
426+
border-radius: 1em;
427+
max-width: 10rem;
428+
}

0 commit comments

Comments
 (0)