performance try?

This commit is contained in:
Jesse Winton
2025-06-04 12:15:12 -04:00
parent c31cc8e625
commit c3d144db16
7 changed files with 28 additions and 20 deletions

View File

@@ -24,7 +24,7 @@
"optimize": "node ./scripts/optimize-assets.js", "optimize": "node ./scripts/optimize-assets.js",
"optimize:all": "node ./scripts/optimize-all.js" "optimize:all": "node ./scripts/optimize-all.js"
}, },
"packageManager": "pnpm@10.9.0", "packageManager": "pnpm@10.11.1",
"dependencies": { "dependencies": {
"h3": "^1.14.0", "h3": "^1.14.0",
"posthog-js": "^1.210.2", "posthog-js": "^1.210.2",

View File

@@ -77,6 +77,7 @@
import { trackEvent } from '$lib/actions/analytics'; import { trackEvent } from '$lib/actions/analytics';
import { classNames } from '$lib/utils/classnames'; import { classNames } from '$lib/utils/classnames';
import { createDropdownMenu, melt } from '@melt-ui/svelte'; import { createDropdownMenu, melt } from '@melt-ui/svelte';
import Icon from './ui/icon';
const { const {
elements: { trigger, menu, item, overlay }, elements: { trigger, menu, item, overlay },
@@ -171,9 +172,10 @@
<a <a
href="/blog/category/customer-stories" href="/blog/category/customer-stories"
class="text-primary text-caption flex items-center gap-2" class="text-primary text-caption flex items-center gap-2"
>See more <span >Read more customer stories" <Icon
class="web-icon-chevron-right transition-transform group-hover:translate-x-0.5" name="chevron-right"
></span></a class="transition-transform group-hover:translate-x-0.5"
></Icon></a
> >
</header> </header>

View File

@@ -14,7 +14,7 @@
blurb: 'A special thanks to Appwrite for providing robust features and seamless functionality.', blurb: 'A special thanks to Appwrite for providing robust features and seamless functionality.',
name: 'Hassan Ahmed', name: 'Hassan Ahmed',
title: 'Engineer at DevKind', title: 'Engineer at DevKind',
avatar: '/images/testimonials/hassan.jpeg', avatar: '/images/testimonials/hassan.png',
url: '/blog/post/customer-stories-storealert' url: '/blog/post/customer-stories-storealert'
}, },
{ {

View File

@@ -3,6 +3,7 @@
import NumberFlow from '@number-flow/svelte'; import NumberFlow from '@number-flow/svelte';
import { inView } from 'motion'; import { inView } from 'motion';
import { onDestroy, type Snippet } from 'svelte'; import { onDestroy, type Snippet } from 'svelte';
import { browser } from '$app/environment';
const animationDuration = 3; const animationDuration = 3;
@@ -128,12 +129,15 @@
{#each localStats as stat, i} {#each localStats as stat, i}
<div class="h-full overflow-auto pl-6"> <div class="h-full overflow-auto pl-6">
<div class="relative"> <div class="relative">
<NumberFlow {#if browser}
class="text-description text-primary border-accent relative -left-px z-10 border-l pl-4 font-medium" <NumberFlow
value={stat.number} class="text-description text-primary border-accent relative -left-px z-10 border-l pl-4 font-medium"
suffix={stat.suffix} value={stat.number}
/> suffix={stat.suffix}
<span class="text-body text-secondary block pl-4">{stat.description}</span> />
<span class="text-body text-secondary block pl-4">{stat.description}</span>
{/if}
</div> </div>
</div> </div>
{/each} {/each}
@@ -148,14 +152,16 @@
class="absolute" class="absolute"
style="bottom: calc(50px + {25 + (75 / 3) * (i / 2)}%)" style="bottom: calc(50px + {25 + (75 / 3) * (i / 2)}%)"
> >
<NumberFlow {#if browser}
class="text-description text-primary border-accent relative -left-px z-100 border-l pl-4 font-medium" <NumberFlow
value={stat.number} class="text-description text-primary border-accent relative -left-px z-100 border-l pl-4 font-medium"
suffix={stat.suffix} value={stat.number}
/> suffix={stat.suffix}
<span class="text-body text-secondary block pl-4"> />
{stat.description} <span class="text-body text-secondary block pl-4">
</span> {stat.description}
</span>
{/if}
</div> </div>
</div> </div>
{/each} {/each}

View File

@@ -35,7 +35,7 @@
<CaseStudies /> <CaseStudies />
<Features /> <Features />
<div class="light bg-[#EDEDF0]"> <div class="light bg-[#EDEDF0]">
<Map theme="light" /> <!-- <Map theme="light" /> -->
<Scale <Scale
testimonial={{ testimonial={{
name: 'Ryan OConner', name: 'Ryan OConner',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB