chore(website/resources): add descriptions to fonts

This commit is contained in:
Elian Doran
2026-02-07 11:18:05 +02:00
parent fe1509dcfc
commit 109cb6cc3f
11 changed files with 37 additions and 8 deletions

View File

@@ -13,5 +13,6 @@ export interface IconPackData {
meta: {
version: string;
website: string;
description: string;
}
}

View File

@@ -40,7 +40,10 @@ export default function buildIcons(pack: "basic" | "brands"): IconPackData {
},
meta: {
version: "3.0.0",
website: "https://boxicons.com/"
website: "https://boxicons.com/",
description: pack === "basic"
? "The Basic set of icons from Boxicons v3. This is an upgrade from Trilium's built-in icon pack (Boxicons v2)."
: "The brand set of icons from Boxicons v3."
}
};
}

View File

@@ -25,7 +25,8 @@ export default function buildIcons(): IconPackData {
},
meta: {
version: packageJson.version,
website: "https://pictogrammers.com/library/mdi/"
website: "https://pictogrammers.com/library/mdi/",
description: "The community Material Design Icons pack (@mdi/font). Not to be confused with Google's own Material Design Icons."
}
};
}

View File

@@ -46,7 +46,10 @@ export default function buildIcons(packName: "regular" | "fill"): IconPackData {
},
meta: {
version: packageJson.version,
website: "https://phosphoricons.com/"
website: "https://phosphoricons.com/",
description: packName === "regular"
? "The regular weight version of Phosphor Icons."
: "The filled version of Phosphor Icons."
}
};
}

View File

@@ -2,5 +2,6 @@
"name": "Boxicons 3 (Basic)",
"file": "Boxicons 3 (Basic).zip",
"version": "3.0.0",
"website": "https://boxicons.com/"
"website": "https://boxicons.com/",
"description": "The Basic set of icons from Boxicons v3. This is an upgrade from Trilium's built-in icon pack (Boxicons v2)."
}

View File

@@ -2,5 +2,6 @@
"name": "Boxicons 3 (Brands)",
"file": "Boxicons 3 (Brands).zip",
"version": "3.0.0",
"website": "https://boxicons.com/"
"website": "https://boxicons.com/",
"description": "The brand set of icons from Boxicons v3."
}

View File

@@ -2,5 +2,6 @@
"name": "Material Design Icons",
"file": "Material Design Icons.zip",
"version": "7.4.47",
"website": "https://pictogrammers.com/library/mdi/"
"website": "https://pictogrammers.com/library/mdi/",
"description": "The community Material Design Icons pack (@mdi/font). Not to be confused with Google's own Material Design Icons."
}

View File

@@ -2,5 +2,6 @@
"name": "Phosphor Icons (Fill)",
"file": "Phosphor Icons (Fill).zip",
"version": "2.1.2",
"website": "https://phosphoricons.com/"
"website": "https://phosphoricons.com/",
"description": "The filled version of Phosphor Icons."
}

View File

@@ -2,5 +2,6 @@
"name": "Phosphor Icons (Regular)",
"file": "Phosphor Icons (Regular).zip",
"version": "2.1.2",
"website": "https://phosphoricons.com/"
"website": "https://phosphoricons.com/",
"description": "The regular weight version of Phosphor Icons."
}

View File

@@ -1,9 +1,24 @@
.icon-packs .card-content {
.card-content-inner {
display: flex;
flex-direction: column;
flex-grow: 1;
}
.description {
font-size: 0.8em;
margin: 0;
flex-grow: 1;
height: 100%;
}
footer {
padding: 0;
border: 0;
display: flex;
align-items: center;
margin-top: 1em;
justify-content: space-between;
flex-grow: 1;
}
}

View File

@@ -34,6 +34,7 @@ export default function Resources() {
key={meta.name}
title={<>{meta.name} <small>{meta.version}</small></>}
>
<p className="description">{meta.description}</p>
<footer>
<Button href={`/resources/icon-packs/${meta.file}`} download text="Download" />
<Link href={meta.website} openExternally>Website</Link>