|
1 | 1 | <script lang="ts"> |
| 2 | + import ProButton from '../ProButton.svelte'; |
2 | 3 | import type { PageData } from './$types'; |
3 | 4 | export let data: PageData; |
4 | | - import { Icon } from '@steeze-ui/svelte-icon'; |
5 | | - import { RocketLaunch } from '@steeze-ui/heroicons'; |
6 | | -
|
7 | | - import { modalStore, type ModalSettings } from '@codingcatdev/blackcatui'; |
8 | | -
|
9 | | - import ProModal from './ProModal.svelte'; |
10 | | -
|
11 | | - const showPro = () => { |
12 | | - const d: ModalSettings = { |
13 | | - type: 'component', |
14 | | - component: { |
15 | | - ref: ProModal |
16 | | - }, |
17 | | - meta: { |
18 | | - products: data.products |
19 | | - } |
20 | | - }; |
21 | | - modalStore.trigger(d); |
22 | | - }; |
23 | 5 | </script> |
24 | 6 |
|
25 | 7 | <div class="flex flex-col gap-4 p-2"> |
26 | 8 | <div class="p-4 sm:p-10"> |
27 | | - <section class=""> |
| 9 | + <section class="flex flex-col gap-2 md:gap-8"> |
| 10 | + <div class="flex justify-between"> |
| 11 | + <h1>Dashboard</h1> |
| 12 | + <a class="bcu-button variant-filled" href="/account">Account & Settings</a> |
| 13 | + </div> |
28 | 14 | <div class="flex flex-col md:flex-row gap-2"> |
29 | 15 | <div class="flex flex-col w-full gap-2"> |
30 | 16 | <div class="bcu-card variant-filled">Welcome Message</div> |
31 | 17 | <div class="bcu-card variant-filled">Join Discord for LBT</div> |
32 | 18 | </div> |
33 | | - <button |
34 | | - class="bcu-card variant-filled-primary w-full max-w-sm p-8 relative hover:shadow-2xl hover:scale-105 hover:cursor-pointer ease-in-out duration-300" |
35 | | - aria-label="open-pro-modal" |
36 | | - on:click={showPro} |
37 | | - > |
38 | | - <div class="absolute top-0 right-0 mt-2 mr-2 md:mt-8 md:mr-8"> |
39 | | - <div class="bcu-button variant-filled-surface capitalize">Go Pro</div> |
40 | | - </div> |
41 | | - <h2>Pro</h2> |
42 | | - <ul class="text-left text-md md:text-lg"> |
43 | | - <li class="my-2 flex flex-row gap-1 items-center"> |
44 | | - <Icon src={RocketLaunch} theme="solid" class="w-8" /> |
45 | | - Watch all PRO courses |
46 | | - </li> |
47 | | - <li class="my-2 flex flex-row gap-1 items-center"> |
48 | | - <Icon src={RocketLaunch} theme="solid" class="w-8" /> |
49 | | - Join PRO office hours |
50 | | - </li> |
51 | | - <li class="my-2 flex flex-row gap-1 items-center"> |
52 | | - <Icon src={RocketLaunch} theme="solid" class="w-8" /> |
53 | | - Read all PRO tutorials |
54 | | - </li> |
55 | | - <li class="my-2 flex flex-row gap-1 items-center"> |
56 | | - <Icon src={RocketLaunch} theme="solid" class="w-8" /> |
57 | | - Get PRO source code from GitHub |
58 | | - </li> |
59 | | - </ul> |
60 | | - </button> |
| 19 | + <ProButton products={data.products} /> |
61 | 20 | </div> |
62 | 21 | </section> |
63 | 22 | </div> |
|
0 commit comments