Spaces:
Running
Running
edit
Browse files
components/editor/ask-ai/index.tsx
CHANGED
|
@@ -264,16 +264,6 @@ export function AskAI({
|
|
| 264 |
</div>
|
| 265 |
)}
|
| 266 |
<div className="w-full relative flex items-center justify-between">
|
| 267 |
-
{pages.length === 1 && (
|
| 268 |
-
<div className="border border-sky-500/20 bg-sky-500/10 text-sky-500 pl-2 pr-4 py-1.5 text-xs rounded-full absolute top-0 -translate-y-[calc(100%+8px)] left-0 max-w-max z-10 flex items-center justify-start gap-2">
|
| 269 |
-
<span className="rounded-full text-[10px] font-semibold bg-white text-neutral-900 px-1.5 py-0.5">
|
| 270 |
-
NEW
|
| 271 |
-
</span>
|
| 272 |
-
<p className="text-sm">
|
| 273 |
-
DeepSite can now create multiple pages at once. Try it!
|
| 274 |
-
</p>
|
| 275 |
-
</div>
|
| 276 |
-
)}
|
| 277 |
{isAiWorking && (
|
| 278 |
<div className="absolute bg-neutral-800 rounded-lg top-0 left-4 w-[calc(100%-30px)] h-full z-1 flex items-start pt-3.5 justify-between max-lg:text-sm">
|
| 279 |
<div className="flex items-center justify-start gap-2">
|
|
@@ -315,7 +305,7 @@ export function AskAI({
|
|
| 315 |
}}
|
| 316 |
/>
|
| 317 |
</div>
|
| 318 |
-
<div className="flex items-center justify-between gap-2 px-4 pb-3">
|
| 319 |
<div className="flex-1 flex items-center justify-start gap-1.5">
|
| 320 |
<ReImagine onRedesign={(md) => callAi(md)} />
|
| 321 |
{!isSameHtml && (
|
|
@@ -373,6 +363,16 @@ export function AskAI({
|
|
| 373 |
open={openProModal}
|
| 374 |
onClose={() => setOpenProModal(false)}
|
| 375 |
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 376 |
{!isSameHtml && (
|
| 377 |
<div className="absolute top-0 right-0 -translate-y-[calc(100%+8px)] select-none text-xs text-neutral-400 flex items-center justify-center gap-2 bg-neutral-800 border border-neutral-700 rounded-md p-1 pr-2.5">
|
| 378 |
<label
|
|
|
|
| 264 |
</div>
|
| 265 |
)}
|
| 266 |
<div className="w-full relative flex items-center justify-between">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
{isAiWorking && (
|
| 268 |
<div className="absolute bg-neutral-800 rounded-lg top-0 left-4 w-[calc(100%-30px)] h-full z-1 flex items-start pt-3.5 justify-between max-lg:text-sm">
|
| 269 |
<div className="flex items-center justify-start gap-2">
|
|
|
|
| 305 |
}}
|
| 306 |
/>
|
| 307 |
</div>
|
| 308 |
+
<div className="flex items-center justify-between gap-2 px-4 pb-3 mt-2">
|
| 309 |
<div className="flex-1 flex items-center justify-start gap-1.5">
|
| 310 |
<ReImagine onRedesign={(md) => callAi(md)} />
|
| 311 |
{!isSameHtml && (
|
|
|
|
| 363 |
open={openProModal}
|
| 364 |
onClose={() => setOpenProModal(false)}
|
| 365 |
/>
|
| 366 |
+
{pages.length === 1 && (
|
| 367 |
+
<div className="border border-sky-500/20 bg-sky-500/20 text-sky-500 pl-2 pr-4 py-1.5 text-xs rounded-full absolute top-0 -translate-y-[calc(100%+8px)] left-0 max-w-max flex items-center justify-start gap-2">
|
| 368 |
+
<span className="rounded-full text-[10px] font-semibold bg-white text-neutral-900 px-1.5 py-0.5">
|
| 369 |
+
NEW
|
| 370 |
+
</span>
|
| 371 |
+
<p className="text-sm text-neutral-100">
|
| 372 |
+
DeepSite can now create multiple pages at once. Try it!
|
| 373 |
+
</p>
|
| 374 |
+
</div>
|
| 375 |
+
)}
|
| 376 |
{!isSameHtml && (
|
| 377 |
<div className="absolute top-0 right-0 -translate-y-[calc(100%+8px)] select-none text-xs text-neutral-400 flex items-center justify-center gap-2 bg-neutral-800 border border-neutral-700 rounded-md p-1 pr-2.5">
|
| 378 |
<label
|