Skip to content

Commit 7bc8db1

Browse files
Selasi3kjaymiller
andauthored
Modified the club page (#487)
* set up the club page * included the club page * Update club.html * updated the footer * updated the club page * Update club.html * modified changes on the club page * Update club.html * Update club.html * Update club.html * modified the club page * added the book data * Update club.html * add tests and fix PR --------- Co-authored-by: Jay Miller <[email protected]>
1 parent fa194c5 commit 7bc8db1

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

_data/books.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[
2+
{
3+
"title": "Boost Your Django DX",
4+
"author": "Adam Johnson",
5+
"url": "https://adamchainz.gumroad.com/l/byddx",
6+
"reviews": [
7+
{
8+
"title": "Review: Boost Your Django DX by Adam Johnson",
9+
"author": "Velda Kiara",
10+
"url": "https://dev.to/veldakiara/review-boost-your-django-dx-by-adam-johnson-9ho"
11+
}
12+
]
13+
}
14+
]

book-club.html

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
layout: default
3+
title: "Book Club Page"
4+
description: "This is the book club page"
5+
---
6+
7+
<section class="book-club">
8+
<h1><strong>Black Python Devs Book Club: A Community of Readers and Learners</strong></h1>
9+
<p>The Black Python Devs book club was born from the community's growing passion for technical reading and learning.</p>
10+
11+
<p>
12+
Our goal is to create a welcoming and supportive space where members can share their love of Python development, discuss industry trends, and dive deeper into technical concepts. By reading and discussing books together, we hope to sharpen our
13+
skills, connect with like-minded developers, and contribute to the growth of our community.
14+
</p>
15+
16+
<p>The club's leadership is dedicated to building a vibrant and engaging community for everyone. Our initiative aligns with BPD's overall mission to increase participation, empower our members, and provide opportunities for professional growth.</p>
17+
18+
<h3><strong>Books Completed:</strong></h3>
19+
20+
{% for book in site.data.books %}
21+
<div class="book">
22+
<h2>{{ book.title }}</h2>
23+
<p><strong>Author:</strong> {{ book.author }}</p>
24+
25+
<h4>Reviews</h4>
26+
{% if book.reviews %}
27+
<ul>
28+
{% for review in book.reviews %}
29+
<li><a href="{{ review.url }}" target="_blank">{{ review.title }}</a> by {{ review.author }}</li>
30+
{% endfor %}
31+
</ul>
32+
{% else %}
33+
<p><em>No reviews available.</em></p>
34+
{% endif %}
35+
</div>
36+
{% endfor %}
37+
38+
<h4>Upcoming Books</h4>
39+
<ul>
40+
{% for upcoming in site.data.upcoming_books %}
41+
<li>{{ upcoming.title }} by {{ upcoming.author }} ({{ upcoming.date }})</li>
42+
{% endfor %}
43+
</ul>
44+
45+
<h4>Join Today</h4>
46+
<p>Our Book club meets twice a month on <a href="https://discord.com/invite/XUc3tFqCT3">Discord</a>.</p>
47+
</section>
48+
49+
<hr />
50+
<p>Have a book suggestion? <a href="https://github.com/BlackPythonDevs/blackpythondevs.github.io/issues/new?assignees=&labels=book&projects=&template=add_book.yml&title=%5BBOOK%5D+%3CBOOK+TITLE%3E+BY+AUTHOR">Submit a Suggestion</a></p>

tests/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def url_port() -> tuple[str, int]:
1818
"events",
1919
"community",
2020
"leadership",
21+
"book-club",
2122
]
2223

2324

0 commit comments

Comments
 (0)