From 04852fe6dde9fcfdd801d7b10ecb0b742792e311 Mon Sep 17 00:00:00 2001 From: kiosion Date: Fri, 3 Nov 2023 17:08:10 -0400 Subject: [PATCH] feat: Update styles --- .../src/components/about/timeline-item.svelte | 52 +++++++++ .../components/about/timeline-section.svelte | 67 ++++++++++++ .../src/components/about/timeline.svelte | 100 +++--------------- svelte-app/src/components/bullet-point.svelte | 17 ++- .../controls/language-toggle.svelte | 2 +- .../components/controls/menu-toggle.svelte | 6 +- .../components/controls/theme-toggle.svelte | 2 +- svelte-app/src/components/divider.svelte | 2 +- .../document/content/common/footer.svelte | 5 +- .../document/content/common/header.svelte | 63 ++++------- .../document/content/common/sidebar.svelte | 49 --------- .../document/content/common/summary.svelte | 67 ------------ .../src/components/document/route.svelte | 7 +- .../components/layouts/content-wrapper.svelte | 32 +----- .../components/layouts/page-transition.svelte | 47 ++------ .../layouts/scroll-container.svelte | 52 ++------- svelte-app/src/components/nav.svelte | 49 ++++----- svelte-app/src/components/nav/nav-link.svelte | 40 +------ .../components/portable-text/footnote.svelte | 33 +++--- .../portable-text/portable-text.svelte | 43 ++++---- .../serializers/custom-heading.svelte | 50 --------- svelte-app/src/languages/en.json | 1 + svelte-app/src/languages/fr.json | 1 + svelte-app/src/lib/helpers/navigation.ts | 2 +- svelte-app/src/lib/icons.ts | 10 +- svelte-app/src/lib/summary.ts | 69 ------------ svelte-app/src/routes/+layout.svelte | 50 ++------- .../src/routes/[[lang=lang]]/+page.svelte | 6 +- .../routes/[[lang=lang]]/blog/+page.svelte | 60 +++++------ .../routes/[[lang=lang]]/work/+page.svelte | 82 +++++++------- svelte-app/src/styles/_colors.scss | 4 +- svelte-app/tailwind.config.cjs | 4 +- 32 files changed, 362 insertions(+), 712 deletions(-) create mode 100644 svelte-app/src/components/about/timeline-item.svelte create mode 100644 svelte-app/src/components/about/timeline-section.svelte delete mode 100644 svelte-app/src/components/document/content/common/sidebar.svelte delete mode 100644 svelte-app/src/components/document/content/common/summary.svelte delete mode 100644 svelte-app/src/lib/summary.ts diff --git a/svelte-app/src/components/about/timeline-item.svelte b/svelte-app/src/components/about/timeline-item.svelte new file mode 100644 index 000000000..0c3363bb7 --- /dev/null +++ b/svelte-app/src/components/about/timeline-item.svelte @@ -0,0 +1,52 @@ + + +
+
+ + + +

{title}

+

{date}

+
+
+ + {#if body} +
+ +
+ {/if} +
+ + diff --git a/svelte-app/src/components/about/timeline-section.svelte b/svelte-app/src/components/about/timeline-section.svelte new file mode 100644 index 000000000..e32caddc7 --- /dev/null +++ b/svelte-app/src/components/about/timeline-section.svelte @@ -0,0 +1,67 @@ + + +
+

{title}

+ +
+ {#each section as item} + + {/each} +
+
+ + diff --git a/svelte-app/src/components/about/timeline.svelte b/svelte-app/src/components/about/timeline.svelte index b596ddac9..176b3aed5 100644 --- a/svelte-app/src/components/about/timeline.svelte +++ b/svelte-app/src/components/about/timeline.svelte @@ -1,23 +1,14 @@ -
- {#each data as item, i} - - -
{ - if (item.body) { - selected = selected === i ? null : i; - } - }} - on:keydown={(e) => { - if (item.body && (e.code === 'Enter' || e.code === 'Space')) { - selected = selected === i ? null : i; - } - }} - aria-expanded={selected === i} - tabindex={0} - role="button" - > -
- -
-

- {dateDisplay(item.range.start, item.range.end)} -

-
-

- {item.title} -

- {#if item.subtitle} - -

{item.subtitle}

- {/if} -
-
-
- {#if selected === i && item.body} -
-
- -
-
- {/if} -
-
-
- {/each} -
+{#each Object.keys(sections) as section} + +{/each} diff --git a/svelte-app/src/components/bullet-point.svelte b/svelte-app/src/components/bullet-point.svelte index e2f1c4d7e..dcb8a1c36 100644 --- a/svelte-app/src/components/bullet-point.svelte +++ b/svelte-app/src/components/bullet-point.svelte @@ -1,4 +1,13 @@ -
+
+ + diff --git a/svelte-app/src/components/controls/language-toggle.svelte b/svelte-app/src/components/controls/language-toggle.svelte index 73ba7931e..32989da8d 100644 --- a/svelte-app/src/components/controls/language-toggle.svelte +++ b/svelte-app/src/components/controls/language-toggle.svelte @@ -34,7 +34,7 @@ fixed > diff --git a/svelte-app/src/components/controls/theme-toggle.svelte b/svelte-app/src/components/controls/theme-toggle.svelte index 77891e616..fffaef855 100644 --- a/svelte-app/src/components/controls/theme-toggle.svelte +++ b/svelte-app/src/components/controls/theme-toggle.svelte @@ -15,7 +15,7 @@