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.

fixes

Veauville Raphael14f6eb425e48
diff --git a/frontend/pages/docs/[category]/index.vue b/frontend/pages/docs/[category]/index.vue
index d1becbc0..374a4525 100644
--- a/frontend/pages/docs/[category]/index.vue
+++ b/frontend/pages/docs/[category]/index.vue
@@ -3,7 +3,7 @@
<h1>Documents de la catégorie {{ category?.name }}</h1>
<div class="article-list">
<div v-for="document in allDocuments" :key="document.id" class="article">
- <h2>{{ document.name }}</h2>
+ <NuxtLink :to="`/docs/${document.category}/${document.id}`">{{ document.name }}</NuxtLink>
<p class="excerpt">{{ document.description }}</p>
</div>
</div>
@@ -52,8 +52,9 @@ h1 {
margin-bottom: 20px;
}
-h2 {
+a {
font-size: 24px;
+ font-weight: 600;
margin: 0;
}
diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue
index 27b1158b..07416f29 100644
--- a/frontend/pages/index.vue
+++ b/frontend/pages/index.vue
@@ -1,67 +1,130 @@
-<script setup lang="ts">
-import { useCategoriesStore } from '~/store';
-const colorMode = useColorMode()
-const categories = computed(() => useCategoriesStore().getParents);
-
-</script>
-
<template>
- <div style="height:100%;display: flex; flex-direction: column;">
- <main style="height:100%;flex-grow: 1;padding-top:5rem;">
- <div style="height: 100%; display: flex; flex-direction: column;">
- <div
- style="display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2rem; flex: 1;">
- <div style="max-width: 48rem; gap: 1rem;">
- <h1 style="font-size: 2.7rem; font-weight: 700; ">
- Your Ideas, Documents & Plans. Unified. Welcome to
- <span>Alexandrie</span>
- </h1>
- <h3 style="font-size: 1.7rem; font-weight: 500;text-decoration: none;">
- Alexandrie is the connected workspace where <br />
- better, faster work happens
- </h3>
- <hr style="margin:10px 0;" />
- <!-- Display categories -->
- <div style="display: flex; justify-content: center; gap: 1rem;">
- <NuxtLink v-for="category in categories" :key="category.id" :to="`/docs/${category.id}`">
- {{ category.name }}
- </NuxtLink>
- </div>
- <hr style="margin:10px 0;" />
- <AppButton type="opposite">
-
- <p style="display:flex; align-items: center; margin:0;">Get started
- &nbsp;
- <Arrow />
- </p>
-
- </AppButton>
+ <div class="container">
+ <main class="main-content">
+ <div class="content-wrapper">
+ <div class="intro">
+ <div class="intro-text">
+ <h1>Your Ideas, Documents & Plans. Unified. Welcome to <span>Alexandrie</span></h1>
+ <h3>Alexandrie is the connected workspace where <br /> better, faster work happens</h3>
</div>
- <div style="display: flex; align-items: center; justify-content: center; max-width: 80rem;">
- <div style="width: 300px; height: 300px;" class="none">
- <img :src="`/documents-${colorMode.value}.png`" />
- </div>
- <div style="width: 300px; height: 300px;">
- <img :src="`/reading-${colorMode.value}.png`" />
- </div>
+ <div class="category-links">
+ <NuxtLink v-for="category in categories" :key="category.id" :to="`/docs/${category.id}`"
+ class="category-link">{{ category.name }}</NuxtLink>
</div>
</div>
- <div
- style="display: flex; align-items: center; width: 100%; padding: 1.5rem; z-index: 50;justify-content: space-between;">
- <Logo />
- <div style="margin-left: auto; justify-content: space-between; align-items: center; gap: 0.5rem;">
- <AppButton type="ghost">Privacy Policy</AppButton>
- <AppButton type="ghost">Terms of Service</AppButton>
+ <div class="images">
+ <div class="img-container none">
+ <img :src="`/documents-${colorMode.value}.png`" alt="Documents Image" />
+ </div>
+ <div class="img-container">
+ <img :src="`/reading-${colorMode.value}.png`" alt="Reading Image" />
</div>
</div>
</div>
+
</main>
+ <footer>
+ <Logo />
+ <div class="footer-links none">
+ <AppButton type="ghost">Privacy Policy</AppButton>
+ <AppButton type="ghost">Terms of Service</AppButton>
+ </div>
+ </footer>
</div>
</template>
-<style lang="scss" scoped>
+<script setup lang="ts">
+import { useCategoriesStore } from '~/store';
+import { computed } from 'vue';
+
+const categories = computed(() => useCategoriesStore().getParents);
+const colorMode = useColorMode();
+</script>
+
+<style scoped lang="scss">
+.container {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+}
+
+.main-content {
+ flex-grow: 1;
+ padding-top: 1.5rem;
+}
+
+.content-wrapper {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+ flex: 1;
+}
+
+.intro {
+ max-width: 48rem;
+ gap: 1rem;
+}
+
+.intro h1 {
+ font-size: 2.7rem;
+ font-weight: 700;
+}
+
+.intro h3 {
+ font-size: 1.7rem;
+ font-weight: 500;
+ text-decoration: none;
+}
+
+.category-links {
+ display: flex;
+ justify-content: center;
+ gap: 1rem;
+ flex-wrap: wrap;
+}
+
+.none {
+ display: none;
+}
+
+.category-link {
+ background-color: var(--bg-contrast);
+ border-radius: 8px;
+ padding: 1rem;
+ text-decoration: none;
+ color: #333;
+ transition: background-color 0.3s ease, transform 0.3s ease;
+
+ &:hover {
+ background-color: var(--bg-contrast-2);
+ transform: translateY(-3px);
+ }
+
+ @media (min-width: 768px) {
+ width: calc(33.33% - 1rem);
+ }
+
+ @media (min-width: 1024px) {
+ width: calc(25% - 1rem);
+ }
+}
+
+.button-text {
+ display: flex;
+ align-items: center;
+ margin: 0;
+}
+
+.images {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ max-width: 80rem;
+}
+
.img-container {
- position: relative;
width: 300px;
height: 300px;
}
@@ -73,10 +136,24 @@ const categories = computed(() => useCategoriesStore().getParents);
}
@media (min-width: 1024px) {
-
.img-container {
width: 350px;
height: 350px;
}
}
-</style>
\ No newline at end of file
+
+footer {
+ display: flex;
+ align-items: center;
+ width: 100%;
+ padding: 1rem;
+ justify-content: space-between;
+}
+
+.footer-links {
+ margin-left: auto;
+ justify-content: space-between;
+ align-items: center;
+ gap: 0.5rem;
+}
+</style>