Files
classroomio/apps/dashboard/src/lib/components/Upgrade/PoweredBy.svelte
T

28 lines
1.1 KiB
Svelte
Raw Normal View History

2024-04-08 18:13:57 +01:00
<script>
import { ArrowUpRight } from 'carbon-icons-svelte';
2024-07-30 14:48:37 +01:00
import { t } from '$lib/utils/functions/translations';
import { currentOrg, isFreePlan } from '$lib/utils/store/org';
2024-04-08 18:13:57 +01:00
</script>
{#if $isFreePlan}
<a
href={`https://classroomio.com?utm_source=${$currentOrg.siteName}.classroomio.com`}
target="_blank"
2024-07-30 14:48:37 +01:00
class="group fixed bottom-14 right-9 z-50 hover:no-underline"
2024-04-08 18:13:57 +01:00
>
<span
2024-04-08 18:23:24 +01:00
class="overflow-hidden transition shadow-md duration-500 group-hover:bg-blue-600 group-hover:text-white flex items-center gap-2 dark:text-black bg-white border border-gray-50 group-hover:border-blue-600 rounded-md p-3 text-black text-sm font-medium"
2024-04-08 18:13:57 +01:00
>
<ArrowUpRight
class="
absolute group-hover:opacity-100 group-hover:translate-y-0 group-hover:translate-x-0
opacity-0 translate-y-full -translate-x-full transition duration-500 text-white"
size={16}
/>
<img src="/logo-192.png" alt="logo" class="group-hover:opacity-0 opacity-100 h-[16px]" />
2024-07-30 14:48:37 +01:00
{$t('course.navItem.landing_page.powered_by')}ClassroomIO
2024-04-08 18:13:57 +01:00
</span>
</a>
{/if}