Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions _data/partnerships.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"name": "TalkPython Training",
"promo_code": "bpd-20pc-1c1da",
"description": "When you use the <a href=\"https://training.talkpython.fm/black-python-devs\">Black Python Devs landing page</a> or use the promo code: <strong>bpd-20pc-1c1da</strong> at checkout, you will receive 10% off your course purchase. TalkPython Training will also donate 20% of the purchase to Black Python Devs.",
"url": "https://training.talkpython.fm/black-python-devs",
"logo": "/assets/images/talkpython.webp"
},
{
"name": "O'Reilly Media",
"promo_code": "https://oreillymedia.pxf.io/c/5713155/2126973/15173",
"description": "<a href=\"https://oreillymedia.pxf.io/c/5713155/2126973/15173\">Sign up with our promo code</a> to receive a 30-day trial of O'Reilly's Learning Platform. If you sign up beyond the trial a percentage of your subscription will go to Black Python Devs.",
"url": "/2024-09-09-oreilly-partnership/",
"logo": "/assets/images/oreilly_logo_mark_red.svg"
},
{
"name": "Books, Courses, and Trainings by Rodrigo Girão Serrão",
"promo_code": "BLACKPYTHONDEVS",
"description": "se the code BLACKPYTHONDEVS to get 10% off all ebooks, cheatsheets, and most courses, that I offer. When you use that code, you're also donating 20% of the value of your purchase to Black Python Devs",
"url": "https://mathspp.com/black-python-devs",
"logo": "assets/images/rodrigo.png"
}
]
11 changes: 0 additions & 11 deletions _data/partnerships.yml

This file was deleted.

1 change: 1 addition & 0 deletions _layouts/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ <h3>Quick link</h3>
<li><a href="/about.html">About Us</a></li>
<li><a href="/bpd-events/">BPD Events</a></li>
<li><a href="/sponsored-events.html">Sponsored Events</a></li>
<li><a href="/partnerships.html">Partnerships</a></li>
<li><a href="/community.html">Community</a></li>
<li><a href="/support.html">Support</a></li>
</ul>
Expand Down
22 changes: 0 additions & 22 deletions _layouts/_includes/partnerships.html

This file was deleted.

1 change: 0 additions & 1 deletion _layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ <h1 class="hero-text">Helping build communities for Black Pythonistas around the

{% include "_includes/latest-posts.html" %}
{% include "_includes/join_us.html" %}
{% include "_includes/partnerships.html" %}
{% include "_includes/newsletter_form.html" %}
{% endblock %}
24 changes: 24 additions & 0 deletions _layouts/partnerships.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% extends "default.html" %}

{% block content %}
<div>
<h2>Partnerships</h2>

<p>We're happy to share with you our proud sponsors who offer their products at discounted rates and a portion of proceeds go to support Black Python Devs!</p>

{% for partner in data %}
<article>
<div class="grid">
<div>
<img src="{{partner['logo']}}" alt="{{partner['name']}} Logo" style="max-height: 14em" />
</div>
<div>
<h3><a href="{{partner['url']}}">{{ partner['name'] }}</a></h3>
<p>{{ partner['description'] }}</p>
<a href="{{ partner[url] }}">Learn more</a>
</div>
</div>
</article>
{% endfor %}
</div>
{%endblock%}
10 changes: 7 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import json
import pathlib

import yaml

from render_engine import Site, Page, Collection, Blog
from render_engine_markdown import MarkdownPageParser

Expand All @@ -18,6 +16,7 @@
"fa": "fa fa-handshake fa-fw",
},
{"text": "Community", "url": "/community.html", "fa": "fa fa-users fa-fw"},
{"text": "Discounts", "url": "/partnerships.html", "fa": "fa-regular fa-handshake"},
{
"text": "Support Us",
"url": "/support.html",
Expand All @@ -43,7 +42,6 @@ class Index(Page):
@app.page
class About(Page):
template = "about.html"
data = yaml.safe_load(pathlib.Path("_data/leadership.yaml").read_text())


@app.page
Expand All @@ -62,6 +60,12 @@ class SponsoredEvents(Page):
template_vars = {}


@app.page
class Partnerships(Page):
template = "partnerships.html"
data = json.loads(pathlib.Path("_data/partnerships.json").read_text())


@app.collection
class Pages(Collection):
Parser = MarkdownPageParser
Expand Down
Binary file added assets/images/rodrigo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading