Skip to content

Commit cf5fb1d

Browse files
committed
2 parents a729eec + b5bf7d6 commit cf5fb1d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+9893
-3510
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434

3535
- name: install pnpm
3636
uses: pnpm/action-setup@v4
37-
# with:
38-
# version: 9.x.x
37+
with:
38+
version: 10.x.x
3939

4040
- name: Setup Node
4141
uses: actions/setup-node@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ logs
2424
!.env.example
2525

2626
.npmrc
27+
.qodo

assets/css/main.css

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import url("https://fonts.googleapis.com/css2?family=Geist:[email protected]&display=swap");
2-
31
@tailwind base;
42
@tailwind components;
53
@tailwind utilities;
@@ -113,8 +111,17 @@
113111
}
114112
}
115113

114+
* {
115+
overscroll-behavior: none;
116+
}
117+
118+
@font-face {
119+
font-family: "Geist";
120+
src: url("/assets/fonts/Geist-VariableFont_wght.ttf") format("truetype");
121+
}
122+
116123
.geist {
117-
font-family: "Geist", serif;
124+
font-family: "Geist", serif !important;
118125
font-optical-sizing: auto;
119126
}
120127

@@ -217,12 +224,16 @@
217224
font-style: normal;
218225
}
219226

227+
iframe {
228+
width: 100vh !important;
229+
}
230+
220231
.inter {
221232
font-family: "Inter", sans-serif;
222233
}
223234

224235
* {
225-
font-family: "Inter";
236+
font-family: "Geist";
226237
}
227238

228239
.drop-shadow-cool {
@@ -234,27 +245,27 @@
234245
}
235246

236247
::-webkit-scrollbar {
237-
width: 12px; /* Width of the scrollbar */
238-
height: 12px; /* Height of the scrollbar for horizontal scrolling */
248+
width: 12px !important; /* Width of the scrollbar */
249+
height: 12px !important; /* Height of the scrollbar for horizontal scrolling */
239250
}
240251

