Skip to content

Commit 2054f8a

Browse files
authored
Refactor Dock component layout and icons
1 parent 7621144 commit 2054f8a

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

src/components/Dock.astro

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
---
22
import { Icon } from "astro-icon/components";
33
---
4-
<div class="w-full fixed left-0 bottom-0 p-2 md:hidden">
5-
<div class="w-full bg-base-100 border-2 border-neutral-content rounded-xl dock dock-xs">
6-
<a href="/" class="p-1">
7-
<Icon name="gravity-ui:house" class="inline text-3xl" />
8-
</a>
9-
<a href="/projets" class="p-1">
10-
<Icon name="gravity-ui:folder-open" class="inline text-3xl p-1" />
11-
</a>
12-
<a href="/blog" class="p-1">
13-
<Icon name="gravity-ui:pencil" class="inline text-3xl" />
14-
</a>
15-
<a href="/archives" class="p-1">
16-
<Icon name="gravity-ui:clock-arrow-rotate-left" class="inline text-3xl" />
17-
</a>
18-
<a href="/contact" class="p-1">
19-
<Icon name="gravity-ui:envelope" class="inline text-3xl" />
20-
</a>
21-
</div>
4+
<div class="dock fixed md:hidden">
5+
<a href="">
6+
<Icon name="gravity-ui:house" class="inline text-3xl" />
7+
<span class="dock-label">Home</span>
8+
</a>
9+
10+
<a class="dock-active">
11+
<Icon name="gravity-ui:house" class="inline text-3xl" />
12+
<span class="dock-label">Inbox</span>
13+
</a>
14+
15+
<a href="/contact">
16+
<Icon name="gravity-ui:house" class="inline text-3xl" />
17+
<span class="dock-label">Settings</span>
18+
</button>
2219
</div>

0 commit comments

Comments
 (0)