chore(website): port note types

This commit is contained in:
Elian Doran 2025-09-26 23:16:06 +03:00
parent 32c15f5e03
commit b4a2a6c12b
No known key found for this signature in database
17 changed files with 42 additions and 119 deletions

View File

@ -34,55 +34,6 @@
</div> </div>
</section> </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 &amp; 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"> <section class="collections">
<div class="content-wrapper"> <div class="content-wrapper">
<h2> Collections </h2> <h2> Collections </h2>

View File

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 130 KiB

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

Before

Width:  |  Height:  |  Size: 229 KiB

After

Width:  |  Height:  |  Size: 229 KiB

View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

Before

Width:  |  Height:  |  Size: 253 KiB

After

Width:  |  Height:  |  Size: 253 KiB

View File

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

View File

Before

Width:  |  Height:  |  Size: 375 KiB

After

Width:  |  Height:  |  Size: 375 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

@ -2,12 +2,14 @@ import { ComponentChildren } from "preact";
interface CardProps { interface CardProps {
title: string; title: string;
imageUrl?: string;
children: ComponentChildren; children: ComponentChildren;
} }
export default function Card({ title, children }: CardProps) { export default function Card({ title, children, imageUrl }: CardProps) {
return ( return (
<div className="card"> <div className="card">
{imageUrl && <img class="image" src={imageUrl} />}
<p> <p>
<span class="text-big">{title}</span><br /> <span class="text-big">{title}</span><br />
{children} {children}

View File

@ -1,29 +1,42 @@
import Card from '../../components/Card'; import Card from '../../components/Card';
import Section from '../../components/Section'; import Section from '../../components/Section';
import './style.css';
export function Home() { export function Home() {
return ( return (
<Section className="benefits" title="Benefits"> <>
<div className="benefits-container"> <Section className="benefits" title="Benefits">
<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> <div className="benefits-container">
<Card title="Labels and relationships between notes">Define <em> relations </em> between notes <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>
or add <em> labels </em> for easy categorization. Using promoted attributes, there's an easy way to <Card title="Labels and relationships between notes">Define <em> relations </em> between notes
enter structured information about the notes which can later be displayed in other formats such as a or add <em> labels </em> for easy categorization. Using promoted attributes, there's an easy way to
table.</Card> enter structured information about the notes which can later be displayed in other formats such as a
<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> table.</Card>
<Card title="Quick search and commands">Jump quickly to notes across the hierarchy by searching for their title, with <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>
fuzzy matching to account for typos or slight differences. Or search through all the various <Card title="Quick search and commands">Jump quickly to notes across the hierarchy by searching for their title, with
commands of the application.</Card> fuzzy matching to account for typos or slight differences. Or search through all the various
<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> commands of the application.</Card>
<Card title="Protected notes">Protect sensitive personal information by encrypting the notes and locking them behind a password-protected session.</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="Import/export">Easily import Markdown and ENEX formats from other note-taking applications, or export to Markdown or HTML.</Card> <Card title="Protected notes">Protect sensitive personal information by encrypting the notes and locking them behind a password-protected session.</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="Import/export">Easily import Markdown and ENEX formats from other note-taking applications, or export to Markdown or HTML.</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="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="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="Web clipper">Grab web pages (or screenshots) and place them directly into Trilium using the web clipper browser extension.</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="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="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> <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>
</div> <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>
</Section> </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 &amp; 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>
</>
); );
} }

View File

@ -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;
}
}

View File

@ -20,6 +20,10 @@ body {
color: black; color: black;
} }
a {
color: var(--brand-3);
}
/* #region Header */ /* #region Header */
header { header {
padding: 1em; padding: 1em;