Run a giveaway from a bsky post. Choose from those who interacted with it

working identity resolver

+31 -1
Index.html
··· 3 3 <head> 4 4 <meta charset="UTF-8"> 5 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 - <title>Document</title> 6 + <title>at://giveaways 🎉</title> 7 7 <link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css"/> 8 8 <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> 9 + <script src="https://unpkg.com/alpinejs" defer></script> 10 + 11 + <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> 12 + <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> 13 + <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> 14 + <link rel="manifest" href="/site.webmanifest"> 15 + 16 + <script type="module"> 17 + import { 18 + CompositeHandleResolver, 19 + DohJsonHandleResolver, 20 + WellKnownHandleResolver 21 + } from 'https://esm.sh/@atcute/identity-resolver'; 22 + 23 + const handleResolver = new CompositeHandleResolver({ 24 + strategy: 'race', 25 + methods: { 26 + dns: new DohJsonHandleResolver({dohUrl: 'https://mozilla.cloudflare-dns.com/dns-query'}), 27 + http: new WellKnownHandleResolver(), 28 + }, 29 + }); 30 + const handle = await handleResolver.resolve('baileytownsend.dev'); 31 + console.log(handle); 32 + 33 + 34 + </script> 9 35 </head> 36 + 37 + 10 38 <body> 11 39 <div class="hero bg-base-200 min-h-screen"> 12 40 <div class="hero-content flex-col "> ··· 55 83 </fieldset> 56 84 <button class="btn btn-neutral mt-4">I choose you!</button> 57 85 </fieldset> 86 + <a href="https://tangled.sh/@baileytownsend.dev/at-giveaways" class="link">View on <span hx-boost="true" 87 + class="font-semibold italic">tangled.sh</span></a> 58 88 </div> 59 89 </div> 60 90 </div>
+1
README.md
··· 1 + ## at://giveaways 🎉
android-chrome-192x192.png

This is a binary file and will not be displayed.

android-chrome-512x512.png

This is a binary file and will not be displayed.

apple-touch-icon.png

This is a binary file and will not be displayed.

favicon-16x16.png

This is a binary file and will not be displayed.

favicon-32x32.png

This is a binary file and will not be displayed.

favicon.ico

This is a binary file and will not be displayed.

+1
site.webmanifest
··· 1 + {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}