From 6d3723cc11e0b1034ad7e4e9ae23aa8a9b2c7397 Mon Sep 17 00:00:00 2001 From: Dave Lane Date: Mon, 26 Aug 2024 17:00:21 +1200 Subject: [PATCH] WIP, added nav, about & attribution pages, and updated styles to ensure tags flow properly --- src/routes/+layout.svelte | 32 + src/routes/+page.svelte | 1236 +++++++++++++++------------ src/routes/about/+page.svelte | 1 + src/routes/attribution/+page.svelte | 1 + 4 files changed, 738 insertions(+), 532 deletions(-) create mode 100644 src/routes/about/+page.svelte create mode 100644 src/routes/attribution/+page.svelte diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 00b7b7e..db6445e 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -3,5 +3,37 @@ + + + + + + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index f346f86..096a56a 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,574 +1,746 @@
-

Web Services

+

Web Services

-
-
    -
  • Total number of services: {results.total_instances}
  • -
-
-
-
-
Categories: {#each category_list as category}{category} {/each}
- -
Licenses: {#each license_list as license}{license} {/each}
-
-
-
Statuses: {#each status_list as status}{status} {/each}
Affiliates: {#each affiliate_list as affiliate} {affiliate} {/each}
-
Hosts: {#each host_list as host} {host} {/each}
-
-
-
- {#each filtered_technologies as technology} -
- -

{technology.name}

- {#if (technology.license)}

License: {technology.license}

{/if} - {#if (technology.categories)}

{pluraliser('Category','Categories',technology.categories.length)}: {toOxfordCommaString(technology.categories)}

{/if} - {#if (technology.analogues)}

Alternative to {toOxfordCommaString(technology.analogues)}

{/if} -

{technology.description}

- {#if hasInstances(technology)} -

{#each technology.instances as instance} - {/each}

-
- {:else} -
- Nothing here yet... -
- {/if} -
- {/each} -
+
+

+ This sites exists to provide an 'always-up-to-date', in-depth description of the libre software web services I have set + up and maintain. +

+
+
+
    +
  • Total number of services: {results.total_instances}
  • +
+
+
+
+
+ Categories
{#each category_list as category}{category} xo{/each} +
+ +
+ Licenses
{#each license_list as license}{license} xo{/each} +
+
+
+
+ Statuses
{#each status_list as status}{status} xo{/each} +
+
+ Affiliates
{#each affiliate_list as affiliate} {affiliate} xo{/each} +
+
+ Hosts
{#each host_list as host} {host} xo{/each} +
+
+
+
+ {#each filtered_technologies as technology} +
+ +

{technology.name}

+ {#if technology.license}

+ License: {technology.license} +

{/if} + {#if technology.categories}

+ {pluraliser('Category', 'Categories', technology.categories.length)}: + {toOxfordCommaString(technology.categories)} +

{/if} + {#if technology.analogues}

+ Alternative to {toOxfordCommaString(technology.analogues)} +

{/if} +

+ {technology.description}{#if technology.extended_description}i{/if} +

+ {#if hasInstances(technology)} +
+

+ {#each technology.instances as instance} + {/each} +

+
+ {:else} +
Nothing here yet...
+ {/if} +
+ {/each} +
diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte new file mode 100644 index 0000000..d9bc6ec --- /dev/null +++ b/src/routes/about/+page.svelte @@ -0,0 +1 @@ +

About this site...

diff --git a/src/routes/attribution/+page.svelte b/src/routes/attribution/+page.svelte new file mode 100644 index 0000000..3e570ea --- /dev/null +++ b/src/routes/attribution/+page.svelte @@ -0,0 +1 @@ +

Attribution for included media