File tree Expand file tree Collapse file tree 4 files changed +66
-50
lines changed
Expand file tree Collapse file tree 4 files changed +66
-50
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ interface Props {
3+ summary: string ;
4+ }
5+
6+ const { summary } = Astro .props ;
7+ ---
8+ <details class =" group border border-solid border-darker-300 rounded-lg pb-1" >
9+ <summary class =" p-3 bg-darker-50 rounded-lg cursor-pointer list-none flex items-center gap-2 hover:bg-darker-100 transition-colors" >
10+ <span class =" text-darker-600 transition-transform group-open:rotate-90" >▶</span >
11+ { summary }
12+ </summary >
13+ <div class =" p-3" >
14+ <slot />
15+ </div >
16+ </details >
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const iconStyles = "text-darker-500 hover:text-darker transition-colors";
2323 </div >
2424 <div class =" text-darker-600" >
2525 © { today .getFullYear ()}
26- { " " + NAME } . All rights reserved.
26+ { " " + NAME } . All rights reserved. All views expressed are my own.
2727 </div >
2828</footer >
2929<dialog id =" email_modal" class =" backdrop:bg-black/50 bg-transparent p-0 max-w-none w-full h-full" >
You can’t perform that action at this time.
0 commit comments