2025-12-22 02:36:48 +01:00
|
|
|
<script lang="ts">
|
2025-11-01 15:49:29 +01:00
|
|
|
import ArrowUpRightIcon from '@lucide/svelte/icons/arrow-up-right';
|
2024-07-30 14:48:37 +01:00
|
|
|
|
|
|
|
|
import { t } from '$lib/utils/functions/translations';
|
|
|
|
|
import { currentOrg, isFreePlan } from '$lib/utils/store/org';
|
2025-12-22 02:36:48 +01:00
|
|
|
import { cn } from '@cio/ui/tools';
|
|
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
class?: string;
|
|
|
|
|
showOnlyLogo?: boolean;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let { class: className, showOnlyLogo = false }: Props = $props();
|
2024-04-08 18:13:57 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
{#if $isFreePlan}
|
|
|
|
|
<a
|
|
|
|
|
href={`https://classroomio.com?utm_source=${$currentOrg.siteName}.classroomio.com`}
|
|
|
|
|
target="_blank"
|
2025-12-22 02:36:48 +01:00
|
|
|
class={cn('group fixed bottom-14 right-9 z-50 hover:no-underline', className)}
|
2024-04-08 18:13:57 +01:00
|
|
|
>
|
|
|
|
|
<span
|
2025-12-22 02:36:48 +01:00
|
|
|
class={cn(
|
|
|
|
|
'relative flex items-center gap-1 overflow-hidden rounded-md border border-gray-100 bg-white text-sm font-medium text-black shadow-sm transition duration-500 group-hover:border-blue-600 group-hover:bg-blue-600 group-hover:text-white dark:text-black',
|
|
|
|
|
|
|
|
|
|
showOnlyLogo ? 'border-none p-0' : 'border px-2 py-1'
|
|
|
|
|
)}
|
2024-04-08 18:13:57 +01:00
|
|
|
>
|
2025-11-01 15:49:29 +01:00
|
|
|
<ArrowUpRightIcon
|
2024-04-08 18:13:57 +01:00
|
|
|
size={16}
|
2025-12-22 02:36:48 +01:00
|
|
|
class="custom absolute left-[5%] -translate-x-full translate-y-full text-white
|
2025-11-01 15:49:29 +01:00
|
|
|
opacity-0 transition duration-500 group-hover:translate-x-0 group-hover:translate-y-0 group-hover:opacity-100"
|
2024-04-08 18:13:57 +01:00
|
|
|
/>
|
2025-11-01 15:49:29 +01:00
|
|
|
<img src="/logo-192.png" alt="logo" class="h-[24px] opacity-100 group-hover:opacity-0" />
|
2025-12-22 02:36:48 +01:00
|
|
|
{#if !showOnlyLogo}
|
|
|
|
|
{$t('course.navItem.landing_page.powered_by')} ClassroomIO
|
|
|
|
|
{/if}
|
2024-04-08 18:13:57 +01:00
|
|
|
</span>
|
|
|
|
|
</a>
|
|
|
|
|
{/if}
|