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): rework Everyday power features section
Elian Doran6c56a2341788
diff --git a/apps/website/src/assets/boxicons/bx-duplicate.svg b/apps/website/src/assets/boxicons/bx-duplicate.svgnew file mode 100644index 0000000000..9a720da4a6--- /dev/null+++ b/apps/website/src/assets/boxicons/bx-duplicate.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 10H9v3H6v2h3v3h2v-3h3v-2h-3z"/><path d="M4 22h12c1.103 0 2-.897 2-2V8c0-1.103-.897-2-2-2H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2zM4 8h12l.002 12H4V8z"/><path d="M20 2H8v2h12v12h2V4c0-1.103-.897-2-2-2z"/></svg>\ No newline at end of filediff --git a/apps/website/src/assets/boxicons/bx-fingerprint.svg b/apps/website/src/assets/boxicons/bx-fingerprint.svgnew file mode 100644index 0000000000..b55eaab547--- /dev/null+++ b/apps/website/src/assets/boxicons/bx-fingerprint.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5.962 17.674C7 19.331 7 20.567 7 22h2c0-1.521 0-3.244-1.343-5.389l-1.695 1.063zM16.504 3.387C13.977 1.91 7.55.926 4.281 4.305c-3.368 3.481-2.249 9.072.001 11.392.118.122.244.229.369.333.072.061.146.116.205.184l1.494-1.33a3.918 3.918 0 0 0-.419-.391c-.072-.06-.146-.119-.214-.188-1.66-1.711-2.506-6.017.001-8.608 2.525-2.611 8.068-1.579 9.777-.581 2.691 1.569 4.097 4.308 4.109 4.333l1.789-.895c-.065-.135-1.668-3.289-4.889-5.167z"/><path d="M9.34 12.822c-1.03-1.26-1.787-2.317-1.392-3.506.263-.785.813-1.325 1.637-1.604 1.224-.41 2.92-.16 4.04.601l1.123-1.654c-1.648-1.12-3.982-1.457-5.804-.841-1.408.476-2.435 1.495-2.892 2.866-.776 2.328.799 4.254 1.74 5.405.149.183.29.354.409.512C11 18.323 11 20.109 11 22h2c0-2.036 0-4.345-3.201-8.601a19.71 19.71 0 0 0-.459-.577zm5.791-3.344c1.835 1.764 3.034 4.447 3.889 8.701l1.961-.395c-.939-4.678-2.316-7.685-4.463-9.748l-1.387 1.442z"/><path d="m11.556 9.169-1.115 1.66c.027.019 2.711 1.88 3.801 5.724l1.924-.545c-1.299-4.582-4.476-6.749-4.61-6.839zm3.132 9.29c.21 1.168.312 2.326.312 3.541h2c0-1.335-.112-2.608-.343-3.895l-1.969.354z"/></svg>\ No newline at end of filediff --git a/apps/website/src/pages/Home/index.css b/apps/website/src/pages/Home/index.cssindex 2417787f7d..736e7c6a7b 100644--- a/apps/website/src/pages/Home/index.css+++ b/apps/website/src/pages/Home/index.css@@ -47,23 +47,65 @@ section.hero-section {}.title-section {- flex-basis: 30%;+ flex-basis: 42%;flex-shrink: 0;+ max-width: 36em;color: var(--muted-color);+ @media (prefers-reduced-motion: no-preference) {+ animation: hero-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;+ }+h1 {background-image: linear-gradient(150deg, var(--brand-1), var(--brand-3));background-clip: text;color: transparent;- line-height: 1.1;- font-weight: 400;- font-size: 2em;- margin-block: 0.65em;+ line-height: 1.05;+ font-weight: 600;+ font-size: clamp(2.2rem, 3.6vw, 3rem);+ letter-spacing: -0.02em;+ margin-block: 0.5em 0.45em;+ }++ p {+ font-size: 1.05em;+ line-height: 1.6;+ }+ }++ .hero-tagline {+ margin-top: 1.25em;+ font-size: 0.85em;+ color: var(--muted-color);+ display: flex;+ flex-wrap: wrap;+ align-items: center;+ gap: 0.4em 0.75em;+ justify-content: center;++ @media (min-width: 720px) {+ justify-content: flex-start;+ }++ span:not(.dot) {+ white-space: nowrap;+ }++ .dot {+ width: 4px;+ height: 4px;+ border-radius: 50%;+ background: var(--brand-1);+ flex-shrink: 0;}}.screenshot-container {flex-grow: 1;++ @media (prefers-reduced-motion: no-preference) {+ animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;+ }}.screenshot {@@ -104,6 +146,18 @@ section.hero-section {}}+@keyframes hero-rise {+ from {+ opacity: 0;+ transform: translateY(16px);+ }++ to {+ opacity: 1;+ transform: translateY(0);+ }+}+@media (max-width: 719.99px) {section.hero-section {padding-bottom: 0;diff --git a/apps/website/src/pages/Home/index.tsx b/apps/website/src/pages/Home/index.tsxindex 85e782fa82..c8a5d7ef17 100644--- a/apps/website/src/pages/Home/index.tsx+++ b/apps/website/src/pages/Home/index.tsx@@ -13,8 +13,10 @@ import aiToolsIcon from "../../assets/boxicons/bx-cog.svg?raw";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 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";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";@@ -28,7 +30,6 @@ import webClipperIcon from "../../assets/boxicons/bx-paperclip.svg?raw";import canvasIcon from "../../assets/boxicons/bx-pen.svg?raw";import syncIcon from "../../assets/boxicons/bx-refresh-cw.svg?raw";import searchIcon from "../../assets/boxicons/bx-search.svg?raw";-import jumpToIcon from "../../assets/boxicons/bx-send-alt.svg?raw";import backendIcon from "../../assets/boxicons/bx-server.svg?raw";import protectedNotesIcon from "../../assets/boxicons/bx-shield.svg?raw";import presentationIcon from "../../assets/boxicons/bx-slideshow.svg?raw";@@ -111,6 +112,14 @@ function HeroSection() {<div className="screenshot-container">{screenshotUrl && <img class="screenshot" src={screenshotUrl} alt={t("hero_section.screenshot_alt")} />}</div>++ <p className="hero-tagline">+ <span>{t("hero_section.tagline_free")}</span>+ <span className="dot" aria-hidden="true" />+ <span>{t("hero_section.tagline_no_account")}</span>+ <span className="dot" aria-hidden="true" />+ <span>{t("hero_section.tagline_cross_platform")}</span>+ </p></Section>);}@@ -142,11 +151,12 @@ function ProductivityBenefitsSection() {<Section className="benefits accented" title={t("productivity_benefits.title")}><div className="benefits-container grid-3-cols"><Card iconSvg={revisionsIcon} title={t("productivity_benefits.revisions_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/concepts/notes/note-revisions">{t("productivity_benefits.revisions_content")}</Card>- <Card iconSvg={syncIcon} title={t("productivity_benefits.sync_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/setup/synchronization">{t("productivity_benefits.sync_content")}</Card><Card iconSvg={protectedNotesIcon} title={t("productivity_benefits.protected_notes_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/concepts/notes/protected-notes">{t("productivity_benefits.protected_notes_content")}</Card>- <Card iconSvg={jumpToIcon} title={t("productivity_benefits.jump_to_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/concepts/navigation/jump-to">{t("productivity_benefits.jump_to_content")}</Card>+ <Card iconSvg={authIcon} title={t("productivity_benefits.auth_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/installation/server/authentication">{t("productivity_benefits.auth_content")}</Card><Card iconSvg={searchIcon} title={t("productivity_benefits.search_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/concepts/navigation/search">{t("productivity_benefits.search_content")}</Card>+ <Card iconSvg={templatesIcon} title={t("productivity_benefits.templates_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/advanced-usage/template">{t("productivity_benefits.templates_content")}</Card><Card iconSvg={webClipperIcon} title={t("productivity_benefits.web_clipper_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/setup/web-clipper">{t("productivity_benefits.web_clipper_content")}</Card>+ <Card iconSvg={syncIcon} title={t("productivity_benefits.sync_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/setup/synchronization">{t("productivity_benefits.sync_content")}</Card><Card iconSvg={shareIcon} title={t("productivity_benefits.share_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/advanced-usage/sharing">{t("productivity_benefits.share_content")}</Card><Card iconSvg={restApiIcon} title={t("productivity_benefits.api_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/advanced-usage/etapi">{t("productivity_benefits.api_content")}</Card></div>diff --git a/apps/website/src/translations/en/translation.json b/apps/website/src/translations/en/translation.jsonindex 25b595e920..4b4acd09eb 100644--- a/apps/website/src/translations/en/translation.json+++ b/apps/website/src/translations/en/translation.json@@ -12,6 +12,9 @@"get_started": "Get started","github": "GitHub","dockerhub": "Docker Hub",+ "tagline_free": "Free & open source",+ "tagline_no_account": "No account needed",+ "tagline_cross_platform": "Works offline","screenshot_alt": "Screenshot of the Trilium Notes desktop application"},"organization_benefits": {@@ -25,19 +28,21 @@"hoisting_description": "Easily separate your personal and work notes by grouping them under a workspace, which focuses your note tree to only show a specific set of notes."},"productivity_benefits": {- "title": "Productivity and safety",+ "title": "Everyday power features","revisions_title": "Note revisions","revisions_content": "Notes are periodically saved in the background and revisions can be used for review or to undo accidental changes. Revisions can also be created on-demand.",- "sync_title": "Synchronization",- "sync_content": "Use a self-hosted or cloud instance to easily synchronize your notes across multiple devices, and to access it from your mobile phone using a PWA.","protected_notes_title": "Protected notes","protected_notes_content": "Protect sensitive personal information by encrypting the notes and locking them behind a password-protected session.",- "jump_to_title": "Quick search and commands",- "jump_to_content": "Jump quickly to notes or UI commands across the hierarchy by searching for their title, with fuzzy matching to account for typos or slight differences.",- "search_title": "Powerful search",- "search_content": "Or search for text inside notes and narrow down the search by filtering by the parent note, or by depth.",+ "auth_title": "Secure sign-in",+ "auth_content": "Protect your server login with multi-factor authentication (TOTP), or sign in through your own identity provider with OpenID Connect single sign-on.",+ "search_title": "Search & quick navigation",+ "search_content": "Jump to any note or command by title with fuzzy matching, or run a full-text search across your notes, narrowed by parent note or depth.",+ "templates_title": "Templates",+ "templates_content": "Define reusable note templates with a preset structure, attributes and content, then create new notes from them in a click.","web_clipper_title": "Web clipper","web_clipper_content": "Grab web pages (or screenshots) and place them directly into Trilium using the web clipper browser extension.",+ "sync_title": "Synchronization",+ "sync_content": "Use a self-hosted or cloud instance to easily synchronize your notes across multiple devices, and to access it from your mobile phone using a PWA.","share_title": "Share notes on the web","share_content": "If you have a server, it can be used to share a subset of your notes with other people.","api_title": "REST API",