Browse Source

fix: Improved join cloud btn

pull/7072/head
Muhammed Mustafa 12 months ago
parent
commit
c145d58fff
  1. 6
      packages/nc-gui/components/dashboard/Sidebar/UserInfo.vue
  2. 51
      packages/nc-gui/components/general/JoinCloud.vue

6
packages/nc-gui/components/dashboard/Sidebar/UserInfo.vue

@ -80,9 +80,6 @@ onMounted(() => {
<template> <template>
<div class="flex w-full flex-col p-1 border-t-1 border-gray-200 gap-y-1"> <div class="flex w-full flex-col p-1 border-t-1 border-gray-200 gap-y-1">
<div v-if="!appInfo.ee && isMounted && !isMobileMode" class="flex flex-row w-full justify-between pt-0.5 truncate">
<GeneralJoinCloud />
</div>
<NcDropdown v-model:visible="isMenuOpen" placement="topLeft" overlay-class-name="!min-w-64"> <NcDropdown v-model:visible="isMenuOpen" placement="topLeft" overlay-class-name="!min-w-64">
<div <div
class="flex flex-row py-2 px-3 gap-x-2 items-center hover:bg-gray-200 rounded-lg cursor-pointer h-10" class="flex flex-row py-2 px-3 gap-x-2 items-center hover:bg-gray-200 rounded-lg cursor-pointer h-10"
@ -209,6 +206,9 @@ onMounted(() => {
<template v-if="isMobileMode"></template> <template v-if="isMobileMode"></template>
<div v-else-if="appInfo.ee" class="text-gray-500 text-xs pl-3 mt-1">© 2023 NocoDB. Inc</div> <div v-else-if="appInfo.ee" class="text-gray-500 text-xs pl-3 mt-1">© 2023 NocoDB. Inc</div>
<div v-else class="flex flex-row w-full justify-between pt-0.5 truncate">
<GeneralJoinCloud />
</div>
</div> </div>
</template> </template>

51
packages/nc-gui/components/general/JoinCloud.vue

@ -7,61 +7,68 @@
class="flex flex-grow !no-underline items-center justify-center border-r-1 h-full hover:bg-gray-100" class="flex flex-grow !no-underline items-center justify-center border-r-1 h-full hover:bg-gray-100"
href="https://app.nocodb.com/#/signin?utm_source=OSS&utm_medium=OSS&utm_campaign=OSS&utm_content=OSS" href="https://app.nocodb.com/#/signin?utm_source=OSS&utm_medium=OSS&utm_campaign=OSS&utm_content=OSS"
> >
<div class="px-1 font-semibold text-gray-700 prose-sm" style="line-height: 1.3125rem"> <div class="px-1 text-gray-500 prose-sm" style="line-height: 1.3125rem">Try NocoDB Cloud</div>
{{ $t('labels.joinCloudForFree') }} <div class="relative absolute h-8 w-8">
<img
src="https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExOTVtdDhhaTBlYjN3NTR0bmR2aXc0YzlvNmkwMGg0c3E3NzM1ajEzaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/iicVNq4tGrWfYJiPM0/giphy.gif"
width="48"
class="mt-2 absolute -top-1 left-0"
/>
</div> </div>
</a> </a>
<a-tooltip overlay-class-name="nc-join-cloud-tooltip"> <a-tooltip overlay-class-name="nc-join-cloud-tooltip">
<template #title> <template #title>
<div class="w-68 bg-transparent overflow-hidden rounded-3xl shadow border border-zinc-100"> <div class="w-72 bg-transparent overflow-hidden rounded-3xl shadow border border-zinc-100">
<div class="p-6 bg-white flex-col justify-start items-center gap-4 inline-flex pb-7"> <div class="p-6 bg-white flex-col justify-start items-center gap-4 inline-flex pb-7 w-full">
<div class="self-stretch justify-start items-center gap-3 inline-flex"> <div class="self-stretch justify-start items-center gap-3 inline-flex">
<div class="text-slate-800 text-2xl font-bold leading-9">Business</div> <div class="text-slate-800 text-lg font-semibold leading-9">NocoDB Cloud</div>
<div class="px-2 py-1 bg-brand-50 rounded-lg justify-center items-center gap-2 flex"> <div class="px-2 py-1 bg-brand-50 rounded-lg justify-center items-center gap-2 flex">
<div class="text-brand-500 text-sm font-medium leading-tight">Usage based</div> <div class="text-brand-500 text-sm font-medium leading-tight">Usage based</div>
</div> </div>
</div> </div>
<div class="self-stretch justify-start items-center gap-2 inline-flex"> <div class="self-stretch justify-start items-center gap-2 inline-flex">
<div class="text-gray-500 text-base font-bold leading-normal">$</div> <div class="text-gray-500 text-base font-bold line-through leading-normal">
<div class="text-gray-500 text-base font-bold line-through leading-normal">99 Onwards</div> $ 99
<span class="font-thin text-gray-500"> Onwards </span>
</div>
<div class="text-neutral-900 text-4xl font-bold leading-10">Free</div> <div class="text-neutral-900 text-4xl font-bold leading-10">Free</div>
</div> </div>
<div class="self-stretch text-gray-500 text-base font-bold leading-normal">/ month / workspace</div> <div class="self-stretch text-gray-500 text-base font-bold leading-normal">/ month / workspace</div>
<div
class="self-stretch px-4 bg-white rounded-lg shadow border border-gray-200 justify-center items-center gap-2 inline-flex" <a href="https://app.nocodb.com/#/signin" target="_blank" class="!no-underline">
> <NcButton class="text-gray-700 text-base font-semibold leading-tight py-4 w-full">Start for Free</NcButton>
<div class="text-gray-700 text-sm font-semibold leading-tight">Start for Free</div> </a>
</div> <div class="self-stretch text-center text-gray-500 text-xs font-medium leading-none mb-4">
<div class="self-stretch text-center text-gray-500 text-xs font-medium leading-none">No credit card required</div>
<div class="self-stretch opacity-0 text-center text-gray-500 text-xs font-medium leading-none">
No credit card required No credit card required
</div> </div>
<div class="self-stretch text-slate-600 text-sm font-semibold leading-tight">Everything in Team plus:</div> <div class="flex flex-col items-start w-full">
<div class="self-stretch justify-between items-center inline-flex"> <div class="self-stretch text-gray-500 text-xs font-semibold leading-tight mb-2">Includes</div>
<div class="justify-end items-center gap-3 flex"> <div class="self-stretch justify-between items-center inline-flex">
<GeneralIcon icon="check" class="text-brand-500" /> <div class="justify-end items-center gap-3 flex">
<div class="text-brand-500 text-lg font-bold leading-normal">20 Users Included</div> <GeneralIcon icon="check" class="text-brand-500" />
<div class="text-brand-500 text-lg font-bold leading-normal">20 Users</div>
</div>
</div> </div>
</div> </div>
<div class="self-stretch justify-between items-center inline-flex"> <div class="self-stretch justify-between items-center inline-flex">
<div class="justify-start items-center gap-3 flex"> <div class="justify-start items-center gap-3 flex">
<GeneralIcon icon="check" class="text-brand-500" /> <GeneralIcon icon="check" class="text-brand-500" />
<div class="text-slate-800 text-sm font-semibold leading-tight">300k + rows/workspace</div> <div class="text-slate-800 text-sm font-semibold leading-tight">300k rows / workspace</div>
</div> </div>
</div> </div>
<div class="self-stretch justify-between items-center inline-flex"> <div class="self-stretch justify-between items-center inline-flex">
<div class="justify-start items-center gap-3 flex"> <div class="justify-start items-center gap-3 flex">
<GeneralIcon icon="check" class="text-brand-500" /> <GeneralIcon icon="check" class="text-brand-500" />
<div class="text-slate-800 text-sm font-semibold leading-tight">25 GB + storage</div> <div class="text-slate-800 text-sm font-semibold leading-tight">25 GB+ storage</div>
</div> </div>
</div> </div>
<div class="self-stretch justify-between items-center inline-flex"> <div class="self-stretch justify-between items-center inline-flex">
<div class="justify-start items-center gap-3 flex"> <div class="justify-start items-center gap-3 flex">
<GeneralIcon icon="check" class="text-brand-500" /> <GeneralIcon icon="check" class="text-brand-500" />
<div class="text-slate-800 text-sm font-semibold leading-tight">APIs - 10+ Requests/second</div> <div class="text-slate-800 text-sm font-semibold leading-tight">APIs - 10+ requests / second</div>
</div> </div>
</div> </div>
<div class="self-stretch justify-start items-center gap-3 inline-flex"> <div class="self-stretch justify-start items-center gap-3 inline-flex">

Loading…
Cancel
Save