aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/app')
-rw-r--r--apps/web/src/app/api/store/route.ts2
-rw-r--r--apps/web/src/app/globals.css63
-rw-r--r--apps/web/src/app/layout.tsx5
3 files changed, 63 insertions, 7 deletions
diff --git a/apps/web/src/app/api/store/route.ts b/apps/web/src/app/api/store/route.ts
index ebe23077..ca6921c4 100644
--- a/apps/web/src/app/api/store/route.ts
+++ b/apps/web/src/app/api/store/route.ts
@@ -67,7 +67,7 @@ export async function POST(req: NextRequest) {
let storeToSpace = data.space;
if (!storeToSpace) {
- storeToSpace = "all";
+ storeToSpace = "none";
}
const storedContentId = await db.insert(storedContent).values({
diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css
index f5d09a67..b09627ba 100644
--- a/apps/web/src/app/globals.css
+++ b/apps/web/src/app/globals.css
@@ -20,7 +20,7 @@
}
body {
- @apply bg-rgray-2 text-rgray-11 max-h-screen overflow-y-hidden;
+ @apply text-rgray-11 max-h-screen overflow-y-hidden bg-white;
/* color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
@@ -57,8 +57,12 @@ body {
padding-bottom: 15dvh;
}
-.chat-answer pre {
- @apply bg-rgray-3 border-rgray-5 my-5 rounded-md border p-3 text-sm;
+.chat-answer pre {
+ @apply bg-rgray-3 rounded-md border border-rgray-5 p-3 text-sm my-5;
+}
+
+.novel-editor pre {
+ @apply bg-rgray-3 rounded-md border border-rgray-5 p-4 text-sm text-rgray-11;
}
.chat-answer h1 {
@@ -66,5 +70,56 @@ body {
}
.chat-answer img {
- @apply my-5 rounded-md font-medium;
+ @apply rounded-md font-medium my-5;
+}
+
+.tippy-box {
+ @apply bg-rgray-3 text-rgray-11 border border-rgray-5 rounded-md py-0;
+}
+
+.tippy-content #slash-command {
+ @apply text-rgray-11 bg-transparent border-none;
+}
+
+#slash-command button {
+ @apply text-rgray-11 py-2;
+}
+
+#slash-command button div:first-child {
+ @apply text-rgray-11 bg-rgray-4 border-rgray-5 ;
+}
+
+#slash-command button.novel-bg-stone-100 {
+ @apply bg-rgray-1;
+}
+
+.novel-editor [data-type=taskList] > li {
+ @apply my-0;
+}
+
+.novel-editor input[type=checkbox] {
+ @apply accent-rgray-4 rounded-md;
+
+ background: var(--gray-4) !important;
+ border: 1px solid var(--gray-10) !important;
}
+
+.novel-editor .is-empty::before {
+ content: 'Press \'/\' for commands' !important;
+}
+
+.novel-editor h1 {
+ @apply text-2xl;
+}
+
+.novel-editor h2 {
+ @apply text-xl;
+}
+
+.novel-editor h3 {
+ @apply text-lg;
+}
+
+.novel-editor .drag-handle {
+ @apply hidden;
+} \ No newline at end of file
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index 1b204dec..42485461 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -1,8 +1,9 @@
import type { Metadata } from "next";
-import { Roboto } from "next/font/google";
+import { Roboto, Inter } from "next/font/google";
import "./globals.css";
const roboto = Roboto({ weight: ["300", "400", "500"], subsets: ["latin"] });
+const inter = Inter({ weight: ["300", "400", "500"], subsets: ["latin"] });
export const metadata: Metadata = {
title: "Create Next App",
@@ -16,7 +17,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en" className="dark">
- <body className={roboto.className}>
+ <body className={inter.className}>
<div vaul-drawer-wrapper="" className="min-w-screen overflow-x-hidden">
{children}
</div>