Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(website): fold export into the import section, drop duplicate card
Elian Doran76c0836d5724
diff --git a/apps/website/src/pages/Home/index.css b/apps/website/src/pages/Home/index.cssindex 3f808a3b22..048dff393b 100644--- a/apps/website/src/pages/Home/index.css+++ b/apps/website/src/pages/Home/index.css@@ -202,8 +202,15 @@ section.import .bx svg {height: 100%;}+section.import .import-export-note {+ max-width: 46em;+ margin: 2.5em auto 0;+ text-align: center;+ color: var(--muted-color);+}+section.import .import-cta {- margin-top: 2.5em;+ margin-top: 1.5em;display: flex;justify-content: center;diff --git a/apps/website/src/pages/Home/index.tsx b/apps/website/src/pages/Home/index.tsxindex b00d4022c7..ca03df127f 100644--- a/apps/website/src/pages/Home/index.tsx+++ b/apps/website/src/pages/Home/index.tsx@@ -29,7 +29,6 @@ import searchIcon from "../../assets/boxicons/bx-search.svg?raw";import jumpToIcon from "../../assets/boxicons/bx-send-alt.svg?raw";import protectedNotesIcon from "../../assets/boxicons/bx-shield.svg?raw";import presentationIcon from "../../assets/boxicons/bx-slideshow.svg?raw";-import importExportIcon from "../../assets/boxicons/bx-swap-horizontal.svg?raw";import tableIcon from "../../assets/boxicons/bx-table.svg?raw";import attributesIcon from "../../assets/boxicons/bx-tag.svg?raw";import mermaidIcon from "../../assets/boxicons/bx-vector-square.svg?raw";@@ -227,8 +226,7 @@ function ExtensibilityBenefitsSection() {return (<><Section className="benefits accented" title={t("extensibility_benefits.title")}>- <div className="benefits-container grid-4-cols">- <Card iconSvg={importExportIcon} title={t("extensibility_benefits.import_export_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/concepts/import-export">{t("extensibility_benefits.import_export_description")}</Card>+ <div className="benefits-container grid-3-cols"><Card iconSvg={shareIcon} title={t("extensibility_benefits.share_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/advanced-usage/sharing">{t("extensibility_benefits.share_description")}</Card><Card iconSvg={codeIcon} title={t("extensibility_benefits.scripting_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/scripts">{t("extensibility_benefits.scripting_description")}</Card><Card iconSvg={restApiIcon} title={t("extensibility_benefits.api_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/advanced-usage/etapi">{t("extensibility_benefits.api_description")}</Card>@@ -325,8 +323,10 @@ function ImportSection() {<Card iconSvg={obsidianIcon} title={t("import.obsidian_title")}>{t("import.obsidian_description")}</Card></div>+ <p className="import-export-note">{t("import.export_note")}</p>+<div className="import-cta">- <Button outline text={t("import.learn_more")} href="https://docs.triliumnotes.org/user-guide/importing" openExternally />+ <Button outline text={t("import.learn_more")} href="https://docs.triliumnotes.org/user-guide/concepts/import-export" openExternally /></div></Section>);diff --git a/apps/website/src/translations/en/translation.json b/apps/website/src/translations/en/translation.jsonindex 3993218207..fbb5757dcd 100644--- a/apps/website/src/translations/en/translation.json+++ b/apps/website/src/translations/en/translation.json@@ -60,8 +60,6 @@},"extensibility_benefits": {"title": "Sharing & extensibility",- "import_export_title": "Import/export",- "import_export_description": "Easily interact with other applications using Markdown, ENEX, OPML formats.","share_title": "Share notes on the web","share_description": "If you have a server, it can be used to share a subset of your notes with other people.","scripting_title": "Advanced scripting",@@ -86,7 +84,7 @@"dashboard_description": "Arrange your notes as draggable, resizable tiles on a grid. Notes becomes live widgets showing their content at a glance; ideal for building a personal homepage or a project overview that brings everything in one place."},"import": {- "title": "Bring your notes with you",+ "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.","onenote_title": "Microsoft OneNote","onenote_description": "Connect your account through Microsoft Graph and import your notebooks directly.",@@ -100,7 +98,8 @@"anytype_description": "Import a JSON export of your data.","obsidian_title": "Obsidian","obsidian_description": "Import a ZIP of your vault.",- "learn_more": "Learn more about importing"+ "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": {"title": "AI integration",