Skip to content

Commit c3d144d

Browse files
author
Jesse Winton
committed
performance try?
1 parent c31cc8e commit c3d144d

File tree

7 files changed

+28
-20
lines changed

7 files changed

+28
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"optimize": "node ./scripts/optimize-assets.js",
2525
"optimize:all": "node ./scripts/optimize-all.js"
2626
},
27-
"packageManager": "pnpm@10.9.0",
27+
"packageManager": "pnpm@10.11.1",
2828
"dependencies": {
2929
"h3": "^1.14.0",
3030
"posthog-js": "^1.210.2",

src/lib/components/ProductsSubmenu.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
import { trackEvent } from '$lib/actions/analytics';
7878
import { classNames } from '$lib/utils/classnames';
7979
import { createDropdownMenu, melt } from '@melt-ui/svelte';
80+
import Icon from './ui/icon';
8081
8182
const {
8283
elements: { trigger, menu, item, overlay },
@@ -171,9 +172,10 @@
171172
<a
172173
href="/blog/category/customer-stories"
173174
class="text-primary text-caption flex items-center gap-2"
174-
>See more <span
175-
class="web-icon-chevron-right transition-transform group-hover:translate-x-0.5"
176-
></span></a
175+
>Read more customer stories" <Icon
176+
name="chevron-right"
177+
class="transition-transform group-hover:translate-x-0.5"
178+
></Icon></a
177179
>
178180
</header>
179181

src/routes/(marketing)/(components)/case-studies.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
blurb: 'A special thanks to Appwrite for providing robust features and seamless functionality.',
1515
name: 'Hassan Ahmed',
1616
title: 'Engineer at DevKind',
17-
avatar: '/images/testimonials/hassan.jpeg',
17+
avatar: '/images/testimonials/hassan.png',
1818
url: '/blog/post/customer-stories-storealert'
1919
},
2020
{

src/routes/(marketing)/(components)/scale.svelte

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import NumberFlow from '@number-flow/svelte';
44
import { inView } from 'motion';
55
import { onDestroy, type Snippet } from 'svelte';
6+
import { browser } from '$app/environment';
67
78
const animationDuration = 3;
89
@@ -128,12 +129,15 @@
128129
{#each localStats as stat, i}
129130
<div class="h-full overflow-auto pl-6">
130131
<div class="relative">
131-
<NumberFlow
132-
class="text-description text-primary border-accent relative -left-px z-10 border-l pl-4 font-medium"
133-
value={stat.number}
134-
suffix={stat.suffix}
135-
/>
136-
<span class="text-body text-secondary block pl-4">{stat.description}</span>
132+
{#if browser}
133+
<NumberFlow
134+
class="text-description text-primary border-accent relative -left-px z-10 border-l pl-4 font-medium"
135+
value={stat.number}
136+
suffix={stat.suffix}
137+
/>
138+
139+
<span class="text-body text-secondary block pl-4">{stat.description}</span>
140+
{/if}
137141
</div>
138142
</div>
139143
{/each}
@@ -148,14 +152,16 @@
148152
class="absolute"
149153
style="bottom: calc(50px + {25 + (75 / 3) * (i / 2)}%)"
150154
>
151-
<NumberFlow
152-
class="text-description text-primary border-accent relative -left-px z-100 border-l pl-4 font-medium"
153-
value={stat.number}
154-
suffix={stat.suffix}
155-
/>
156-
<span class="text-body text-secondary block pl-4">
157-
{stat.description}
158-
</span>
155+
{#if browser}
156+
<NumberFlow
157+
class="text-description text-primary border-accent relative -left-px z-100 border-l pl-4 font-medium"
158+
value={stat.number}
159+
suffix={stat.suffix}
160+
/>
161+
<span class="text-body text-secondary block pl-4">
162+
{stat.description}
163+
</span>
164+
{/if}
159165
</div>
160166
</div>
161167
{/each}

src/routes/(marketing)/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<CaseStudies />
3636
<Features />
3737
<div class="light bg-[#EDEDF0]">
38-
<Map theme="light" />
38+
<!-- <Map theme="light" /> -->
3939
<Scale
4040
testimonial={{
4141
name: 'Ryan O’Conner',
-61.6 KB
Binary file not shown.

static/images/testimonials/hassan.png

21.8 KB
Loading

0 commit comments

Comments
 (0)