Skip to content

Commit fb6fd67

Browse files
authored
Merge pull request #2976 from appwrite/fix/docs-cls-toc-multicode
Change pricing comp for changelog
2 parents f87f360 + 8e85ab7 commit fb6fd67

4 files changed

Lines changed: 26 additions & 24 deletions

File tree

src/lib/components/ProductsSubmenu.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
'text-accent': $open
9999
}
100100
)}
101+
aria-haspopup="menu"
101102
use:melt={$trigger}
102103
>
103104
{label}

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@
5353
5454
type PricingProps = {
5555
class?: string;
56+
/** Omits the animated wash; use on changelog and other tight layouts. */
57+
embedded?: boolean;
5658
};
5759
58-
const { class: className }: PricingProps = $props();
60+
const { class: className, embedded = false }: PricingProps = $props();
5961
6062
const visiblePlans = SHOW_SCALE_PLAN ? plans : plans.filter((plan) => plan.name !== 'Scale');
6163
@@ -69,13 +71,15 @@
6971
)}
7072
>
7173
<div class="container flex w-full flex-col items-center justify-center gap-10">
72-
<div
73-
class={cn(
74-
'animate-lighting absolute top-0 left-0 -z-10 h-screen w-[200vw] -translate-x-[25%] translate-y-8 rotate-25 overflow-hidden blur-3xl md:w-full',
75-
'bg-[image:radial-gradient(ellipse_390px_50px_at_10%_30%,_rgba(254,_149,_103,_0.2)_0%,_rgba(254,_149,_103,_0)_70%),_radial-gradient(ellipse_1100px_170px_at_15%_40%,rgba(253,_54,_110,_0.08)_0%,_rgba(253,_54,_110,_0)_70%),_radial-gradient(ellipse_1200px_180px_at_30%_30%,_rgba(253,_54,_110,_0.08)_0%,_rgba(253,_54,_110,_0)_70%)]',
76-
'bg-position-[0%_0%]'
77-
)}
78-
></div>
74+
{#if !embedded}
75+
<div
76+
class={cn(
77+
'animate-lighting absolute top-0 left-0 -z-10 h-screen w-[200vw] -translate-x-[25%] translate-y-8 rotate-25 overflow-hidden blur-3xl md:w-full',
78+
'bg-[image:radial-gradient(ellipse_390px_50px_at_10%_30%,_rgba(254,_149,_103,_0.2)_0%,_rgba(254,_149,_103,_0)_70%),_radial-gradient(ellipse_1100px_170px_at_15%_40%,rgba(253,_54,_110,_0.08)_0%,_rgba(253,_54,_110,_0)_70%),_radial-gradient(ellipse_1200px_180px_at_30%_30%,_rgba(253,_54,_110,_0.08)_0%,_rgba(253,_54,_110,_0)_70%)]',
79+
'bg-position-[0%_0%]'
80+
)}
81+
></div>
82+
{/if}
7983

8084
<div
8185
class="animate-fade-in relative flex w-full flex-col justify-between gap-8 [animation-delay:150ms] [animation-duration:1000ms] md:flex-row md:items-center"

src/routes/changelog/[[page]]/+page.svelte

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<script lang="ts">
22
import { goto } from '$app/navigation';
3-
import { FooterNav, MainFooter, PreFooter } from '$lib/components';
3+
import { FooterNav, MainFooter } from '$lib/components';
44
import { Main } from '$lib/layouts';
55
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
66
import { onMount } from 'svelte';
77
import ChangelogEntry from '../ChangelogEntry.svelte';
88
import { page } from '$app/state';
99
import { CHANGELOG_KEY } from '../utils';
10+
import Pricing from '$routes/(marketing)/(components)/pricing.svelte';
1011
import { TITLE_SUFFIX } from '$routes/titles';
1112
import { Button } from '$lib/components/ui';
1213
@@ -72,13 +73,11 @@
7273
</div>
7374
</div>
7475
</div>
75-
<div class="relative overflow-hidden pt-10">
76-
<div class="pt-[7.5rem]">
77-
<div class="container">
78-
<PreFooter />
79-
<FooterNav />
80-
<MainFooter />
81-
</div>
76+
<div class="border-smooth relative border-t pt-20 md:pt-24">
77+
<Pricing embedded class="mt-0 mb-0 min-h-0 pt-10 pb-20 md:pt-12 md:pb-24" />
78+
<div class="container">
79+
<FooterNav />
80+
<MainFooter />
8281
</div>
8382
</div>
8483
</div>

src/routes/changelog/entry/[entry]/+page.svelte

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script lang="ts">
22
import { page } from '$app/state';
33
import { FooterNav, MainFooter, Tooltip } from '$lib/components';
4-
import PreFooter from '$lib/components/PreFooter.svelte';
54
import { type SocialShareOption, socialSharingOptions } from '$lib/constants';
65
import { Main } from '$lib/layouts';
76
import { copy } from '$lib/utils/copy';
87
import { formatDate } from '$lib/utils/date';
98
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
9+
import Pricing from '$routes/(marketing)/(components)/pricing.svelte';
1010
import { CHANGELOG_TITLE_SUFFIX } from '$routes/titles';
1111
1212
let { data } = $props();
@@ -156,13 +156,11 @@
156156
</article>
157157
</div>
158158
</div>
159-
<div class="relative overflow-hidden pt-10">
160-
<div class="pt-[7.5rem]">
161-
<div class="container">
162-
<PreFooter />
163-
<FooterNav />
164-
<MainFooter />
165-
</div>
159+
<div class="border-smooth relative border-t pt-20 md:pt-24">
160+
<Pricing embedded class="mt-0 mb-0 min-h-0 pt-10 pb-20 md:pt-12 md:pb-24" />
161+
<div class="container">
162+
<FooterNav />
163+
<MainFooter />
166164
</div>
167165
</div>
168166
</div>

0 commit comments

Comments
 (0)