this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 70 lines 3.9 kB view raw
1{% extends "layout.askama.html" %} 2 3{% block content %} 4 <div class="card bg-base-100 shadow-xl mb-8"> 5 <div class="card-body"> 6 <h2 class="card-title text-3xl font-bold">Welcome to at://advent!</h2> 7 <p class="text-base-content">at://advent is a daily challenge to learn atproto in an interactive way. Similar to the advent of code. There are challenges for you to complete by writing code, but instead of strictly writing code you will be completing the challenges on atproto and learning more about it.</p> 8 <p>For this workshop you will be play testing the challenges for the first six days seeing what works well and what may not work. We want your thoughts and feedback about how it goes.</p> 9 10 <div class="divider"></div> 11 12 <h3 class="text-xl font-semibold">Tidbits</h3> 13 <ul class="list-disc list-inside space-y-2 text-base-content"> 14 <li>There will most likely be bugs here and there</li> 15 <li>We are going to start day one together and give about 10-15mins for each part or move on when everyone is done.</li> 16 <li>Part one is usually a bit easier and part two either builds on the previous parts</li> 17 <li>PLEASE feel free to ask questions! We created at://advent to help teach others more about atproto. If you have a question or are stuck on a challenge please raise your hand and ask. Asking questions will also most likely help others!</li> 18 <li>If you finish early also please feel free to offer help to neighbors</li> 19 </ul> 20 </div> 21 </div> 22 23 {% if unlocked_days.len() == 0 %} 24 <div class="alert alert-info shadow-lg"> 25 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-current shrink-0 w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> 26 <div> 27 <h3 class="font-bold">No days unlocked yet</h3> 28 <div class="text-sm">Please check back in December when the challenges begin!</div> 29 </div> 30 </div> 31 {% else %} 32 <div class="mb-4"> 33 <h3 class="text-2xl font-semibold mb-4">Available Challenges</h3> 34 <div class="badge badge-primary badge-lg">{{ unlocked_days.len() }} day{% if unlocked_days.len() != 1 %}s{% endif %} unlocked</div> 35 </div> 36 37 <style> 38 .day-btn-partial { 39 background: linear-gradient(135deg, #00a96e 0%, #00a96e 50%, #ff5861 50%, #ff5861 100%) !important; 40 color: white; 41 } 42 43 .day-btn-partial:hover { 44 opacity: 0.9; 45 } 46 </style> 47 48 <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4"> 49 {% for day_status in unlocked_days %} 50 {% match day_status.status %} 51 {% when shared::advent::CompletionStatus::None %} 52 <a href="/day/{{ day_status.day }}" class="btn btn-lg btn-error h-24 flex flex-col hover:scale-105 transition-transform"> 53 <span class="text-xs opacity-70">Day</span> 54 <span class="text-3xl font-bold">{{ day_status.day }}</span> 55 </a> 56 {% when shared::advent::CompletionStatus::PartOne %} 57 <a href="/day/{{ day_status.day }}" class="btn btn-lg day-btn-partial h-24 flex flex-col hover:scale-105 transition-transform"> 58 <span class="text-xs opacity-70">Day</span> 59 <span class="text-3xl font-bold">{{ day_status.day }}</span> 60 </a> 61 {% when shared::advent::CompletionStatus::Both %} 62 <a href="/day/{{ day_status.day }}" class="btn btn-lg btn-success h-24 flex flex-col hover:scale-105 transition-transform"> 63 <span class="text-xs opacity-70">Day</span> 64 <span class="text-3xl font-bold">{{ day_status.day }}</span> 65 </a> 66 {% endmatch %} 67 {% endfor %} 68 </div> 69 {% endif %} 70{% endblock %}