Skip to content

Commit ee934af

Browse files
committed
Some optimizations
1 parent eaafcbd commit ee934af

File tree

4 files changed

+66
-50
lines changed

4 files changed

+66
-50
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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>

src/components/Footer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
&copy; {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">

0 commit comments

Comments
 (0)