Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Improve homepage display

Smaug#6739845f5a7bf982
diff --git a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue
index cf699c3c..84d45e5c 100644
--- a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue
+++ b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue
@@ -2,8 +2,8 @@
<div class="editor-container" @keydown="editor.handleKeydown">
<Toolbar :document="document" :minimal="options?.toolbar == 'minimal'" @execute-action="(a:string) => editor.actions(a)" />
<div style="padding: 6px 8px; flex: 1; display: flex; flex-direction: column; min-height: 0">
- <input placeholder="Title" class="title" v-model="document.name" />
- <input placeholder="Description" class="description" v-model="document.description" />
+ <input placeholder="Title" class="title" v-model="document.name" v-if="options?.toolbar !== 'minimal'" />
+ <input placeholder="Description" class="description" v-model="document.description" v-if="options?.toolbar !== 'minimal'" />
<div class="markdown" ref="container">
<InlineToolbar ref="toolbar" @execute-action="(a:string) => editor.actions(a)" />
<textarea ref="textarea" class="content markdown-input" @scroll="syncScroll" @input="update" v-html="document.content_markdown || ''" placeholder="Write something or use the toolbar to create your document..." @keyup="syncScroll"></textarea>
diff --git a/frontend/pages/(public)/index.vue b/frontend/pages/(public)/index.vue
index 51b9e43f..f157f883 100644
--- a/frontend/pages/(public)/index.vue
+++ b/frontend/pages/(public)/index.vue
@@ -17,7 +17,7 @@
</div>
</div>
<div class="images">
- <img :src="`/main-${colorMode.value}.webp`" alt="Documents Image" />
+ <img src="`/screenshots/mock/1.png`" alt="Documents Image" />
</div>
</section>
<section class="editor-section">
@@ -29,7 +29,7 @@
<section class="demo-section">
<h2 class="section-title">Organize your documents</h2>
<div class="demo">
- <img src="/home.webp" alt="home" />
+ <img src="/screenshots/mock/3.png" alt="home" />
</div>
</section>
</main>
@@ -159,19 +159,16 @@ h3 {
.images {
width: 100%;
- max-width: 800px;
margin-top: 2rem;
- img {
- width: 100%;
- border-radius: 1rem;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
- }
}
-
+img {
+ max-height: unset;
+ max-height: 500px;
+ border-radius: 0.5rem;
+}
.editor-section,
.demo-section {
text-align: center;
- margin-top: 4rem;
width: 100%;
.editor {
text-align: left;
@@ -180,13 +177,9 @@ h3 {
.editor {
max-width: 1200px;
- height: 600px;
- margin: 0 auto;
- border-radius: 1rem;
+ height: 720px;
+ padding: 25px;
overflow: hidden;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
-
- border: 1px solid var(--border-color);
}
.demo img {