Skip to content

Commit ecb7a88

Browse files
authored
Merge pull request #8 from practical-python-org/feature/code-adventure-page
2 parents 77b1e0d + 0cbed83 commit ecb7a88

8 files changed

Lines changed: 125 additions & 0 deletions

File tree

docs/code-adventure/index.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
description: A story-based series of Programming Puzzles inspired by Advent of Code
3+
---
4+
5+
#
6+
7+
[![Practical Python Code Adventure](/static/code-adventure/MAINlight.png#only-light)](#adventures)
8+
[![Practical Python Code Adventure](/static/code-adventure/MAINdark.png#only-dark)](#adventures)
9+
10+
Practical Python Code Adventure is a series of programming puzzles inspired by Eric Wastl's *Advent of Code*.
11+
12+
Each year features __10 story-driven puzzles__ designed to teach programming concepts, popular algorithms,
13+
and real topics from mathematics and science. Every puzzle has two parts, with the second building on the first
14+
to provide an extra challenge. As you progress, the story unfolds alongside the puzzles, adding another layer
15+
of mystery and satisfaction to each solution.
16+
17+
The puzzles are __free for everyone to enjoy__. Signing in with Discord is optional and lets you save your
18+
progress, but you are also welcome to play as a guest. For the best experience, we recommend completing the
19+
puzzles in order so the story develops naturally, though you're free to tackle them in any order or skip a
20+
puzzle if it proves too challenging.
21+
22+
Do you love solving puzzles and learning something new? __Join us on a Code Adventure!__
23+
24+
25+
## :octicons-trophy-24:{ .md .middle } Adventures
26+
27+
<div class="grid cards adventure" markdown>
28+
29+
- :material-rocket-launch:{ .lg .middle } &nbsp; __2025__
30+
31+
---
32+
33+
[![2025 Challenges](/static/code-adventure/2025.png)](https://adventure.practicalpython.org/2025)
34+
35+
Begin your adventure on board the STS Solara with Captain Xarlos and his crew, embarking
36+
on a space adventure to save the universe from a mysterious threat.
37+
38+
39+
- :material-bone:{ .lg .middle } &nbsp; __2026__
40+
41+
---
42+
43+
[![2026 Challenges](/static/code-adventure/2026.png)](https://adventure.practicalpython.org/2026)
44+
45+
Continue where you left off, finding yourself in a strange place and time, separated from
46+
your captain and the crew. Will you be able to find them, and what dangers await?
47+
48+
49+
- :material-help-circle:{ .lg .middle } &nbsp; __2027 (Coming Next Summer)__
50+
51+
---
52+
53+
![2027 Challenges](/static/code-adventure/2027BLUR.png) <!-- (https://adventure.practicalpython.org/2027) -->
54+
55+
56+
</div>
57+
58+
59+
!!! tip ""
60+
61+
## :material-campfire:{ .lg .middle } Around the campfire :material-campfire:{ .lg .middle .flip }
62+
63+
*Shedding some <span class="highlight">light</span> on the __people__ and __work__ behind the adventure*
64+
65+
---
66+
67+
[:material-heart-outline:{ .lg .middle } __Gratitude__](https://adventure.practicalpython.org/gratitude)
68+
69+
: Practical Python Code Adventure wouldn't be what it is without the help of a great community.
70+
Several people have contributed their time and expertise by helping with hosting, beta testing,
71+
UX testing, and advice. __They deserve recognition, so you'll find them listed here__!
72+
73+
[:material-star-shooting-outline:{ .lg .middle } __Sponsors__](https://adventure.practicalpython.org/sponsor)
74+
75+
: Enjoying the puzzles and want to help keep the adventure going? There are two patron tiers,
76+
__starting at $5__. These puzzles take all year to build, and we want to keep them free for
77+
everyone. If you can, __your support means a lot and is genuinely appreciated__.
78+
79+
: __See who's already helped support the adventure__, or find out how you can become a sponsor yourself.
80+
81+
: __Corporate sponsorship opportunities are also available__.
82+
83+
[:simple-github:{ .lg .middle } __Github__](https://github.com/JefeThePug/Practical-Python-Code-Adventure)
84+
85+
: Curious about how the adventure was made? __Check out the project on GitHub__.
86+
If you like what you see, feel free to give it a :material-star:{ .lg .bottom }.
45.3 KB
Loading
75.3 KB
Loading
33 KB
Loading
143 KB
Loading
144 KB
Loading

docs/stylesheets/extra.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,42 @@
4141
margin: 0.3rem 0.2rem 0;
4242
}
4343

44+
.flip svg {
45+
transform: scaleX(-1);
46+
}
47+
48+
.highlight {
49+
color: var(--md-accent-fg-color);
50+
font-weight: 700;
51+
}
52+
53+
.adventure img {
54+
transition: transform 0.15s ease;
55+
border-radius: 0.5rem;
56+
}
57+
58+
.adventure img:hover {
59+
animation: magic-pulse 1.3s infinite;
60+
transform: scale(1.02);
61+
}
62+
63+
@keyframes magic-pulse {
64+
0%,
65+
100% {
66+
box-shadow:
67+
0 0 0 rgba(94, 139, 222, 0),
68+
0 0 8px rgba(94, 139, 222, 0.35),
69+
0 0 18px rgba(94, 139, 222, 0.2);
70+
}
71+
72+
50% {
73+
box-shadow:
74+
0 0 12px rgba(94, 139, 222, 0.9),
75+
0 0 30px rgba(94, 139, 222, 0.7),
76+
0 0 60px rgba(94, 139, 222, 0.5);
77+
}
78+
}
79+
4480
@media screen and (max-width: 44.98em) {
4581
.pp-hero {
4682
padding: 1.6rem 0 1.2rem;

zensical.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ nav = [
4444
"rules/moderation.md",
4545
"rules/channels.md",
4646
] },
47+
{ "Code Adventure" = [
48+
"code-adventure/index.md",
49+
] },
4750
]
4851

4952
[project.theme]

0 commit comments

Comments
 (0)