|
| 1 | +<script lang="ts"> |
| 2 | + import { Icon } from '@steeze-ui/svelte-icon'; |
| 3 | + import { ArrowRightCircle, CheckCircle, RocketLaunch } from '@steeze-ui/heroicons'; |
| 4 | +
|
| 5 | + import KcPrimary from '$lib/components/global/icons/KCPrimary.svelte'; |
| 6 | + import AjPrimary from '$lib/components/global/icons/AJPrimary.svelte'; |
| 7 | +
|
| 8 | + let monthly = true; |
| 9 | +
|
| 10 | + const onSelect = () => { |
| 11 | + monthly = !monthly; |
| 12 | + }; |
| 13 | + const base = 'bcu-card p-2 md:p-8 flex flex-col items-center relative w-full hover:bg-opacity-90'; |
| 14 | +</script> |
| 15 | + |
| 16 | +<div class="bcu-card p-2 md:p-8 flex flex-col gap-2 md:gap-8"> |
| 17 | + <div class="flex flex-col md:grid md:grid-cols-2 gap-2 md:gap-8"> |
| 18 | + <button |
| 19 | + class={`${base} ${monthly ? 'variant-filled-primary' : 'variant-soft-primary'}`} |
| 20 | + on:click={onSelect} |
| 21 | + > |
| 22 | + {#if monthly} |
| 23 | + <div class="absolute top-0 right-0 mr-2 mt-2 "> |
| 24 | + <Icon src={CheckCircle} theme="solid" class="w-8" /> |
| 25 | + </div> |
| 26 | + {/if} |
| 27 | + <span class="font-medium text-xl">Monthly</span> |
| 28 | + <div class="flex flex-row items-end justify-center mt-2"> |
| 29 | + <span class="text-5xl font-bold">$25</span> |
| 30 | + <div class="mt-5"> |
| 31 | + <span class="text-surface-50-900-token font-medium text-xl">/mo</span> |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + <div class="mb-6"> |
| 35 | + <span class="font-medium text-xs">Just $0.83 per day</span> |
| 36 | + </div> |
| 37 | + <KcPrimary /> |
| 38 | + </button> |
| 39 | + <button |
| 40 | + class={`${base} ${!monthly ? 'variant-filled-primary' : 'variant-soft-primary'}`} |
| 41 | + on:click={onSelect} |
| 42 | + > |
| 43 | + {#if !monthly} |
| 44 | + <div class="absolute top-0 right-0 mr-2 mt-2 "> |
| 45 | + <Icon src={CheckCircle} theme="solid" class="w-8" /> |
| 46 | + </div> |
| 47 | + {/if} |
| 48 | + <span class="font-medium text-xl">Annual</span> |
| 49 | + <div class="flex flex-row items-end justify-center mt-2"> |
| 50 | + <span class="text-5xl font-bold">$225</span> |
| 51 | + <div class="mt-5"> |
| 52 | + <span class="text-surface-50-900-token font-medium text-xl">/year</span> |
| 53 | + </div> |
| 54 | + </div> |
| 55 | + <div class="mb-6"> |
| 56 | + <span class="font-medium text-xs">Save $75 compared to monthly</span> |
| 57 | + </div> |
| 58 | + <AjPrimary /> |
| 59 | + </button> |
| 60 | + </div> |
| 61 | + <div> |
| 62 | + <div class="bcu-card variant-filled-primary p-2 md:p-8"> |
| 63 | + <h2>Pro</h2> |
| 64 | + <ul class="text-left text-md md:text-lg"> |
| 65 | + <li class="my-2 flex flex-row gap-1 items-center"> |
| 66 | + <Icon src={RocketLaunch} theme="solid" class="w-8" /> |
| 67 | + Watch all PRO courses |
| 68 | + </li> |
| 69 | + <li class="my-2 flex flex-row gap-1 items-center"> |
| 70 | + <Icon src={RocketLaunch} theme="solid" class="w-8" /> |
| 71 | + Join PRO office hours |
| 72 | + </li> |
| 73 | + <li class="my-2 flex flex-row gap-1 items-center"> |
| 74 | + <Icon src={RocketLaunch} theme="solid" class="w-8" /> |
| 75 | + Read all PRO tutorials |
| 76 | + </li> |
| 77 | + <li class="my-2 flex flex-row gap-1 items-center"> |
| 78 | + <Icon src={RocketLaunch} theme="solid" class="w-8" /> |
| 79 | + Get PRO source code from GitHub |
| 80 | + </li> |
| 81 | + </ul> |
| 82 | + </div> |
| 83 | + </div> |
| 84 | + |
| 85 | + <button class="bcu-button variant-filled-surface flex self-end gap-2"> |
| 86 | + Continue |
| 87 | + <Icon src={ArrowRightCircle} theme="solid" class="w-8" /> |
| 88 | + </button> |
| 89 | +</div> |
0 commit comments