forked from pdsls.dev/pdsls
atproto explorer

cleanup code

juli.ee 143a70c2 4343bec2

verified
Changed files
+16 -22
src
components
views
+9 -11
src/components/navbar.tsx
··· 96 96 <Tooltip text="Repository"> 97 97 <span class="iconify lucide--book-user text-base"></span> 98 98 </Tooltip> 99 - <div class="flex w-full gap-1"> 100 - {props.params.collection || location.pathname.includes("/labels") ? 101 - <A 102 - end 103 - href={`/at://${props.params.repo}`} 104 - inactiveClass="text-blue-400 hover:underline active:underline w-full" 105 - > 106 - {showHandle() ? handle() : props.params.repo} 107 - </A> 108 - : <span>{showHandle() ? handle() : props.params.repo}</span>} 109 - </div> 99 + {props.params.collection || location.pathname.includes("/labels") ? 100 + <A 101 + end 102 + href={`/at://${props.params.repo}`} 103 + inactiveClass="text-blue-400 hover:underline active:underline w-full" 104 + > 105 + {showHandle() ? handle() : props.params.repo} 106 + </A> 107 + : <span>{showHandle() ? handle() : props.params.repo}</span>} 110 108 </div> 111 109 <Tooltip text={showHandle() ? "Show DID" : "Show handle"}> 112 110 <button
+7 -11
src/views/home.tsx
··· 1 - import { A } from "@solidjs/router"; 2 - 3 - const Home = () => { 1 + export const Home = () => { 4 2 return ( 5 3 <div class="flex w-full flex-col gap-4 break-words"> 6 4 <div> ··· 33 31 <div class="iconify lucide--send-to-back" /> 34 32 <span> 35 33 Backlinks support with{" "} 36 - <A 34 + <a 37 35 href="https://constellation.microcosm.blue" 38 36 class="text-blue-400 hover:underline active:underline" 39 37 target="_blank" 40 38 > 41 39 constellation 42 - </A> 40 + </a> 43 41 . 44 42 </span> 45 43 </div> ··· 49 47 </div> 50 48 </div> 51 49 <div class="flex gap-2 text-xl"> 52 - <A 50 + <a 53 51 href="https://tangled.org/@pdsls.dev/pdsls/" 54 52 target="_blank" 55 53 class="flex rounded-full bg-neutral-200 p-1.5 transition-colors duration-300 hover:bg-neutral-700 hover:text-neutral-200 dark:bg-neutral-700 dark:hover:bg-neutral-200 dark:hover:text-neutral-700" 56 54 > 57 55 <span class="iconify i-tangled"></span> 58 - </A> 59 - <A 56 + </a> 57 + <a 60 58 href="https://bsky.app/profile/did:plc:6q5daed5gutiyerimlrnojnz" 61 59 target="_blank" 62 60 class="flex rounded-full bg-neutral-200 p-1.5 transition-colors duration-300 hover:bg-neutral-700 hover:text-neutral-200 dark:bg-neutral-700 dark:hover:bg-neutral-200 dark:hover:text-neutral-700" 63 61 > 64 62 <span class="iconify ri--bluesky"></span> 65 - </A> 63 + </a> 66 64 </div> 67 65 </div> 68 66 ); 69 67 }; 70 - 71 - export { Home };