Formatting and some build fixes

This commit is contained in:
Lewin Kelly 2024-04-16 13:37:27 +01:00
parent b8b4ab51b9
commit f94af09094
8 changed files with 1726 additions and 1476 deletions

View File

@ -23,7 +23,7 @@
"marked": "^12.0.1", "marked": "^12.0.1",
"mdsvex": "^0.11.0", "mdsvex": "^0.11.0",
"stylus": "^0.63.0", "stylus": "^0.63.0",
"svelte": "^4.2.14", "svelte": "5.0.0-next.105",
"svelte-check": "^3.6.9", "svelte-check": "^3.6.9",
"svelte-preprocess": "^5.1.3", "svelte-preprocess": "^5.1.3",
"sveltekit-autoimport": "^1.8.0", "sveltekit-autoimport": "^1.8.0",

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,12 @@
<div <div
class="bg-#1f1d1c @light:bg-white lg:w-90 lg:h-a lg:pt-42 class="bg-#1f1d1c @light:bg-white lg:w-90 lg:h-a lg:pt-42 z-1 fixed flex w-full flex-wrap pb-3 ps-6 lg:static lg:flex-col">
z-1 fixed flex w-full flex-wrap pb-3 ps-6 lg:static lg:flex-col">
<span class="me-12 mt-3 hidden sm:inline-block lg:me-0"> <span class="me-12 mt-3 hidden sm:inline-block lg:me-0">
<a href="/" class="txt lg:text-2.2rem font-600 text-2xl"> <a href="/" class="txt lg:text-2.2rem font-600 text-2xl">
Revival Archive Revival Archive
</a> </a>
</span> </span>
<nav <nav
class="mt-3 box-border flex class="mt-3 box-border flex flex-wrap justify-self-center lg:flex-col">
flex-wrap justify-self-center lg:flex-col">
<a href="/">Home</a> <a href="/">Home</a>
<a href="/about">About</a> <a href="/about">About</a>
<a href="/revivals">Revival Index</a> <a href="/revivals">Revival Index</a>

View File

@ -18,9 +18,7 @@
<a <a
in:fade|global={{ num, total: posts.length }} in:fade|global={{ num, total: posts.length }}
href="/post/{post.path}" href="/post/{post.path}"
class="txt @light:text-dark hover:text-#ccc class="txt @light:text-dark hover:text-#ccc @light:hover:text-#555 bg-a rounded-3 box-border block text-white transition hover:shadow-xl">
@light:hover:text-#555 bg-a rounded-3 box-border
block text-white transition hover:shadow-xl">
<article class="mb-4 px-6 py-3"> <article class="mb-4 px-6 py-3">
<h2 class="mb-2 mt-1">{post.title}</h2> <h2 class="mb-2 mt-1">{post.title}</h2>
<p class="my-2"> <p class="my-2">

View File

@ -45,9 +45,7 @@
{#each data.posts as post} {#each data.posts as post}
<a <a
href="/post/{post.path}" href="/post/{post.path}"
class="txt bg-a @light:text-dark hover:text-#ccc class="txt bg-a @light:text-dark hover:text-#ccc @light:hover:text-#555 rounded-3 box-border block text-white transition hover:shadow-xl">
@light:hover:text-#555 rounded-3 box-border
block text-white transition hover:shadow-xl">
<article class="mb-4 px-6 py-3"> <article class="mb-4 px-6 py-3">
<h3 class="my-2">{post.title}</h3> <h3 class="my-2">{post.title}</h3>
<small class="pb-5"> <small class="pb-5">

View File

@ -21,9 +21,7 @@
<a <a
in:fade|global={{ num, total: reviews.length }} in:fade|global={{ num, total: reviews.length }}
href="/revival/{review.path}" href="/revival/{review.path}"
class="txt @light:text-dark hover:text-#ccc class="txt @light:text-dark hover:text-#ccc @light:hover:text-#555 bg-a rounded-3 box-border block text-white transition hover:shadow-xl">
@light:hover:text-#555 bg-a rounded-3 box-border
block text-white transition hover:shadow-xl">
<article class:opacity-50={review.defunct} class="mb-4 flex p-3 ps-5"> <article class:opacity-50={review.defunct} class="mb-4 flex p-3 ps-5">
{#if review.logo} {#if review.logo}
<img <img

View File

@ -54,22 +54,29 @@
<h1>Rating</h1> <h1>Rating</h1>
<table> <table>
{#each Object.keys(ratingCategories) as category} <tbody>
<tr> {#each Object.keys(ratingCategories) as category}
<td <tr>
class:pt-4={category == "overall"} <td
class="pe-6"> class:pt-4={category ==
{category.charAt(0).toUpperCase() + "overall"}
category.slice(1)} class="pe-6">
</td> {category
<td class:pt-4={category == "overall"}> .charAt(0)
<Stars .toUpperCase() +
rating={ratingCategories[ category.slice(1)}
category </td>
]} /> <td
</td> class:pt-4={category ==
</tr> "overall"}>
{/each} <Stars
rating={ratingCategories[
category
]} />
</td>
</tr>
{/each}
</tbody>
</table> </table>
</div> </div>
</div> </div>
@ -89,9 +96,7 @@
{#each data.revivals as revival} {#each data.revivals as revival}
<a <a
href="/revival/{revival.path}" href="/revival/{revival.path}"
class="txt bg-a @light:text-dark hover:text-#ccc class="txt bg-a @light:text-dark hover:text-#ccc @light:hover:text-#555 rounded-3 box-border block text-white transition hover:shadow-xl">
@light:hover:text-#555 rounded-3 box-border
block text-white transition hover:shadow-xl">
<article <article
class:opacity-50={revival.defunct} class:opacity-50={revival.defunct}
class="mb-4 flex p-3 ps-5"> class="mb-4 flex p-3 ps-5">

View File

@ -13,7 +13,7 @@
2017: "bg-indigo-600", 2017: "bg-indigo-600",
2018: "bg-violet-400 text-black", 2018: "bg-violet-400 text-black",
2019: "bg-purple-600", 2019: "bg-purple-600",
2020: "bg-slate-600", 2020: "bg-slate-600"
} }
export let data export let data
@ -38,9 +38,7 @@
{#each revivals as revival, num} {#each revivals as revival, num}
<div <div
in:fade|global={{ num, total: revivals.length }} in:fade|global={{ num, total: revivals.length }}
class="txt bg-#1f1c1d @light:bg-white rounded-2 class="txt bg-#1f1c1d @light:bg-white rounded-2 @light:text-black card box-border flex flex-col p-5 text-white transition hover:shadow-xl">
@light:text-black card box-border flex flex-col p-5 text-white
transition hover:shadow-xl">
<div class:opacity-50={revival.defunct} class="flex"> <div class:opacity-50={revival.defunct} class="flex">
<div> <div>
<div class="flex flex-wrap"> <div class="flex flex-wrap">
@ -69,8 +67,9 @@
<div class="flex flex-wrap text-white"> <div class="flex flex-wrap text-white">
{#each revival.clients || [] as year} {#each revival.clients || [] as year}
<span <span
class="{years[year]} class="{years[
my-1 me-2 rounded-full px-2 py-0.5 text-sm"> year
]} my-1 me-2 rounded-full px-2 py-0.5 text-sm">
{year} {year}
</span> </span>
{/each} {/each}