Skip to content

Commit ec67bf2

Browse files
committed
fix: move AskIaButton component to work with tailwind
1 parent 5bd4fd1 commit ec67bf2

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.vitepress/theme/Layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
22
import DefaultTheme from 'vitepress/theme';
3-
import AskIaButton from './AskIaButton.vue';
3+
import AskIaButton from '../../src/components/AskIaButton.vue';
44
55
const { Layout } = DefaultTheme;
66
</script>
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
>
66
<!-- Split button: main button + dropdown trigger -->
77
<div
8-
class="flex h-9 cursor-pointer rounded-full bg-[#202123] text-sm font-medium shadow-md"
8+
class="flex h-9 cursor-pointer rounded-full bg-neutral-800 text-sm font-medium shadow-md"
99
>
1010
<!-- Main button - launches ChatGPT directly -->
1111
<a
12-
class="flex items-center rounded-l-full px-3 duration-200 hover:bg-[#2d2f31]"
12+
class="flex items-center rounded-l-full px-3 duration-200 hover:bg-neutral-700"
1313
:href="chatGPTLink"
1414
target="_blank"
1515
rel="noopener"
@@ -24,7 +24,7 @@
2424

2525
<!-- Dropdown trigger button -->
2626
<button
27-
class="flex w-6 items-center justify-center rounded-r-full border-l border-white/10 p-0 duration-200 hover:bg-[#2d2f31]!"
27+
class="flex w-6 items-center justify-center rounded-r-full border-l border-white/10 p-0 duration-200 hover:bg-neutral-700!"
2828
@click.stop="toggleDropdown"
2929
aria-label="More options"
3030
>
@@ -40,11 +40,11 @@
4040

4141
<!-- Dropdown menu -->
4242
<div
43-
class="absolute top-full z-[1000] mt-2 min-w-[280px] rounded-xl border border-[#333] bg-[#1f1f1f] shadow-2xl"
43+
class="absolute top-full z-[1000] mt-2 min-w-[280px] rounded-xl border border-neutral-700 bg-neutral-800 shadow-2xl"
4444
v-show="isDropdownOpen"
4545
>
4646
<a
47-
class="flex w-full items-center gap-3 rounded-xl px-4 py-3 text-left text-[#e0e0e0] transition-all duration-200 hover:bg-[#2a2a2a] hover:text-white focus:outline-none active:bg-[#333] active:text-white"
47+
class="flex w-full items-center gap-3 rounded-xl px-4 py-3 text-left text-neutral-300 transition-all duration-200 hover:bg-neutral-700 hover:text-white focus:outline-none active:bg-neutral-600 active:text-white"
4848
:href="chatGPTLink"
4949
target="_blank"
5050
rel="noopener"
@@ -59,20 +59,20 @@
5959
</div>
6060
<div class="flex flex-1 flex-col gap-0.5">
6161
<div class="text-sm font-medium">Open in ChatGPT</div>
62-
<div class="text-xs leading-tight text-[#999]">
62+
<div class="text-xs leading-tight text-neutral-400">
6363
Ask questions about this page
6464
</div>
6565
</div>
6666
<Icon
67-
class="flex-shrink-0 text-[#666] transition-colors duration-200 group-hover:text-[#999]"
67+
class="flex-shrink-0 text-neutral-500 transition-colors duration-200 group-hover:text-neutral-400"
6868
icon="ep:arrow-right"
6969
height="16"
7070
width="16"
7171
/>
7272
</a>
7373

7474
<a
75-
class="flex w-full items-center gap-3 rounded-xl px-4 py-3 text-left text-[#e0e0e0] transition-all duration-200 hover:bg-[#2a2a2a] hover:text-white focus:outline-none active:bg-[#333] active:text-white"
75+
class="flex w-full items-center gap-3 rounded-xl px-4 py-3 text-left text-neutral-300 transition-all duration-200 hover:bg-neutral-700 hover:text-white focus:outline-none active:bg-neutral-600 active:text-white"
7676
:href="claudeLink"
7777
target="_blank"
7878
rel="noopener"
@@ -87,20 +87,20 @@
8787
</div>
8888
<div class="flex flex-1 flex-col gap-0.5">
8989
<div class="text-sm font-medium">Open in Claude</div>
90-
<div class="text-xs leading-tight text-[#999]">
90+
<div class="text-xs leading-tight text-neutral-400">
9191
Ask questions about this page
9292
</div>
9393
</div>
9494
<Icon
95-
class="flex-shrink-0 text-[#666] transition-colors duration-200 group-hover:text-[#999]"
95+
class="flex-shrink-0 text-neutral-500 transition-colors duration-200 group-hover:text-neutral-400"
9696
icon="ep:arrow-right"
9797
height="16"
9898
width="16"
9999
/>
100100
</a>
101101

102102
<button
103-
class="flex w-full items-center gap-3 rounded-xl px-4! py-3! text-left text-[#e0e0e0] transition-all duration-200 hover:bg-[#2a2a2a]! focus:outline-none active:bg-[#333]! disabled:cursor-not-allowed disabled:opacity-50"
103+
class="flex w-full items-center gap-3 rounded-xl px-4! py-3! text-left text-neutral-300 transition-all duration-200 hover:bg-neutral-700! focus:outline-none active:bg-neutral-600! disabled:cursor-not-allowed disabled:opacity-50"
104104
@click="copyPageContent"
105105
:disabled="isCopying"
106106
>
@@ -116,7 +116,7 @@
116116
<div class="text-sm font-medium">
117117
{{ isCopying ? 'Copied!' : 'Copy page' }}
118118
</div>
119-
<div class="text-xs leading-tight text-[#999]">
119+
<div class="text-xs leading-tight text-neutral-400">
120120
Copy page as Markdown for LLMs
121121
</div>
122122
</div>

0 commit comments

Comments
 (0)