diff --git a/src/_components/grid-item.vto b/src/_components/grid-item.vto new file mode 100644 index 00000000..e7ed2445 --- /dev/null +++ b/src/_components/grid-item.vto @@ -0,0 +1,75 @@ +{{ set color = (() => { + switch (item.kind) { + case "prelude": return "var(--accent-twist-4)"; + default: return "var(--accent-twist-2)"; + } +})() }} + +{{ set kind = (() => { + // return item.kind ?? "interactive" + switch (item.kind) { + case "prelude": return "feature"; + default: return "interface"; + } +})() }} + +{{ set facetUri = item.url |> facetURI }} + +
  • +
    +
    + {{ if item.kind === "prelude" }} + + {{item.title}} + + {{ else }} + + {{item.title}} + + {{ /if }} + +
    +
    + {{ item.desc |> md(true) }} +
    + {{ if item.author }} +
    + {{ item.author |> md(true) }} +
    + {{ /if }} +
    +
    + +
    + + +
    +
  • diff --git a/src/_components/grid.vto b/src/_components/grid.vto index 9f455c0a..2d3cfd3a 100644 --- a/src/_components/grid.vto +++ b/src/_components/grid.vto @@ -1,3 +1,6 @@ +{{ set completeItems = items.filter((i) => !i.incomplete) }} +{{ set incompleteItems = items.filter((i) => i.incomplete) }} +
    Filter by @@ -14,81 +17,22 @@
    - {{ set kind = (() => { - // return item.kind ?? "interactive" - switch (item.kind) { - case "prelude": return "feature"; - default: return "interface"; - } - })() }} +{{ if incompleteItems.length > 0 }} +
    - {{ set facetUri = item.url |> facetURI }} +

    + + +

    -
  • -
    -
    - {{ if item.kind === "prelude" }} - - {{item.title}} - - {{ else }} - - {{item.title}} - - {{ /if }} - -
    -
    - {{ item.desc |> md(true) }} -
    - {{ if item.author }} -
    - {{ item.author |> md(true) }} -
    - {{ /if }} -
    -
    - -
    - - -
    -
  • - {{ /for }} - + +{{ /if }} diff --git a/src/_data/facets.json b/src/_data/facets.json index 33bed053..c1bd648f 100644 --- a/src/_data/facets.json +++ b/src/_data/facets.json @@ -249,6 +249,27 @@ "category": "Miscellaneous", "desc": "Arrange multiple facets side-by-side in a resizable split-panel layout." }, + { + "url": "facets/themes/tidal/facet/index.html", + "title": "Tidal", + "category": "Themes", + "incomplete": true, + "desc": "A Tidal-inspired browser. Pick a playlist from the sidebar, browse albums and artists, and play tracks." + }, + { + "url": "facets/themes/tidal/browser/facet/index.html", + "title": "Tidal / Browser", + "category": "Browsing", + "incomplete": true, + "desc": "Tidal-style collection browser and search with a playlist sidebar and album / artist grids." + }, + { + "url": "facets/themes/tidal/player/facet/index.html", + "title": "Tidal / Player", + "category": "Playback", + "incomplete": true, + "desc": "Tidal-style now-playing bar with playback controls, progress and volume." + }, { "url": "facets/data/v3-import/index.html", "title": "V3.x Import", @@ -268,26 +289,5 @@ "title": "Winamp / Browser", "category": "Browsing", "desc": "Collection browser and search." - }, - { - "url": "facets/themes/tidal/facet/index.html", - "title": "Tidal", - "category": "Themes", - "incomplete": true, - "desc": "🚧 A Tidal-inspired browser. Pick a playlist from the sidebar, browse albums and artists, and play tracks." - }, - { - "url": "facets/themes/tidal/browser/facet/index.html", - "title": "Tidal / Browser", - "category": "Browsing", - "incomplete": true, - "desc": "🚧 Tidal-style collection browser and search with a playlist sidebar and album / artist grids." - }, - { - "url": "facets/themes/tidal/player/facet/index.html", - "title": "Tidal / Player", - "category": "Playback", - "incomplete": true, - "desc": "🚧 Tidal-style now-playing bar with playback controls, progress and volume." } ]