241252
::-webkit-scrollbar-track {
242253
background: transparent; /* Background of the scrollbar track */
243-
@apply dark:bg-[#404040] rounded-full;
254+
@apply dark:!bg-[#404040] !rounded-full;
244255
}
245256

246257
::-webkit-scrollbar-thumb {
247-
@apply dark:bg-[#171717] bg-gray-200;
248-
border-radius: 1rem; /* Rounded corners for the thumb */
249-
border: 3px solid transparent; /* Adds padding around the thumb */
250-
background-clip: content-box; /* Ensures the thumb stays within bounds */
258+
@apply dark:!bg-[#171717] !bg-gray-200;
259+
border-radius: 1rem !important;
260+
border: 3px solid transparent !important;
261+
background-clip: content-box !important;
251262
}
252263

253264
::-webkit-scrollbar-thumb:hover {
254-
background: rgba(0, 0, 0, 0.7); /* Darker color on hover */
255-
@apply dark:bg-[#404040];
265+
background: rgba(0, 0, 0, 0.7) !important;
266+
@apply dark:!bg-[#404040];
256267
}
257268

258269
::-webkit-scrollbar-corner {
259-
background: transparent; /* Makes the corner between vertical and horizontal scrollbars transparent */
270+
background: transparent !important;
260271
}
145 KB
Binary file not shown.

assets/line.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/lineDark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

components/editor.vue

Lines changed: 258 additions & 204 deletions
Large diffs are not rendered by default.

components/ui/bottomSheet.vue

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
:style="{ maxHeight: '70%', overflowY: 'auto' }">
77
<div class="flex justify-end items-center px-4 py-3 dark:border-[#2a3828]">
88
<button @click="closeSheet"
9-
class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-onPrimaryContainer backdrop-blur-xl flex px-2 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool tab-item">
10-
<svg xmlns="http://www.w3.org/2000/svg" width="21" viewBox="0 0 24 24" class="drop-shadow-sm">
9+
class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-black backdrop-blur-xl flex px-2 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool tab-item">
10+
<svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24 24" class="drop-shadow-sm">
1111
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
1212
d="M19 5L5 19M5 5l14 14" color="currentColor" />
1313
</svg>
@@ -17,11 +17,10 @@
1717
<Menu as="div" class="relative text-left">
1818
<div>
1919
<MenuButton
20-
class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-onPrimaryContainer backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool">
20+
class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-black backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool">
2121
<span class="mr-2 text-[18px]" :style="{ fontFamily: selectedFont }">{{ selectedFont || 'Select Font'
2222
}}</span>
23-
<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24"
24-
class="opacity-20 dark:opacity-80">
23+
<svg xmlns="http://www.w3.org/2000/svg" width="18" viewBox="0 0 24 24">
2524
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
2625
stroke-width="2" d="m6 9l6 6l6-6" />
2726
</svg>
@@ -33,7 +32,7 @@
3332
leave-active-class="transition duration-75 ease-in" leave-from-class="transform scale-100 opacity-100"
3433
leave-to-class="transform scale-95 opacity-0">
3534
<MenuItems
36-
class="z-10 right-0 mt-4 origin-top-right divide-y rounded-2xl text-onPrimaryContainer overflow-hidden max-h-60 overflow-y-auto inline-block dark:bg-[#171717] dark:!border-[#484747] bg-white border !border-gray-200 backdrop-blur-xl justify-center items-center cursor-pointer drop-shadow-cool">
35+
class="z-10 right-0 mt-4 origin-top-right divide-y rounded-2xl text-black overflow-hidden max-h-60 overflow-y-auto inline-block dark:bg-[#171717] dark:!border-[#484747] bg-white border !border-gray-200 backdrop-blur-xl justify-center items-center cursor-pointer drop-shadow-cool">
3736
<div class="p-2 inline-flex space-x-2">
3837
<input v-model="searchQuery" placeholder="Search"
3938
class="placeholder:text-gray-400 dark:placeholder:text-gray-200/80 bg-transparent outline-none mt-1 p-2 px-3 bg-white border dark:border-none border-gray-200 rounded-xl drop-shadow-cool text-black dark:bg-[#404040] dark:border-[#525252] dark:text-gray-50 flex justify-center" />
@@ -47,10 +46,10 @@
4746
</svg>
4847
</button>
4948
</div>
50-
<div v-if="filteredFonts.length === 0" class="p-4 text-onPrimaryContainer drop-shadow-sm">
49+
<div v-if="filteredFonts.length === 0" class="p-4 text-black drop-shadow-sm">
5150
No fonts found.
5251
</div>
53-
<div v-else class="p-2 flex flex-col space-y-2 text-onPrimaryContainer">
52+
<div v-else class="p-2 flex flex-col space-y-2 text-black">
5453
<MenuItem v-for="font in filteredFonts" :key="font" v-slot="{ active }">
5554
<button :class="[
5655
'block w-full px-4 hover:border rounded-xl !text-xl py-2 text-left 1 dark:text-white hover:bg-gray-50 dark:hover:bg-[#404040] dark:hover:border-[#414040]', active ? 'bg-gray-50' : ''
@@ -65,7 +64,7 @@
6564

6665
<div class="flex my-3 space-x-4 items-center">
6766
<div
68-
class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-onPrimaryContainer backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool space-x-2 text-[18px]">
67+
class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-black backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool space-x-2 text-[18px]">
6968
<span>Color</span>
7069
<input ref="colorPicker" type="color" :value="currentColor" @input="updateColor"
7170
class="color-picker hidden" />
@@ -86,16 +85,16 @@
8685
<div class="flex space-x-4">
8786
<div class="flex space-x-4 dark:text-white/40 text-black/30">
8887
<div
89-
class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-onPrimaryContainer backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool space-x-1 text-[18px]">
88+
class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-black backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool space-x-1 text-[18px]">
9089
<svg xmlns="http://www.w3.org/2000/svg" width="22" viewBox="0 0 24 24" class="drop-shadow-sm">
9190
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
9291
stroke-width="1.5"
9392
d="M10.855 8.891C11.383 8.297 11.648 8 12 8s.617.297 1.145.891l1.3 1.461c.704.79 1.055 1.185 1.055 1.648s-.351.858-1.055 1.648l-1.3 1.46c-.528.595-.793.892-1.145.892s-.617-.297-1.145-.891l-1.3-1.461C8.852 12.858 8.5 12.463 8.5 12s.351-.858 1.055-1.648zM5 12H2m20 0h-3m-7 7v3m0-20v3"
9493
color="currentColor" />
9594
</svg><span>Text align</span>
9695

97-
<div class="pl-2 flex space-x-1 text-gray-400 dark:text-white/40"><button @click="setTextAlign('left')"
98-
:class="{ 'text-gray-900 hover:text-gray-900 dark:text-white/90 dark:hover:text-white/90': isActiveAlign('left') }"
96+
<div class="pl-2 flex space-x-1 text-black/40 dark:text-white/40"><button @click="setTextAlign('left')"
97+
:class="{ 'text-black hover:text-black dark:text-white/90 dark:hover:text-white/90': isActiveAlign('left') }"
9998
class="p-1 hover:text-gray-500 dark:hover:text-gray-200 rounded-lg">
10099
<svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24 24" class="drop-shadow-sm">
101100
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
@@ -104,7 +103,7 @@
104103
</button>
105104

106105
<button @click="setTextAlign('center')"
107-
:class="{ 'text-gray-900 hover:text-gray-900 dark:text-white/90 dark:hover:text-white/90': isActiveAlign('center') }"
106+
:class="{ 'text-black hover:text-black dark:text-white/90 dark:hover:text-white/90': isActiveAlign('center') }"
108107
class="p-1 hover:text-gray-500 dark:hover:text-gray-200 rounded-lg">
109108
<svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24 24" class="drop-shadow-sm">
110109
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
@@ -113,7 +112,7 @@
113112
</button>
114113

115114
<button @click="setTextAlign('right')"
116-
:class="{ 'text-gray-900 hover:text-gray-900 dark:text-white/90 dark:hover:text-white/90': isActiveAlign('right') }"
115+
:class="{ 'text-black hover:text-black dark:text-white/90 dark:hover:text-white/90': isActiveAlign('right') }"
117116
class="p-1 hover:text-gray-500 dark:hover:text-gray-200 rounded-lg">
118117
<svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24 24" class="drop-shadow-sm">
119118
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
@@ -122,7 +121,7 @@
122121
</button>
123122

124123
<button @click="setTextAlign('justify')"
125-
:class="{ 'text-gray-900 hover:text-gray-900 dark:text-white/90 dark:hover:text-white/90': isActiveAlign('justify') }"
124+
:class="{ 'text-black hover:text-black dark:text-white/90 dark:hover:text-white/90': isActiveAlign('justify') }"
126125
class="p-1 hover:text-gray-500 dark:hover:text-gray-200 rounded-lg">
127126
<svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24 24" class="drop-shadow-sm">
128127
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"

0 commit comments

Comments
 (0)