From 64ea1f4590df25796cb2dad11908f993f5b3a34b Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Sun, 9 Apr 2023 21:12:23 -0700 Subject: [PATCH] Add NProgress and add max min widths to uses. --- package.json | 4 +++- pnpm-lock.yaml | 14 ++++++++++++++ src/lib/util/fetchBandcampAlbums.ts | 1 - src/routes/+layout.svelte | 25 +++++++++++++++++++++++++ src/routes/about/+page.svelte | 15 --------------- src/routes/portfolio/+page.svelte | 23 ++++++----------------- src/routes/uses/+page.svelte | 2 +- 7 files changed, 49 insertions(+), 35 deletions(-) diff --git a/package.json b/package.json index 7a15d4e..b200df5 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,8 @@ }, "type": "module", "dependencies": { - "ioredis": "^5.3.1" + "@types/nprogress": "^0.2.0", + "ioredis": "^5.3.1", + "nprogress": "^0.2.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0b12b37..8ffc2a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,9 +1,15 @@ lockfileVersion: '6.0' dependencies: + '@types/nprogress': + specifier: ^0.2.0 + version: 0.2.0 ioredis: specifier: ^5.3.1 version: 5.3.1 + nprogress: + specifier: ^0.2.0 + version: 0.2.0 devDependencies: '@iconify-icons/material-symbols': @@ -1218,6 +1224,10 @@ packages: resolution: {integrity: sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==} dev: true + /@types/nprogress@0.2.0: + resolution: {integrity: sha512-1cYJrqq9GezNFPsWTZpFut/d4CjpZqA0vhqDUPFWYKF1oIyBz5qnoYMzR+0C/T96t3ebLAC1SSnwrVOm5/j74A==} + dev: false + /@types/postcss-preset-env@8.0.0(postcss@8.4.21): resolution: {integrity: sha512-Mjw3bkhK1SkPg9HgBxUic1hSzpF5p3fSslgZrSg8fPC9mkjoz6ghhVqr9a+kVVDSvE7Lrw6GY/D+yLxmJ4IDAg==} deprecated: This is a stub types definition. postcss-preset-env provides its own type definitions, so you do not need this installed. @@ -3182,6 +3192,10 @@ packages: set-blocking: 2.0.0 dev: true + /nprogress@0.2.0: + resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==} + dev: false + /nth-check@1.0.2: resolution: {integrity: sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==} dependencies: diff --git a/src/lib/util/fetchBandcampAlbums.ts b/src/lib/util/fetchBandcampAlbums.ts index 351757c..2d9d1de 100644 --- a/src/lib/util/fetchBandcampAlbums.ts +++ b/src/lib/util/fetchBandcampAlbums.ts @@ -44,7 +44,6 @@ export async function fetchBandcampAlbums() { ); const albums: Album[] = data?.collectionItems || []; - // console.log(`Albums ${JSON.stringify(albums)}`); if (albums && albums?.length > 0) { if (USE_REDIS_CACHE) { diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 0929c1e..6ee99ac 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,4 +1,7 @@ {#if !dev} @@ -87,6 +103,15 @@ } } + :global(#nprogress .bar) { + background: var(--lightGrey); + } + + :global(#nprogress .spinner-icon) { + border-top-color: var(--lightGrey); + border-left-color: var(--lightGrey); + } + :global(p) { word-wrap: normal; font-size: var(--bodyTextSize); diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index dfa8c69..5e0ec2a 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -267,11 +267,6 @@ >
Clip art of the Seattle space needle -

Seattle Space Needle

@@ -281,20 +276,10 @@
Turnip Cat -

Turnip

Taco Cat -

Taco 🌮

diff --git a/src/routes/portfolio/+page.svelte b/src/routes/portfolio/+page.svelte index 87b7675..ec0d156 100644 --- a/src/routes/portfolio/+page.svelte +++ b/src/routes/portfolio/+page.svelte @@ -72,14 +72,12 @@ - - - - - + + + @@ -98,15 +96,6 @@ border-radius: 3px; } - :global(.portfolioStyles) { - margin: 0.5rem auto; - - @media (max-width: 800px) { - grid-gap: 1.2rem; - margin: 0.2rem 0; - } - } - :global(.tab-unselected) { h2 { border-bottom: 2px solid var(--white); diff --git a/src/routes/uses/+page.svelte b/src/routes/uses/+page.svelte index 031dd70..017b661 100644 --- a/src/routes/uses/+page.svelte +++ b/src/routes/uses/+page.svelte @@ -41,7 +41,7 @@
- Clean desk with Samsung monitor and Ducky Keyboard + Clean desk with Samsung monitor and Ducky Keyboard

Hardware & Accessories