Skip to content

Commit 2ffee78

Browse files
committed
Add link to wordin
1 parent efc9657 commit 2ffee78

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

src/lib/Navbar.svelte

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,18 @@
6767
<span class="text-teal-800 text-xs relative top-3 right-12 px-1 rounded">Special</span>
6868
{/if}
6969
</h1>
70-
<div class="hidden md:block">
71-
<span class="flex gap-3 justify-center h-full dark:text-white">
70+
<div class="hidden lg:block">
71+
<span class="flex gap-3 justify-center h-full dark:text-white items-center">
72+
<a
73+
href="https://word.in.th"
74+
target="_blank"
75+
rel="noopener noreferrer"
76+
class="text-red-400 hover:text-red-700 relative mr-8"
77+
><span
78+
class="absolute -top-2 -right-10 bg-yellow-300 text-yellow-800 text-[10px] font-bold px-2 py-0.5 rounded-full"
79+
>NEW!</span
80+
> เวิดดิ้น
81+
</a>
7282
{#if training || special}
7383
<button
7484
class="text-red-400"
@@ -103,7 +113,7 @@
103113
<button on:click={() => (settingModal = true)}>ตั้งค่า</button>
104114
</span>
105115
</div>
106-
<div class="block md:hidden">
116+
<div class="block lg:hidden">
107117
<div class="relative" bind:this={menu}>
108118
<div>
109119
<button
@@ -144,6 +154,18 @@
144154
}}>Special</button
145155
>
146156
{/if}
157+
<a
158+
href="https://word.in.th"
159+
target="_blank"
160+
rel="noopener noreferrer"
161+
class="block px-4 py-2 hover:bg-gray-200 hover:text-blue-600 w-full text-center text-red-400 relative"
162+
>
163+
<span
164+
class="absolute -top-2 right-10 bg-yellow-300 text-yellow-800 text-[10px] font-bold px-2 py-0.5 rounded-full"
165+
>NEW!</span
166+
>
167+
เวิดดิ้น
168+
</a>
147169
<button
148170
class="block px-4 py-2 hover:bg-gray-200 hover:text-black w-full"
149171
on:click={() => (statsModal = true)}>สถิติ</button

0 commit comments

Comments
 (0)