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
chore(website): port note types
Elian Doranb4a2a6c12b64
diff --git a/apps/website2/src/index.html b/apps/website2/src/index.htmlindex 28dabd21de..b674a100e5 100644--- a/apps/website2/src/index.html+++ b/apps/website2/src/index.html@@ -34,55 +34,6 @@</div></section>- <section class="note-types">- <div class="content-wrapper">- <h2>Note types</h2>- <div class="note-types-container">- <div class="card">- <img class="image" src="./assets/type_text.png" width="1320" height="757">- <p><span class="text-big"> Text notes </span><br>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. </p>- </div>- <div class="card">- <img class="image" src="./assets/type_code.png" width="1441" height="946">- <p><span class="text-big"> Code notes </span><br>Large- samples of source code or scripts use a dedicated editor, with syntax highlighting for many- programming languages and with various color themes </p>- </div>- <div class="card">- <img class="image" src="./assets/type_file.png" width="1522"- height="942">- <p><span class="text-big"> File notes </span><br>Embed- multimedia files such as PDFs, images, videos with an in-application preview. </p>- </div>- <div class="card">- <img class="image" src="./assets/type_canvas.png" width="835"- height="627">- <p><span class="text-big"> Canvas </span><br>Arrange- shapes, images and text across an infinite canvas, using the same technology behind <a- href="https://excalidraw.com">excalidraw.com</a> . Ideal for diagrams, sketches and visual- planning. </p>- </div>- <div class="card">- <img class="image" src="./assets/type_mermaid.png" width="831"- height="640">- <p><span class="text-big">Mermaid diagrams- </span><br>Create diagrams such as flowcharts, class & sequence diagrams, Gantt charts and- many more, using the Mermaid syntax. </p>- </div>- <div class="card">- <img class="image" src="./assets/type_mindmap.png" width="832" height="631">- <p><span class="text-big"> Mind maps </span>- <br>Organize your thoughts visually or do a brainstorming session by using <a href="https://en.wikipedia.org/wiki/Mind_map">mind map diagrams</a>.- </p>- </div>- </div>- <p> and others: note map, relation map, saved searches, render note, web views. </p>- </div>- </section>-<section class="collections"><div class="content-wrapper"><h2> Collections </h2>diff --git a/apps/website2/src/assets/collection_board.png b/apps/website3/src/assets/collection_board.pngsimilarity index 100%rename from apps/website2/src/assets/collection_board.pngrename to apps/website3/src/assets/collection_board.pngdiff --git a/apps/website2/src/assets/collection_calendar.png b/apps/website3/src/assets/collection_calendar.pngsimilarity index 100%rename from apps/website2/src/assets/collection_calendar.pngrename to apps/website3/src/assets/collection_calendar.pngdiff --git a/apps/website2/src/assets/collection_geomap.png b/apps/website3/src/assets/collection_geomap.pngsimilarity index 100%rename from apps/website2/src/assets/collection_geomap.pngrename to apps/website3/src/assets/collection_geomap.pngdiff --git a/apps/website2/src/assets/collection_table.png b/apps/website3/src/assets/collection_table.pngsimilarity index 100%rename from apps/website2/src/assets/collection_table.pngrename to apps/website3/src/assets/collection_table.pngdiff --git a/apps/website2/src/assets/icon-color.svg b/apps/website3/src/assets/icon-color.svgsimilarity index 100%rename from apps/website2/src/assets/icon-color.svgrename to apps/website3/src/assets/icon-color.svgdiff --git a/apps/website2/src/assets/screenshot_desktop_win.png b/apps/website3/src/assets/screenshot_desktop_win.pngsimilarity index 100%rename from apps/website2/src/assets/screenshot_desktop_win.pngrename to apps/website3/src/assets/screenshot_desktop_win.pngdiff --git a/apps/website2/src/assets/type_canvas.png b/apps/website3/src/assets/type_canvas.pngsimilarity index 100%rename from apps/website2/src/assets/type_canvas.pngrename to apps/website3/src/assets/type_canvas.pngdiff --git a/apps/website2/src/assets/type_code.png b/apps/website3/src/assets/type_code.pngsimilarity index 100%rename from apps/website2/src/assets/type_code.pngrename to apps/website3/src/assets/type_code.pngdiff --git a/apps/website2/src/assets/type_file.png b/apps/website3/src/assets/type_file.pngsimilarity index 100%rename from apps/website2/src/assets/type_file.pngrename to apps/website3/src/assets/type_file.pngdiff --git a/apps/website2/src/assets/type_mermaid.png b/apps/website3/src/assets/type_mermaid.pngsimilarity index 100%rename from apps/website2/src/assets/type_mermaid.pngrename to apps/website3/src/assets/type_mermaid.pngdiff --git a/apps/website2/src/assets/type_mindmap.png b/apps/website3/src/assets/type_mindmap.pngsimilarity index 100%rename from apps/website2/src/assets/type_mindmap.pngrename to apps/website3/src/assets/type_mindmap.pngdiff --git a/apps/website2/src/assets/type_text.png b/apps/website3/src/assets/type_text.pngsimilarity index 100%rename from apps/website2/src/assets/type_text.pngrename to apps/website3/src/assets/type_text.pngdiff --git a/apps/website3/src/components/Card.tsx b/apps/website3/src/components/Card.tsxindex ee09c0460c..e2c249cdf0 100644--- a/apps/website3/src/components/Card.tsx+++ b/apps/website3/src/components/Card.tsx@@ -2,12 +2,14 @@ import { ComponentChildren } from "preact";interface CardProps {title: string;+ imageUrl?: string;children: ComponentChildren;}-export default function Card({ title, children }: CardProps) {+export default function Card({ title, children, imageUrl }: CardProps) {return (<div className="card">+ {imageUrl && <img class="image" src={imageUrl} />}<p><span class="text-big">{title}</span><br />{children}diff --git a/apps/website3/src/pages/Home/index.tsx b/apps/website3/src/pages/Home/index.tsxindex a500b66773..54b6ec7e2d 100644--- a/apps/website3/src/pages/Home/index.tsx+++ b/apps/website3/src/pages/Home/index.tsx@@ -1,29 +1,42 @@import Card from '../../components/Card';import Section from '../../components/Section';-import './style.css';export function Home() {return (- <Section className="benefits" title="Benefits">- <div className="benefits-container">- <Card title="Note structure">Notes can be arranged hierarchically. There's no need for folders, since each note can contain sub-notes. A single note can be added in multiple places in the hierarchy.</Card>- <Card title="Labels and relationships between notes">Define <em> relations </em> between notes- or add <em> labels </em> for easy categorization. Using promoted attributes, there's an easy way to- enter structured information about the notes which can later be displayed in other formats such as a- table.</Card>- <Card title="Note revisions">Notes are periodically saved in the background and revisions can be used to check the old content of a note or delete accidental changes. Revisions can also be created on-demand.</Card>- <Card title="Quick search and commands">Jump quickly to notes across the hierarchy by searching for their title, with- fuzzy matching to account for typos or slight differences. Or search through all the various- commands of the application.</Card>- <Card title="Powerful search">Or search for text inside notes and narrow down the search by filtering by the parent note, or by depth.</Card>- <Card title="Protected notes">Protect sensitive personal information by encrypting the notes and locking them behind a password-protected session.</Card>- <Card title="Import/export">Easily import Markdown and ENEX formats from other note-taking applications, or export to Markdown or HTML.</Card>- <Card title="Workspaces and hoisting">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.</Card>- <Card title="Web clipper">Grab web pages (or screenshots) and place them directly into Trilium using the web clipper browser extension.</Card>- <Card title="Synchronization">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 (progressive web application).</Card>- <Card title="Share notes on the web">If you have a server instance, you can easily use it to share a subset of your notes with other people.</Card>- <Card title="Advanced scripting and REST API">Create your own integrations within Trilium by writing custom widgets, or custom-server side logic. Interact externally with the Trilium database by using the built-in REST API.</Card>- </div>- </Section>+ <>+ <Section className="benefits" title="Benefits">+ <div className="benefits-container">+ <Card title="Note structure">Notes can be arranged hierarchically. There's no need for folders, since each note can contain sub-notes. A single note can be added in multiple places in the hierarchy.</Card>+ <Card title="Labels and relationships between notes">Define <em> relations </em> between notes+ or add <em> labels </em> for easy categorization. Using promoted attributes, there's an easy way to+ enter structured information about the notes which can later be displayed in other formats such as a+ table.</Card>+ <Card title="Note revisions">Notes are periodically saved in the background and revisions can be used to check the old content of a note or delete accidental changes. Revisions can also be created on-demand.</Card>+ <Card title="Quick search and commands">Jump quickly to notes across the hierarchy by searching for their title, with+ fuzzy matching to account for typos or slight differences. Or search through all the various+ commands of the application.</Card>+ <Card title="Powerful search">Or search for text inside notes and narrow down the search by filtering by the parent note, or by depth.</Card>+ <Card title="Protected notes">Protect sensitive personal information by encrypting the notes and locking them behind a password-protected session.</Card>+ <Card title="Import/export">Easily import Markdown and ENEX formats from other note-taking applications, or export to Markdown or HTML.</Card>+ <Card title="Workspaces and hoisting">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.</Card>+ <Card title="Web clipper">Grab web pages (or screenshots) and place them directly into Trilium using the web clipper browser extension.</Card>+ <Card title="Synchronization">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 (progressive web application).</Card>+ <Card title="Share notes on the web">If you have a server instance, you can easily use it to share a subset of your notes with other people.</Card>+ <Card title="Advanced scripting and REST API">Create your own integrations within Trilium by writing custom widgets, or custom-server side logic. Interact externally with the Trilium database by using the built-in REST API.</Card>+ </div>+ </Section>++ <Section className="note-types" title="Note types">+ <div class="note-types-container">+ <Card title="Text notes" imageUrl="./src/assets/type_text.png">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.</Card>+ <Card title="Code notes" imageUrl="./src/assets/type_code.png">Large samples of source code or scripts use a dedicated editor, with syntax highlighting for many programming languages and with various color themes.</Card>+ <Card title="File notes" imageUrl="./src/assets/type_file.png">Embed multimedia files such as PDFs, images, videos with an in-application preview.</Card>+ <Card title="Canvas" imageUrl="./src/assets/type_canvas.png">Arrange shapes, images and text across an infinite canvas, using the same technology behind <a href="https://excalidraw.com">excalidraw.com</a>. Ideal for diagrams, sketches and visual planning.</Card>+ <Card title="Mermaid diagrams" imageUrl="./src/assets/type_mermaid.png">Create diagrams such as flowcharts, class & sequence diagrams, Gantt charts and many more, using the Mermaid syntax.</Card>+ <Card title="Mindmap" imageUrl="./src/assets/type_mindmap.png">Organize your thoughts visually or do a brainstorming session by using <a href="https://en.wikipedia.org/wiki/Mind_map">mind map diagrams</a>.</Card>+ </div>+ <p>and others: note map, relation map, saved searches, render note, web views.</p>+ </Section>+ </>);}diff --git a/apps/website3/src/pages/Home/style.css b/apps/website3/src/pages/Home/style.cssdeleted file mode 100644index f51cfc165c..0000000000--- a/apps/website3/src/pages/Home/style.css+++ /dev/null@@ -1,47 +0,0 @@-img {- margin-bottom: 1.5rem;-}--img:hover {- filter: drop-shadow(0 0 2em #673ab8aa);-}--.home section {- margin-top: 5rem;- display: grid;- grid-template-columns: repeat(3, 1fr);- column-gap: 1.5rem;-}--.resource {- padding: 0.75rem 1.5rem;- border-radius: 0.5rem;- text-align: left;- text-decoration: none;- color: #222;- background-color: #f1f1f1;- border: 1px solid transparent;-}--.resource:hover {- border: 1px solid #000;- box-shadow: 0 25px 50px -12px #673ab888;-}--@media (max-width: 639px) {- .home section {- margin-top: 5rem;- grid-template-columns: 1fr;- row-gap: 1rem;- }-}--@media (prefers-color-scheme: dark) {- .resource {- color: #ccc;- background-color: #161616;- }- .resource:hover {- border: 1px solid #bbb;- }-}diff --git a/apps/website3/src/style.css b/apps/website3/src/style.cssindex 4609bd361f..558ad1062c 100644--- a/apps/website3/src/style.css+++ b/apps/website3/src/style.css@@ -20,6 +20,10 @@ body {color: black;}+a {+ color: var(--brand-3);+}+/* #region Header */header {padding: 1em;