add promo code
This commit is contained in:
parent
f90363ffee
commit
ce04f0e26a
@ -143,7 +143,6 @@
|
|||||||
<div
|
<div
|
||||||
class="w-full xl:max-w-screen-2xl overflow-hidden m-auto min-h-screen bg-[#09090B] mb-40"
|
class="w-full xl:max-w-screen-2xl overflow-hidden m-auto min-h-screen bg-[#09090B] mb-40"
|
||||||
>
|
>
|
||||||
<!--
|
|
||||||
{#if data?.user?.tier !== "Pro" || data?.user?.freeTrial === true}
|
{#if data?.user?.tier !== "Pro" || data?.user?.freeTrial === true}
|
||||||
<div
|
<div
|
||||||
class="mb-5 relative isolate sm:rounded text-center flex justify-center items-center gap-x-6 overflow-hidden bg-[#FFC233] px-6 py-3.5 sm:py-2.5 sm:px-3.5 sm:before:flex-1"
|
class="mb-5 relative isolate sm:rounded text-center flex justify-center items-center gap-x-6 overflow-hidden bg-[#FFC233] px-6 py-3.5 sm:py-2.5 sm:px-3.5 sm:before:flex-1"
|
||||||
@ -170,23 +169,23 @@
|
|||||||
class="w-full m-auto flex flex-col sm:flex-row justify-center items-center gap-x-4 gap-y-2"
|
class="w-full m-auto flex flex-col sm:flex-row justify-center items-center gap-x-4 gap-y-2"
|
||||||
>
|
>
|
||||||
<p class="text-md text-black font-semibold">
|
<p class="text-md text-black font-semibold">
|
||||||
<span class="text-black font-bold">Last Chance</span><svg
|
<span class="text-black font-bold">Black Friday Week</span><svg
|
||||||
viewBox="0 0 2 2"
|
viewBox="0 0 2 2"
|
||||||
class="mx-2 inline h-0.5 w-0.5 fill-current"
|
class="mx-2 inline h-0.5 w-0.5 fill-current"
|
||||||
aria-hidden="true"><circle cx="1" cy="1" r="1" /></svg
|
aria-hidden="true"><circle cx="1" cy="1" r="1" /></svg
|
||||||
>
|
>
|
||||||
Lock the Pro Subscription at just $1.99/month
|
Get 40% Off on Pro Subscription
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
href="/price-plan"
|
href="/pricing"
|
||||||
class="flex-none rounded-full m-auto sm:m-0 px-3.5 py-1 text-[1rem] font-semibold text-black shadow-sm sm:hover:bg-gray-100 bg-[#fff] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900"
|
class="flex-none rounded-full m-auto sm:m-0 px-3.5 py-1 text-[1rem] font-semibold text-black shadow-sm sm:hover:bg-gray-100 bg-[#fff] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900"
|
||||||
>
|
>
|
||||||
Read more
|
Get Pro
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
-->
|
|
||||||
|
|
||||||
<div class="flex flex-col m-auto justify-center items-center">
|
<div class="flex flex-col m-auto justify-center items-center">
|
||||||
<div class="text-center mb-10 w-full px-4 sm:px-3 mt-10">
|
<div class="text-center mb-10 w-full px-4 sm:px-3 mt-10">
|
||||||
|
|||||||
@ -53,34 +53,6 @@
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const excludedRules = new Set([
|
|
||||||
"sharesNumber",
|
|
||||||
"changeInSharesNumberPercentage",
|
|
||||||
"marketValue",
|
|
||||||
"avgPricePaid",
|
|
||||||
"weight",
|
|
||||||
]);
|
|
||||||
|
|
||||||
const defaultList = [
|
|
||||||
{ name: "Shares", rule: "sharesNumber" },
|
|
||||||
{ name: "% Change Shares", rule: "changeInSharesNumberPercentage" },
|
|
||||||
{ name: "Market Value", rule: "marketValue" },
|
|
||||||
{ name: "Avg Price", rule: "avgPricePaid" },
|
|
||||||
{ name: "% Weight", rule: "weight" },
|
|
||||||
];
|
|
||||||
|
|
||||||
const specificRows = [
|
|
||||||
{ name: "Shares", rule: "sharesNumber", type: "int" },
|
|
||||||
{
|
|
||||||
name: "% Change Shares",
|
|
||||||
rule: "changeInSharesNumberPercentage",
|
|
||||||
type: "percentSign",
|
|
||||||
},
|
|
||||||
{ name: "% Weight", rule: "weight", type: "percent" },
|
|
||||||
{ name: "Avg Price", rule: "avgPricePaid", type: "float" },
|
|
||||||
{ name: "Market Value", rule: "marketValue", type: "int" },
|
|
||||||
];
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
|||||||
@ -109,25 +109,45 @@
|
|||||||
<section
|
<section
|
||||||
class="bg-[#09090B] min-h-screen mb-40 w-full max-w-3xl sm:max-w-screen-lg pt-10 m-auto"
|
class="bg-[#09090B] min-h-screen mb-40 w-full max-w-3xl sm:max-w-screen-lg pt-10 m-auto"
|
||||||
>
|
>
|
||||||
<!--
|
{#if data?.user?.tier !== "Pro" || data?.user?.freeTrial === true}
|
||||||
{#if data?.user?.tier !== 'Pro' || data?.user?.freeTrial === true}
|
<div
|
||||||
<div class="mb-5 -mt-10 sm:-mt-5 relative sm:rounded isolate text-center flex justify-center items-center gap-x-6 overflow-hidden bg-[#fff] px-6 py-3.5 sm:py-2.5 sm:px-3.5 sm:before:flex-1">
|
class="mb-5 -mt-10 sm:-mt-5 relative sm:rounded isolate text-center flex justify-center items-center gap-x-6 overflow-hidden bg-[#FFC233] px-6 py-3.5 sm:py-2.5 sm:px-3.5 sm:before:flex-1"
|
||||||
<div class="absolute left-[max(-7rem,calc(50%-52rem))] top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl" aria-hidden="true">
|
>
|
||||||
<div class="aspect-[577/310] w-[36.0625rem] bg-gradient-to-r from-[#ff80b5] to-[#9089fc] opacity-30" style="clip-path: polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)"></div>
|
<div
|
||||||
|
class="absolute left-[max(-7rem,calc(50%-52rem))] top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl"
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="aspect-[577/310] w-[36.0625rem] bg-gradient-to-r from-[#ff80b5] to-[#9089fc] opacity-30"
|
||||||
|
style="clip-path: polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute left-[max(45rem,calc(50%+8rem))] top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl" aria-hidden="true">
|
<div
|
||||||
<div class="aspect-[577/310] w-[36.0625rem] bg-gradient-to-r from-[#ff80b5] to-[#9089fc] opacity-30" style="clip-path: polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)"></div>
|
class="absolute left-[max(45rem,calc(50%+8rem))] top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl"
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="aspect-[577/310] w-[36.0625rem] bg-gradient-to-r from-[#ff80b5] to-[#9089fc] opacity-30"
|
||||||
|
style="clip-path: polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full m-auto flex flex-col sm:flex-row justify-center items-center gap-x-4 gap-y-2">
|
<div
|
||||||
<p class="text-[1rem] text-white">
|
class="w-full m-auto flex flex-col sm:flex-row justify-center items-center gap-x-4 gap-y-2"
|
||||||
<strong class="font-semibold text-lg text-[1rem] text-white">🎃 Limited Halloween Special</strong><svg viewBox="0 0 2 2" class="mx-2 inline h-0.5 w-0.5 fill-current" aria-hidden="true"><circle cx="1" cy="1" r="1" /></svg>
|
>
|
||||||
Save <strong class="text-[#fff]">16%</strong> with Promo Code: <strong class="text-[#fff]">HALLOWEEN</strong>
|
<p class="text-[1rem] text-black">
|
||||||
|
<strong class="font-semibold text-lg text-[1rem] text-black"
|
||||||
|
>Black Friday Deal</strong
|
||||||
|
><svg
|
||||||
|
viewBox="0 0 2 2"
|
||||||
|
class="mx-2 inline h-0.5 w-0.5 fill-current"
|
||||||
|
aria-hidden="true"><circle cx="1" cy="1" r="1" /></svg
|
||||||
|
>
|
||||||
|
Save <strong class="text-black">40%</strong> with Promo Code:
|
||||||
|
<strong class="text-black">BLACK</strong>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
||||||
<div class="px-3">
|
<div class="px-3">
|
||||||
<div class="mx-auto text-center mb-8">
|
<div class="mx-auto text-center mb-8">
|
||||||
|
|||||||
@ -267,6 +267,7 @@
|
|||||||
<div class="text-sm font-normal text-default xs:text-base">
|
<div class="text-sm font-normal text-default xs:text-base">
|
||||||
Total Analysts
|
Total Analysts
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="mt-1 break-words font-semibold leading-8 text-white tiny:text-lg xs:text-xl sm:text-2xl"
|
class="mt-1 break-words font-semibold leading-8 text-white tiny:text-lg xs:text-xl sm:text-2xl"
|
||||||
>
|
>
|
||||||
@ -315,10 +316,17 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if rawData?.length !== 0}
|
{#if rawData?.length !== 0}
|
||||||
<div class="sm:w-full m-auto mt-10">
|
|
||||||
<div
|
<div
|
||||||
class="w-full m-auto rounded-none sm:rounded-lg mb-4 overflow-x-scroll lg:overflow-hidden"
|
class="mt-10 mb-5 items-center justify-between py-0 md:mt-8 md:flex md:py-2"
|
||||||
>
|
>
|
||||||
|
<div class="flex justify-between md:block">
|
||||||
|
<h2 class="text-xl font-semibold bp:mb-2 bp:text-2xl">
|
||||||
|
Ratings History
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=" w-full m-auto mb-4 overflow-x-scroll lg:overflow-hidden">
|
||||||
<table
|
<table
|
||||||
class="table table-sm table-compact no-scrollbar rounded-none sm:rounded-md w-full bg-[#09090B] border-bg-[#09090B] m-auto"
|
class="table table-sm table-compact no-scrollbar rounded-none sm:rounded-md w-full bg-[#09090B] border-bg-[#09090B] m-auto"
|
||||||
>
|
>
|
||||||
@ -340,8 +348,7 @@
|
|||||||
>Price Target</td
|
>Price Target</td
|
||||||
>
|
>
|
||||||
|
|
||||||
<td class="text-white font-semibold text-sm text-end"
|
<td class="text-white font-semibold text-sm text-end">Date</td
|
||||||
>Date</td
|
|
||||||
>
|
>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -484,7 +491,7 @@
|
|||||||
<div class="flex flex-col items-end">
|
<div class="flex flex-col items-end">
|
||||||
{#if latestInfoDate(item?.date)}
|
{#if latestInfoDate(item?.date)}
|
||||||
<label
|
<label
|
||||||
class="bg-[#2D4F8A] text-white font-medium text-xs rounded-lg px-2 py-0.5 ml-3 mb-1"
|
class="bg-[#fff] text-black font-semibold text-xs rounded-md px-2 py-0.5 ml-3 mb-1"
|
||||||
>
|
>
|
||||||
New
|
New
|
||||||
</label>
|
</label>
|
||||||
@ -502,11 +509,10 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{:else if activeIdx === 1}
|
{:else if activeIdx === 1}
|
||||||
<div class="w-full flex justify-start items-center m-auto mt-10 mb-6">
|
<div class="w-full flex justify-start items-center m-auto mt-10 mb-6">
|
||||||
<div
|
<div
|
||||||
class="text-center w-fit text-gray-100 text-sm sm:text-[1rem] rounded-lg h-auto border border-slate-800 p-4"
|
class="text-center w-fit text-gray-100 text-sm sm:text-[1rem] rounded-md h-auto border border-slate-800 p-4"
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
class="w-5 h-5 inline-block sm:mr-1 flex-shrink-0"
|
class="w-5 h-5 inline-block sm:mr-1 flex-shrink-0"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user