this repo has no description
1
fork

Configure Feed

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

scroll down

+16 -6
+1 -1
shared/challenges_markdown/one/part_one.md
··· 1 - # Welcome to at://advent! 1 + ## Welcome to at://advent! 2 2 3 3 at://advent is an atproto adventure to learn [atproto](https://atproto.com/) in an interactive and 4 4 hopefully fun way in the style of advent of code.
+2
shared/challenges_markdown/one/part_two.md
··· 1 + //notes we are using the users multibase as the answer here. Explain how to find the did doc and what that key does 2 + 1 3 Great job beating Part 1! Now onto Part 2. 2 4 3 5 This will be submitting their public verification code from the did doc since each did doc will have one.
+4 -4
web/src/handlers/day.rs
··· 338 338 ), 339 339 ) 340 340 .await?; 341 - Ok(Redirect::to(format!("/day/{}", day as u8).as_str())) 341 + Ok(Redirect::to(format!("/day/{}#part_two", day as u8).as_str())) 342 342 } 343 343 ChallengeCheckResponse::Incorrect(message) => { 344 344 set_flash_message( ··· 383 383 ), 384 384 ) 385 385 .await?; 386 - Ok(Redirect::to(format!("/day/{}", day as u8).as_str())) 386 + Ok(Redirect::to(format!("/day/{}#part_two", day as u8).as_str())) 387 387 } 388 388 ChallengeCheckResponse::Incorrect(message) => { 389 389 set_flash_message( ··· 392 392 FlashMessage::Error(message), 393 393 ) 394 394 .await?; 395 - Ok(Redirect::to(format!("/day/{}", day as u8).as_str())) 395 + Ok(Redirect::to(format!("/day/{}#part_two", day as u8).as_str())) 396 396 } 397 397 } 398 398 } 399 - CompletionStatus::Both => Ok(Redirect::to(format!("/day/{}", day as u8).as_str())), 399 + CompletionStatus::Both => Ok(Redirect::to(format!("/day/{}#part_two", day as u8).as_str())), 400 400 } 401 401 } 402 402 }
+9 -1
web/templates/day.askama.html
··· 75 75 76 76 <!-- Part 2 --> 77 77 {% if let Some(challenge_two_text) = challenge_two_text %} 78 - <div class="card bg-base-100 shadow-xl mb-6"> 78 + <div id="part_two" class="card bg-base-100 shadow-xl mb-6"> 79 79 <div class="card-body"> 80 80 <h3 class="card-title text-2xl"> 81 81 Part 2 ··· 145 145 <div class="text-sm">You've completed all the challenges for today! Come back tomorrow at 00:00 UTC for more.</div> 146 146 </div> 147 147 </div> 148 + {% endif %} 149 + 150 + {% if challenge_one_completed %} 151 + <script> 152 + if (window.location.hash === '#part_two') { 153 + document.getElementById('part_two')?.scrollIntoView({ behavior: 'smooth' }); 154 + } 155 + </script> 148 156 {% endif %} 149 157 150 158 {% endblock %}