diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 31a05fe..228aabc 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -30,7 +30,7 @@ bottom: 0; left: 0; z-index: 3; - border-top: 1px solid var(--color-text); + // border-top: 1px solid var(--color-text); } } \ No newline at end of file diff --git a/src/lib/components/Loader.svelte b/src/lib/components/Loader.svelte new file mode 100644 index 0000000..1390b12 --- /dev/null +++ b/src/lib/components/Loader.svelte @@ -0,0 +1,68 @@ +
+
+

Loading...

+
+ + \ No newline at end of file diff --git a/src/lib/components/MainNav.svelte b/src/lib/components/MainNav.svelte index 2cf7e30..89b0d21 100644 --- a/src/lib/components/MainNav.svelte +++ b/src/lib/components/MainNav.svelte @@ -79,7 +79,6 @@ } .close { top: 0.033em; - color: #FFF; } #menustate, #nav, .close { /* Hide the checkbox, menu and close button by default */ diff --git a/src/lib/components/WorkCanvas.svelte b/src/lib/components/WorkCanvas.svelte index 367b3e3..bc4c7f1 100644 --- a/src/lib/components/WorkCanvas.svelte +++ b/src/lib/components/WorkCanvas.svelte @@ -29,7 +29,8 @@ onMount(()=>{ antialias: true, autoDensity: true, resolution: 2, - backgroundAlpha: 0, + backgroundAlpha: 1, + backgroundColor: 0x223ad4, view: canvas, }); @@ -112,7 +113,6 @@ onMount(()=>{ imgsToCanvas.forEach((element) => { imgElems.push(element); let canvasImg = createCanvasImg(element as HTMLImageElement, app.stage); - // canvasImg.tint = 0xff9494; canvasImgs.push(canvasImg); }) } diff --git a/src/lib/styles/global.scss b/src/lib/styles/global.scss index 51ef663..f98beac 100644 --- a/src/lib/styles/global.scss +++ b/src/lib/styles/global.scss @@ -3,8 +3,10 @@ --spacing-nav: 5vw; // --color-bg: #FFF; // --color-text: #000; - --color-bg: #00117f; - --color-text: #FF9494; + // --color-bg: #00117f; + --color-bg: #223ad4; + // --color-text: #FF9494; + --color-text: #FFF; --aspect-ratio-heroes: 1.5; --font-size-p: clamp(20px, 1.6vw, 1.6vw); diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 40b9edd..5b27d80 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,6 +1,7 @@ {#if !mounted} -
-
-

Loading...

-
+ {/if}
@@ -71,16 +69,7 @@

As a Creative Web Developer ...

-
-
-

I specialise in delivering beautifully crafted bespoke websites.

- -
-
+

I specialise in delivering beautifully crafted bespoke websites.

Learn More Hire Simon @@ -88,14 +77,7 @@

As a UX & Graphic Designer...

-
- -
-

I have designed Websites, Housestyles, Typefaces, Advertising campaigns and Print publications for them.

-
-
+

I have designed Websites, Housestyles, Typefaces, Advertising campaigns and Print publications for them.

Learn More Hire Simon @@ -110,45 +92,6 @@
' +--- +Peak is an early-stage investment fund backed by entrepreneurs in Europe. \ No newline at end of file diff --git a/src/routes/work/md/uncommon.md b/src/routes/work/md/uncommon.md new file mode 100644 index 0000000..f095742 --- /dev/null +++ b/src/routes/work/md/uncommon.md @@ -0,0 +1,9 @@ +--- +title: Uncommonbio.co +header_bg_image: uncommon_hero_jf1in9 +order: 12 +description: Peak Capital description +svg: '' +--- +Uncommon's mission is to sell rashers and rashers of cultivated pork at price parity. +For happy pigs and piggy banks. \ No newline at end of file diff --git a/src/routes/work/work.scss b/src/routes/work/work.scss index 12c04bf..a50aae6 100644 --- a/src/routes/work/work.scss +++ b/src/routes/work/work.scss @@ -5,13 +5,14 @@ h1 { letter-spacing: -0.04em; text-align: center; position: fixed; - top: 0; + top: calc(50svh - 16vw); width: 100%; visibility: hidden; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); @media screen and (min-width: 768px) { font-size: 7vw; + top: calc(50svh - 3.5vw); } & span { @@ -44,7 +45,7 @@ h2 { } } .works { - padding: 15vw 0.5em 0.5em 0.5em; + padding: 0.5em; display: flex; gap: 0.25em; flex-wrap: wrap; diff --git a/src/routes/work/workUtils.ts b/src/routes/work/workUtils.ts index 2a44d57..6040527 100644 --- a/src/routes/work/workUtils.ts +++ b/src/routes/work/workUtils.ts @@ -19,19 +19,19 @@ export function initWorkPage( h1: HTMLElement, canvasImgElems: Array { - gsap.set(span, { opacity: 0, y: window.innerHeight }) - gsap.to(span, { opacity: 1, y: 0, duration: 1, ease: 'power3.out' }) + spans.forEach((span, index) => { + gsap.set(span, { opacity: 1, y: -window.innerHeight/1.5 }) + gsap.to(span, { opacity: 1, y: 0, duration: 1, ease: 'power3.out', delay: index * 0.025 }) gsap.to(span, { xPercent: -100, duration: 4, ease: 'none', repeat: -1 }) }); gsap.set(canvasImgElems, { - opacity: 0, yPercent: 100 + opacity: 0, yPercent: 50 }) gsap.to(canvasImgElems, { duration: 1, - opacity: 1, + opacity: .8, yPercent: 0, stagger: 0.05, ease: 'elastic.out(0.75, 0.5)', diff --git a/static/work/peak/peak_hero.png b/static/work/peak/peak_hero.png new file mode 100644 index 0000000..c4ce4d7 Binary files /dev/null and b/static/work/peak/peak_hero.png differ