Skip to content

Build your personal knowledge base with Trilium Notes

feat(website): render export/PDF format bullets, link export to docs

Elian Doran919fcb87148c
diff --git a/apps/website/src/pages/Home/index.css b/apps/website/src/pages/Home/index.css
index 964646af47..f04554b947 100644
--- a/apps/website/src/pages/Home/index.css
+++ b/apps/website/src/pages/Home/index.css
@@ -183,15 +183,24 @@ section.hero-section {
section.hero-section > .content-wrapper {
flex-direction: row;
flex-wrap: wrap;
- gap: 3em;
+ gap: 2em;
padding: 3em;
}
+ section.hero-section .title-section {
+ flex-basis: 34%;
+ max-width: 30em;
+ }
+
/* Deep screenshot: enlarge the right column and let it run off the right
edge of the viewport for an immersive, "spilling off the page" look. */
section.hero-section .screenshot-container {
- flex: 1 1 55%;
- margin-right: calc(50% - 50vw - 3em);
+ flex: 1 1 64%;
+ margin-right: calc(50% - 50vw - 8em);
+ }
+
+ section.hero-section .screenshot {
+ min-width: 62vw;
}
section.hero-section .hero-tagline {
@@ -315,6 +324,29 @@ section.import .bx svg {
height: 100%;
}
+section.import .format-list {
+ margin: 0.75em 0 0;
+ padding-left: 1.2em;
+ list-style: none;
+}
+
+section.import .format-list li {
+ position: relative;
+ margin: 0.35em 0;
+ padding-left: 0.2em;
+}
+
+section.import .format-list li::before {
+ content: "";
+ position: absolute;
+ left: -0.9em;
+ top: 0.55em;
+ width: 5px;
+ height: 5px;
+ border-radius: 50%;
+ background: var(--brand-1);
+}
+
section.import .import-logos {
margin-top: 1.25em;
}
diff --git a/apps/website/src/pages/Home/index.tsx b/apps/website/src/pages/Home/index.tsx
index 683840676d..95fd0a3bac 100644
--- a/apps/website/src/pages/Home/index.tsx
+++ b/apps/website/src/pages/Home/index.tsx
@@ -354,8 +354,22 @@ function ImportSection() {
</div>
</div>
</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")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/note-types/file/pdf">{t("import.pillar_pdf_description")}</Card>
+ <Card iconSvg={exportIcon} title={t("import.pillar_export_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/concepts/import-export">
+ {t("import.pillar_export_description")}
+ <ul className="format-list">
+ <li>{t("import.pillar_export_markdown")}</li>
+ <li>{t("import.pillar_export_html")}</li>
+ <li>{t("import.pillar_export_opml")}</li>
+ </ul>
+ </Card>
+ <Card iconSvg={printerIcon} title={t("import.pillar_pdf_title")} moreInfoUrl="https://docs.triliumnotes.org/user-guide/note-types/file/pdf">
+ {t("import.pillar_pdf_description")}
+ <ul className="format-list">
+ <li>{t("import.pillar_pdf_single")}</li>
+ <li>{t("import.pillar_pdf_subtree")}</li>
+ <li>{t("import.pillar_pdf_ready")}</li>
+ </ul>
+ </Card>
</div>
</Section>
);