Skip to content

Build your personal knowledge base with Trilium Notes

feat(website): pimp up hero section and refine homepage content

Elian Doran12d93597b1f2
diff --git a/apps/website/src/assets/boxicons/bx-export.svg b/apps/website/src/assets/boxicons/bx-export.svg
new file mode 100644
index 0000000000..45310cbe21
--- /dev/null
+++ b/apps/website/src/assets/boxicons/bx-export.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 16h2V7h3l-4-5-4 5h3z"/><path d="M5 22h14c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2h-4v2h4v9H5v-9h4V9H5c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2z"/></svg>
\ No newline at end of file
diff --git a/apps/website/src/assets/boxicons/bx-import.svg b/apps/website/src/assets/boxicons/bx-import.svg
new file mode 100644
index 0000000000..fb66751f66
--- /dev/null
+++ b/apps/website/src/assets/boxicons/bx-import.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m12 18 4-5h-3V2h-2v11H8z"/><path d="M19 9h-4v2h4v9H5v-9h4V9H5c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2z"/></svg>
\ No newline at end of file
diff --git a/apps/website/src/assets/boxicons/bx-printer.svg b/apps/website/src/assets/boxicons/bx-printer.svg
new file mode 100644
index 0000000000..8ce000eafb
--- /dev/null
+++ b/apps/website/src/assets/boxicons/bx-printer.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 7h-1V2H6v5H5c-1.654 0-3 1.346-3 3v7c0 1.103.897 2 2 2h2v3h12v-3h2c1.103 0 2-.897 2-2v-7c0-1.654-1.346-3-3-3zM8 4h8v3H8V4zm8 16H8v-4h8v4zm4-3h-2v-3H6v3H4v-7c0-.551.449-1 1-1h14c.552 0 1 .449 1 1v7z"/><path d="M14 10h4v2h-4z"/></svg>
\ No newline at end of file
diff --git a/apps/website/src/pages/Home/index.css b/apps/website/src/pages/Home/index.css
index 736e7c6a7b..4394860c7f 100644
--- a/apps/website/src/pages/Home/index.css
+++ b/apps/website/src/pages/Home/index.css
@@ -74,20 +74,17 @@ section.hero-section {
}
.hero-tagline {
- margin-top: 1.25em;
+ width: 100%;
+ margin-top: 1.5em;
font-size: 0.85em;
color: var(--muted-color);
display: flex;
flex-wrap: wrap;
align-items: center;
- gap: 0.4em 0.75em;
+ gap: 0.4em 0.9em;
justify-content: center;
- @media (min-width: 720px) {
- justify-content: flex-start;
- }
-
- span:not(.dot) {
+ > *:not(.dot) {
white-space: nowrap;
}
@@ -101,7 +98,8 @@ section.hero-section {
}
.screenshot-container {
- flex-grow: 1;
+ flex: 1 1 0;
+ min-width: 0;
@media (prefers-reduced-motion: no-preference) {
animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
@@ -179,10 +177,15 @@ section.hero-section {
@media (min-width: 720px) {
section.hero-section > .content-wrapper {
flex-direction: row;
+ flex-wrap: wrap;
gap: 3em;
padding: 3em;
}
+ section.hero-section .hero-tagline {
+ margin-top: 0;
+ }
+
section.hero-section .download-wrapper {
display: inline-flex;
}
@@ -300,13 +303,42 @@ section.import .bx svg {
height: 100%;
}
-section.import .import-export-note {
- max-width: 46em;
- margin: 2.5em auto 0;
+section.import .import-logos {
+ margin-top: 2.5em;
text-align: center;
+}
+
+section.import .import-logos-label {
+ display: block;
+ margin-bottom: 1em;
+ font-size: 0.9em;
color: var(--muted-color);
}
+section.import .import-logos-row {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: center;
+ gap: 1.75em;
+}
+
+section.import .import-logo {
+ color: var(--muted-color);
+ opacity: 0.85;
+ transition: color 0.15s ease, opacity 0.15s ease;
+}
+
+section.import .import-logo:hover {
+ color: var(--foreground-color);
+ opacity: 1;
+}
+
+section.import .import-logo .bx {
+ width: 2em;
+ height: 2em;
+}
+
section.final-cta {
text-align: center;
padding: 6em 0;
diff --git a/apps/website/src/pages/Home/index.tsx b/apps/website/src/pages/Home/index.tsx
index c8a5d7ef17..e13edb5a1d 100644
--- a/apps/website/src/pages/Home/index.tsx
+++ b/apps/website/src/pages/Home/index.tsx
@@ -14,6 +14,7 @@ import boardIcon from "../../assets/boxicons/bx-columns-3.svg?raw";
import dashboardIcon from "../../assets/boxicons/bx-dashboard.svg?raw";
import dockerIcon from "../../assets/boxicons/bx-docker.svg?raw";
import templatesIcon from "../../assets/boxicons/bx-duplicate.svg?raw";
+import exportIcon from "../../assets/boxicons/bx-export.svg?raw";
import restApiIcon from "../../assets/boxicons/bx-extension.svg?raw";
import fileIcon from "../../assets/boxicons/bx-file.svg?raw";
import authIcon from "../../assets/boxicons/bx-fingerprint.svg?raw";
@@ -21,6 +22,7 @@ import noteStructureIcon from "../../assets/boxicons/bx-folder.svg?raw";
import gitHubIcon from "../../assets/boxicons/bx-github.svg?raw";
import shareIcon from "../../assets/boxicons/bx-globe.svg?raw";
import revisionsIcon from "../../assets/boxicons/bx-history.svg?raw";
+import importIcon from "../../assets/boxicons/bx-import.svg?raw";
import apiKeyIcon from "../../assets/boxicons/bx-key.svg?raw";
import widgetsIcon from "../../assets/boxicons/bx-layout.svg?raw";
import geomapIcon from "../../assets/boxicons/bx-map.svg?raw";
@@ -28,6 +30,7 @@ import mindmapIcon from "../../assets/boxicons/bx-network-chart.svg?raw";
import textNoteIcon from "../../assets/boxicons/bx-note.svg?raw";
import webClipperIcon from "../../assets/boxicons/bx-paperclip.svg?raw";
import canvasIcon from "../../assets/boxicons/bx-pen.svg?raw";
+import printerIcon from "../../assets/boxicons/bx-printer.svg?raw";
import syncIcon from "../../assets/boxicons/bx-refresh-cw.svg?raw";
import searchIcon from "../../assets/boxicons/bx-search.svg?raw";
import backendIcon from "../../assets/boxicons/bx-server.svg?raw";
@@ -114,7 +117,7 @@ function HeroSection() {
</div>
<p className="hero-tagline">
- <span>{t("hero_section.tagline_free")}</span>
+ <Link href="https://docs.triliumnotes.org/user-guide/misc/license" openExternally>{t("hero_section.tagline_license")}</Link>
<span className="dot" aria-hidden="true" />
<span>{t("hero_section.tagline_no_account")}</span>
<span className="dot" aria-hidden="true" />
@@ -168,7 +171,7 @@ function ProductivityBenefitsSection() {
function NoteTypesSection() {
const { t } = useTranslation();
return (
- <Section className="note-types" title={t("note_types.title")}>
+ <Section className="note-types" title={t("note_types.title")} subtitle={t("note_types.subtitle")}>
<TabbedShowcase items={[
{
title: t("note_types.text_title"),
@@ -337,15 +340,22 @@ function ImportSection() {
return (
<Section className="benefits import accented" title={t("import.title")} subtitle={t("import.subtitle")} cta={{ text: t("import.learn_more"), href: "https://docs.triliumnotes.org/user-guide/concepts/import-export" }}>
<div className="benefits-container grid-3-cols">
- <Card iconSvg={oneNoteIcon} title={t("import.onenote_title")}>{t("import.onenote_description")}</Card>
- <Card iconSvg={notionIcon} title={t("import.notion_title")}>{t("import.notion_description")}</Card>
- <Card iconSvg={keepIcon} title={t("import.keep_title")}>{t("import.keep_description")}</Card>
- <Card iconSvg={evernoteIcon} title={t("import.evernote_title")}>{t("import.evernote_description")}</Card>
- <Card iconSvg={anytypeIcon} title={t("import.anytype_title")}>{t("import.anytype_description")}</Card>
- <Card iconSvg={obsidianIcon} title={t("import.obsidian_title")}>{t("import.obsidian_description")}</Card>
+ <Card iconSvg={importIcon} title={t("import.pillar_import_title")}>{t("import.pillar_import_description")}</Card>
+ <Card iconSvg={exportIcon} title={t("import.pillar_export_title")}>{t("import.pillar_export_description")}</Card>
+ <Card iconSvg={printerIcon} title={t("import.pillar_pdf_title")}>{t("import.pillar_pdf_description")}</Card>
</div>
- <p className="import-export-note">{t("import.export_note")}</p>
+ <div className="import-logos">
+ <span className="import-logos-label">{t("import.sources_label")}</span>
+ <div className="import-logos-row">
+ <span className="import-logo" title={t("import.onenote_title")}><Icon svg={oneNoteIcon} /></span>
+ <span className="import-logo" title={t("import.notion_title")}><Icon svg={notionIcon} /></span>
+ <span className="import-logo" title={t("import.keep_title")}><Icon svg={keepIcon} /></span>
+ <span className="import-logo" title={t("import.evernote_title")}><Icon svg={evernoteIcon} /></span>
+ <span className="import-logo" title={t("import.anytype_title")}><Icon svg={anytypeIcon} /></span>
+ <span className="import-logo" title={t("import.obsidian_title")}><Icon svg={obsidianIcon} /></span>
+ </div>
+ </div>
</Section>
);
}
diff --git a/apps/website/src/translations/en/translation.json b/apps/website/src/translations/en/translation.json
index 4b4acd09eb..215d38a7c4 100644
--- a/apps/website/src/translations/en/translation.json
+++ b/apps/website/src/translations/en/translation.json
@@ -12,7 +12,7 @@
"get_started": "Get started",
"github": "GitHub",
"dockerhub": "Docker Hub",
- "tagline_free": "Free & open source",
+ "tagline_license": "AGPL-3.0 licensed",
"tagline_no_account": "No account needed",
"tagline_cross_platform": "Works offline",
"screenshot_alt": "Screenshot of the Trilium Notes desktop application"
@@ -49,7 +49,8 @@
"api_content": "Interact with Trilium programmatically using its builtin REST API."
},
"note_types": {
- "title": "Multiple ways to represent your information",
+ "title": "A note type for every kind of content",
+ "subtitle": "Not everything fits neatly into a paragraph. Trilium offers a range of note types, from rich text and code to spreadsheets, diagrams and mind maps, so you can capture each idea in the form that suits it best and mix them freely throughout your tree.",
"text_title": "Text notes",
"text_description": "The notes are edited using a visual (WYSIWYG) editor, with support for tables, images, math expressions, code blocks with syntax highlighting. Quickly format the text using Markdown-like syntax or using slash commands.",
"code_title": "Code notes",
@@ -86,20 +87,20 @@
},
"import": {
"title": "Your notes are never locked in",
- "subtitle": "Already keeping notes somewhere else? Trilium ships dedicated importers that understand each application's structure, so your notebooks, notes and formatting come across intact instead of as a flat dump.",
+ "subtitle": "Your notes are yours to move freely. Bring them in from other apps, take them back out in open formats, or turn them into polished documents, whenever you like.",
+ "pillar_import_title": "Import",
+ "pillar_import_description": "Pull your notes in from other apps with their structure intact, or import standard Markdown, HTML and OPML files.",
+ "pillar_export_title": "Export",
+ "pillar_export_description": "Take any note or your entire tree back out as Markdown, HTML or OPML at any time.",
+ "pillar_pdf_title": "Print to PDF",
+ "pillar_pdf_description": "Save a single note or a whole subtree as a polished, book-like PDF.",
+ "sources_label": "Imports directly from",
"onenote_title": "Microsoft OneNote",
- "onenote_description": "Connect your account through Microsoft Graph and import your notebooks directly.",
"notion_title": "Notion",
- "notion_description": "Import a ZIP export of your workspace.",
"keep_title": "Google Keep",
- "keep_description": "Import a ZIP export from Google Takeout.",
"evernote_title": "Evernote",
- "evernote_description": "Import an ENEX export of your notes.",
"anytype_title": "Anytype",
- "anytype_description": "Import a JSON export of your data.",
"obsidian_title": "Obsidian",
- "obsidian_description": "Import a ZIP of your vault.",
- "export_note": "And taking your data out is just as easy. Export any note or your whole tree to Markdown or HTML at any time.",
"learn_more": "Learn more about import & export"
},
"ai_integration": {