Skip to content

Commit 41f7def

Browse files
committed
Redo Tabs UI
1 parent 8a24053 commit 41f7def

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/pages/tabs.astro

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,45 @@ import { ArrowLeft, ArrowRight, Home, Loader2, Maximize2, Plus, RotateCw, Star }
66
<script src="@/lib/tabs.ts"></script>
77
<Layout>
88
<div class="bg-background-secondary h-10 flex items-center border-b border-border px-2">
9-
<div class="flex space-x-2">
10-
<button class="flex items-center px-4 py-1.5 rounded-t-lg bg-accent text-text shadow-sm"> Tab 1 </button>
11-
<button class="flex items-center px-4 py-1.5 rounded-t-lg bg-interactive text-interactive-secondary hover:bg-accent-secondary"> Tab 2 </button>
12-
<button class="flex items-center px-4 py-1.5 rounded-t-lg bg-interactive text-interactive-secondary hover:bg-accent-secondary"> Tab 3 </button>
9+
<div class="flex space-x-1">
10+
<button class="flex items-center px-3 py-1 rounded-md bg-accent text-text shadow-sm">Tab 1</button>
11+
<button class="flex items-center px-3 py-1 rounded-md bg-interactive text-interactive-secondary hover:bg-accent-secondary">Tab 2</button>
12+
<button class="flex items-center px-3 py-1 rounded-md bg-interactive text-interactive-secondary hover:bg-accent-secondary">Tab 3</button>
1313
</div>
1414
<div class="flex-grow"></div>
1515
<button class="p-2 rounded-full bg-interactive hover:bg-accent-secondary">
1616
<Plus class="w-5 h-5 text-text" />
1717
</button>
1818
</div>
1919
<div class="bg-background-secondary h-12 flex items-center justify-between px-4">
20-
<div class="flex items-center">
20+
<div class="flex items-center space-x-2">
2121
<a href="/" id="home" title="Home Page" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
22-
<Home class="w-5 h-5 cursor-pointer text-text-secondary" />
22+
<Home class="w-5 h-5 text-text-secondary" />
2323
</a>
24-
<button title="Click to go back." id="back" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
25-
<ArrowLeft class="w-5 h-5 cursor-pointer text-text-secondary" />
24+
<button title="Go back" id="back" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
25+
<ArrowLeft class="w-5 h-5 text-text-secondary" />
2626
</button>
27-
<button title="Click to go forward." id="forward" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
28-
<ArrowRight class="w-5 h-5 cursor-pointer text-text-secondary" />
27+
<button title="Go forward" id="forward" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
28+
<ArrowRight class="w-5 h-5 text-text-secondary" />
2929
</button>
30-
<button title="Click to reload this page." id="reload" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
31-
<RotateCw class="w-5 h-5 cursor-pointer text-text-secondary" />
30+
<button title="Reload page" id="reload" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
31+
<RotateCw class="w-5 h-5 text-text-secondary" />
3232
</button>
3333
</div>
3434
<div class="flex-grow flex items-center justify-center mx-4">
3535
<input
3636
type="text"
3737
placeholder="Search or enter a new URL"
3838
id="inp"
39-
class="w-10/12 h-8 px-4 rounded-md bg-interactive text-text border border-border outline-none focus:ring-2 focus:ring-accent placeholder:text-placeholder"
39+
class="w-full h-9 px-4 rounded-md text-text border border-border bg-background-secondary shadow-sm outline-none focus:ring-1 focus:ring-accent placeholder:text-placeholder"
4040
/>
4141
</div>
42-
<div class="flex items-center">
43-
<button title="Click to use fullscreen." id="fullscreen" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
44-
<Maximize2 class="w-5 h-5 cursor-pointer text-text-secondary" />
42+
<div class="flex items-center space-x-2">
43+
<button title="Fullscreen" id="fullscreen" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
44+
<Maximize2 class="w-5 h-5 text-text-secondary" />
4545
</button>
46-
<button title="Click to bookmark this page." id="bookmark" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
47-
<Star class="w-5 h-5 cursor-pointer text-text-secondary" />
46+
<button title="Bookmark this page" id="bookmark" class="flex items-center justify-center p-2 rounded-full hover:bg-interactive">
47+
<Star class="w-5 h-5 text-text-secondary" />
4848
</button>
4949
</div>
5050
</div>

0 commit comments

Comments
 (0)