Skip to content

Build your personal knowledge base with Trilium Notes

feat(website): place download now button in header as well

Elian Dorancb6cb9732691
diff --git a/apps/website/src/routes/+page.svelte b/apps/website/src/routes/+page.svelte
index 6bb0e0b641..7a3028adcf 100644
--- a/apps/website/src/routes/+page.svelte
+++ b/apps/website/src/routes/+page.svelte
@@ -1,3 +1,7 @@
+<script>
+ import DownloadNow from "./download-now.svelte";
+</script>
+
<section class="relative overflow-hidden bg-gradient-to-br from-white to-violet-50">
<!-- Bokeh background circles -->
<div class="absolute inset-0 pointer-events-none z-0">
@@ -17,10 +21,8 @@
Its unique tree structure, rich editing tools, and powerful search features make managing your information intuitive and flexible.
</p>
<div class="flex items-center gap-6">
- <a href="#" class="py-2 px-5 bg-violet-600 text-white font-semibold rounded-full shadow-md hover:bg-violet-700 focus:outline-none focus:ring focus:ring-violet-400 focus:ring-opacity-75">
- Download
- </a>
- <a href="#" class="font-medium text-violet-700 hover:underline">
+ <DownloadNow />
+ <a href="/download" class="font-medium text-violet-700 hover:underline">
More platforms
</a>
</div>
@@ -30,7 +32,6 @@
<div class="md:w-1/2">
<img src="screenshots/desktop-win.png" alt="Screenshot of the app on desktop Windows" class="w-full rounded-xl shadow-lg">
</div>
-
</div>
</div>
</section>
diff --git a/apps/website/src/routes/download-now.svelte b/apps/website/src/routes/download-now.svelte
new file mode 100644
index 0000000000..2bf1692676
--- /dev/null
+++ b/apps/website/src/routes/download-now.svelte
@@ -0,0 +1,3 @@
+<a href="#" class="py-2 px-5 bg-violet-600 text-white font-semibold rounded-full shadow-md hover:bg-violet-700 focus:outline-none focus:ring focus:ring-violet-400 focus:ring-opacity-75">
+ Download now
+</a>
\ No newline at end of file
diff --git a/apps/website/src/routes/header.svelte b/apps/website/src/routes/header.svelte
index 89b2b60988..170b677659 100644
--- a/apps/website/src/routes/header.svelte
+++ b/apps/website/src/routes/header.svelte
@@ -1,3 +1,7 @@
+<script>
+ import DownloadNow from "./download-now.svelte";
+
+</script>
<header class="header bg-white sticky top-0 z-50">
<div class="container mx-auto flex items-center py-5">
<a href="/" class="flex items-center gap-x-2 w-100">
@@ -12,7 +16,8 @@
<li><a href="/about">About</a></li>
<li><a href="/services">Services</a></li>
<li><a href="/contact">Contact</a></li>
- </ul>
+ <li><DownloadNow /></li>
+ </ul>
</nav>
</div>
</div>