Skip to content

Build your personal knowledge base with Trilium Notes

feat(website): add Collections intro blurb and Section subtitle prop

Elian Doran24a2356ce871
diff --git a/apps/website/src/components/Section.tsx b/apps/website/src/components/Section.tsx
index c732118027..e15a3cc53e 100644
--- a/apps/website/src/components/Section.tsx
+++ b/apps/website/src/components/Section.tsx
@@ -2,15 +2,17 @@ import { ComponentChildren } from "preact";
interface SectionProps {
title?: string;
+ subtitle?: string;
children: ComponentChildren;
className?: string;
}
-export default function Section({ className, title, children }: SectionProps) {
+export default function Section({ className, title, subtitle, children }: SectionProps) {
return (
<section className={className}>
<div className="content-wrapper">
{title && <h2>{title}</h2>}
+ {subtitle && <p className="section-subtitle">{subtitle}</p>}
{children}
</div>
</section>
diff --git a/apps/website/src/pages/Home/index.css b/apps/website/src/pages/Home/index.css
index 84e02a53d3..4c4be44aa1 100644
--- a/apps/website/src/pages/Home/index.css
+++ b/apps/website/src/pages/Home/index.css
@@ -142,7 +142,7 @@ section.accented {
padding: 1em;
}
-section.ai-integration .section-subtitle {
+.section-subtitle {
max-width: 46em;
margin: -0.5em auto 2em;
text-align: center;
diff --git a/apps/website/src/pages/Home/index.tsx b/apps/website/src/pages/Home/index.tsx
index 524e9ac03b..d35ac5985f 100644
--- a/apps/website/src/pages/Home/index.tsx
+++ b/apps/website/src/pages/Home/index.tsx
@@ -234,7 +234,7 @@ function ExtensibilityBenefitsSection() {
function CollectionsSection() {
const { t } = useTranslation();
return (
- <Section className="collections" title={t("collections.title")}>
+ <Section className="collections" title={t("collections.title")} subtitle={t("collections.subtitle")}>
<ListWithScreenshot items={[
{
title: t("collections.calendar_title"),
@@ -286,8 +286,7 @@ function CollectionsSection() {
function AiIntegrationSection() {
const { t } = useTranslation();
return (
- <Section className="benefits accented ai-integration" title={t("ai_integration.title")}>
- <p className="section-subtitle">{t("ai_integration.subtitle")}</p>
+ <Section className="benefits accented ai-integration" title={t("ai_integration.title")} subtitle={t("ai_integration.subtitle")}>
<div className="ai-integration-split">
<div className="ai-screenshot">
<img src="/feature_llm.webp" alt={t("ai_integration.screenshot_alt")} loading="lazy" />
diff --git a/apps/website/src/translations/en/translation.json b/apps/website/src/translations/en/translation.json
index 669a236572..aee2c6c90d 100644
--- a/apps/website/src/translations/en/translation.json
+++ b/apps/website/src/translations/en/translation.json
@@ -71,6 +71,7 @@
},
"collections": {
"title": "Collections",
+ "subtitle": "Collections give a group of notes a purpose-built view. Display the very same notes as a calendar, a table, a Kanban board, an interactive map and more, then switch between layouts whenever your needs change.",
"calendar_title": "Calendar",
"calendar_description": "Organize your personal or professional events using a calendar, with support for all-day and multi-day events. See your events at a glance with the week, month and year views. Easy interaction to add or drag events.",
"table_title": "Table",
@@ -86,7 +87,7 @@
},
"ai_integration": {
"title": "AI integration",
- "subtitle": "Optional, and entirely on your terms. AI features are opt-in and disabled by default — your notes are never sent anywhere unless you enable them and connect your own provider.",
+ "subtitle": "Optional, and entirely on your terms. AI features are opt-in and disabled by default: your notes are never sent anywhere unless you enable them and connect your own provider.",
"screenshot_alt": "The Trilium AI chat creating notes on your behalf through built-in tools",
"chat_title": "Chat with your notes",
"chat_description": "Ask questions and brainstorm in a built-in chat that can draw on the content of your own notes.",