2023-01-03 09:26:08 +01:00
|
|
|
<script lang="ts">
|
2023-10-22 09:47:13 +01:00
|
|
|
import { profile } from '$lib/utils/store/user';
|
2023-08-02 19:35:27 +01:00
|
|
|
// import { supabase } from '$lib/utils/functions/supabase';
|
|
|
|
|
import { goto } from '$app/navigation';
|
|
|
|
|
import PrimaryButton from '$lib/components/PrimaryButton/index.svelte';
|
2023-08-03 02:51:02 +01:00
|
|
|
import UnlockedIcon from 'carbon-icons-svelte/lib/Unlocked.svelte';
|
|
|
|
|
import LockedIcon from 'carbon-icons-svelte/lib/Locked.svelte';
|
2023-10-22 09:47:13 +01:00
|
|
|
// import Avatar from '$lib/components/Avatar/index.svelte';
|
2023-01-03 09:26:08 +01:00
|
|
|
import { InlineCalendar, Datepicker } from 'svelte-calendar';
|
2023-08-03 02:51:02 +01:00
|
|
|
import { formatUserUpcomingData, formatDate } from '$lib/utils/functions/routes/dashboard';
|
2023-08-02 19:35:27 +01:00
|
|
|
import { user } from '$lib/utils/store/user';
|
|
|
|
|
import { fetchUserUpcomingData } from '$lib/utils/services/dashboard';
|
|
|
|
|
import { isMobile } from '$lib/utils/store/useMobile';
|
2023-08-03 02:51:02 +01:00
|
|
|
import type { UserLessonDataType, LessonsByMonthIndexType } from '$lib/utils/types';
|
2023-08-02 19:35:27 +01:00
|
|
|
import WelcomeModal from '$lib/components/WelcomeModal/WelcomeModal.svelte';
|
2023-07-18 13:50:47 +00:00
|
|
|
import { onMount } from 'svelte';
|
2023-09-08 09:17:05 +00:00
|
|
|
import { Add } from 'carbon-icons-svelte';
|
2023-10-22 09:47:13 +01:00
|
|
|
import { isOrgAdmin, currentOrgPath, currentOrg, userUpcomingData } from '$lib/utils/store/org';
|
2023-09-16 22:22:24 +01:00
|
|
|
import { VARIANTS } from '$lib/components/PrimaryButton/constants.js';
|
|
|
|
|
import VisitOrgSiteButton from '$lib/components/Buttons/VisitOrgSite.svelte';
|
2023-10-22 09:47:13 +01:00
|
|
|
import { getGreeting } from '$lib/utils/functions/date';
|
|
|
|
|
import { appStore } from '$lib/utils/store/app';
|
2023-01-03 09:26:08 +01:00
|
|
|
|
2023-08-02 19:35:27 +01:00
|
|
|
export let data;
|
2023-01-03 09:26:08 +01:00
|
|
|
|
2023-09-24 13:20:04 +00:00
|
|
|
const { orgName } = data;
|
2023-01-03 09:26:08 +01:00
|
|
|
|
2023-10-22 09:47:13 +01:00
|
|
|
let theme = {};
|
2023-01-03 09:26:08 +01:00
|
|
|
|
|
|
|
|
let store;
|
|
|
|
|
let calendar: HTMLElement | null = null;
|
|
|
|
|
let lessonsByMonth: LessonsByMonthIndexType = {};
|
|
|
|
|
let prevSelectedDate: string = new Date().toUTCString();
|
|
|
|
|
let selectedDateLessonData: UserLessonDataType[] | [] = [];
|
|
|
|
|
|
|
|
|
|
const boxes = [
|
|
|
|
|
{
|
|
|
|
|
label: 'Revenue (NGN)',
|
2023-08-03 02:51:02 +01:00
|
|
|
value: '0.00'
|
2023-01-03 09:26:08 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Number of sales',
|
2023-08-03 02:51:02 +01:00
|
|
|
value: 0
|
2023-01-03 09:26:08 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Number of courses',
|
2023-08-03 02:51:02 +01:00
|
|
|
value: 0
|
2023-01-03 09:26:08 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Total students',
|
2023-08-03 02:51:02 +01:00
|
|
|
value: 0
|
|
|
|
|
}
|
2023-01-03 09:26:08 +01:00
|
|
|
];
|
|
|
|
|
|
2023-09-24 13:20:04 +00:00
|
|
|
function createCourse() {
|
|
|
|
|
goto(`/org/${orgName}/courses?create=true`);
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-03 09:26:08 +01:00
|
|
|
const addDotsToCalendar = (currentMonthIndexInRenderedMonth: number) =>
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
if (!calendar) calendar = document.getElementById('calendar');
|
|
|
|
|
// console.log(
|
|
|
|
|
// `currentMonthIndexInRenderedMonth`,
|
|
|
|
|
// currentMonthIndexInRenderedMonth
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
|
|
const renderedMonths =
|
2023-08-03 02:51:02 +01:00
|
|
|
calendar?.querySelectorAll('.contents .container .stage .grid .grid') || [];
|
2023-01-03 09:26:08 +01:00
|
|
|
// console.log(`renderedMonths`, renderedMonths);
|
|
|
|
|
const currentMonthIndex = new Date($store?.selected).getMonth();
|
|
|
|
|
const currentMonth = renderedMonths[currentMonthIndexInRenderedMonth];
|
|
|
|
|
// console.log(`currentMonth`, currentMonth);
|
|
|
|
|
// All elements for each day in the month - with prev or next month
|
|
|
|
|
const currentMonthElements =
|
|
|
|
|
currentMonth?.querySelectorAll<HTMLElement>('a:not(.outsider)') || [];
|
|
|
|
|
// console.log(`currentMonthElements`, currentMonthElements, '\n\n');
|
|
|
|
|
const currentMonthData = lessonsByMonth[currentMonthIndex];
|
|
|
|
|
if (!currentMonthData) return;
|
|
|
|
|
|
|
|
|
|
for (let i in currentMonthElements) {
|
|
|
|
|
if (!currentMonthElements.hasOwnProperty(i)) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const dayElement = currentMonthElements[i];
|
|
|
|
|
dayElement.style.position = 'relative';
|
|
|
|
|
|
|
|
|
|
// The date is inside the element like <a>2</a>
|
|
|
|
|
const dateIndex = Number(dayElement.innerHTML);
|
|
|
|
|
if (!!currentMonthData[dateIndex]) {
|
|
|
|
|
// console.log(`dateIndex`, dateIndex);
|
|
|
|
|
// console.log(`lesson data`, currentMonthData[dateIndex]);
|
2023-08-03 02:51:02 +01:00
|
|
|
dayElement.insertAdjacentHTML('beforeend', '<span class="active-day">•</span>');
|
2023-01-03 09:26:08 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, 500);
|
|
|
|
|
|
2023-10-22 09:47:13 +01:00
|
|
|
async function runFirstThings(currentSession: { id: string } | null, orgId: string) {
|
|
|
|
|
if (!currentSession || !currentSession.id || !orgId) return;
|
2023-01-03 09:26:08 +01:00
|
|
|
|
2023-10-22 09:47:13 +01:00
|
|
|
if (!$userUpcomingData.length) {
|
|
|
|
|
$userUpcomingData = await fetchUserUpcomingData(currentSession.id, orgId);
|
|
|
|
|
}
|
2023-01-03 09:26:08 +01:00
|
|
|
|
2023-10-22 09:47:13 +01:00
|
|
|
lessonsByMonth = formatUserUpcomingData($userUpcomingData);
|
2023-01-03 09:26:08 +01:00
|
|
|
|
|
|
|
|
// Only for desktop. Only run on mobile when the user clicks on the date
|
|
|
|
|
if (!$isMobile) {
|
|
|
|
|
addDotsToCalendar(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-22 09:47:13 +01:00
|
|
|
function getDataOfSelectedDate(_selectedDate: string, orgId: string): UserLessonDataType[] | [] {
|
2023-01-03 09:26:08 +01:00
|
|
|
if (!_selectedDate) return [];
|
|
|
|
|
|
|
|
|
|
const selectedDate = new Date(_selectedDate).toUTCString();
|
|
|
|
|
|
|
|
|
|
const monthIndex = new Date(selectedDate).getMonth();
|
|
|
|
|
const dateIndex = new Date(selectedDate).getDate();
|
|
|
|
|
|
|
|
|
|
// If we changed the month, update the calendar dots
|
|
|
|
|
const prevMonthIndex = new Date(prevSelectedDate).getMonth();
|
|
|
|
|
if (prevMonthIndex !== monthIndex) {
|
2023-08-03 02:51:02 +01:00
|
|
|
const currentMonthIndexInRenderedMonth = monthIndex < prevMonthIndex ? 1 : 2;
|
2023-01-03 09:26:08 +01:00
|
|
|
|
|
|
|
|
addDotsToCalendar(currentMonthIndexInRenderedMonth);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
prevSelectedDate = selectedDate;
|
|
|
|
|
|
|
|
|
|
const monthLessonData = lessonsByMonth[monthIndex];
|
|
|
|
|
if (!monthLessonData) {
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const dateLessonData = monthLessonData[dateIndex];
|
|
|
|
|
if (!dateLessonData) {
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return dateLessonData;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onMount(() => {
|
2023-07-18 13:50:47 +00:00
|
|
|
// Remove default shouldEnlargeDay=true when <DatePicker /> on mobile
|
2023-01-03 09:26:08 +01:00
|
|
|
if ($store && $store.shouldEnlargeDay) {
|
2023-08-02 19:35:27 +01:00
|
|
|
$store.shouldEnlargeDay = false;
|
2023-01-03 09:26:08 +01:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// This is here not called onMount because we want to call it as soon as we have the user's `currentSession` value
|
2023-10-22 09:47:13 +01:00
|
|
|
$: runFirstThings($user.currentSession, $currentOrg.id);
|
2023-01-03 09:26:08 +01:00
|
|
|
|
|
|
|
|
// Every time the date changes
|
2023-10-22 09:47:13 +01:00
|
|
|
$: selectedDateLessonData = getDataOfSelectedDate($store?.selected, $currentOrg.id);
|
|
|
|
|
|
|
|
|
|
$: theme = {
|
|
|
|
|
calendar: {
|
|
|
|
|
width: '250px',
|
|
|
|
|
height: '283px',
|
|
|
|
|
shadow: '0px 0px 5px rgba(0, 0, 0, 0.25)',
|
|
|
|
|
legend: {
|
|
|
|
|
height: '30px'
|
|
|
|
|
},
|
|
|
|
|
colors: {
|
|
|
|
|
text: {
|
|
|
|
|
primary: $appStore.isDark ? '#eee' : '#333',
|
|
|
|
|
highlight: '#fff'
|
|
|
|
|
},
|
|
|
|
|
background: {
|
|
|
|
|
primary: $appStore.isDark ? '#333' : '#fff',
|
|
|
|
|
highlight: $appStore.isDark ? '#5829d6' : '#eb7400',
|
|
|
|
|
hover: $appStore.isDark ? '#222' : '#eee'
|
|
|
|
|
},
|
|
|
|
|
border: $appStore.isDark ? '#222' : '#eee'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
2023-01-03 09:26:08 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<svelte:head>
|
|
|
|
|
<title>Dashboard - ClassroomIO</title>
|
|
|
|
|
</svelte:head>
|
|
|
|
|
|
2023-07-18 13:50:47 +00:00
|
|
|
<WelcomeModal />
|
|
|
|
|
|
2023-04-23 22:28:18 +00:00
|
|
|
<div class="py-10 px-5 w-full max-w-7xl mx-auto">
|
2023-01-03 09:26:08 +01:00
|
|
|
<div class="flex items-center justify-between mb-10">
|
2023-11-04 17:53:59 +00:00
|
|
|
<h1 class="dark:text-white text-2xl md:text-3xl font-bold mb-3">
|
2023-10-22 09:47:13 +01:00
|
|
|
{getGreeting()}
|
|
|
|
|
{$profile.fullname}!
|
|
|
|
|
</h1>
|
2023-09-16 22:22:24 +01:00
|
|
|
<div class="flex items-center">
|
2023-09-17 00:14:49 +01:00
|
|
|
<PrimaryButton
|
|
|
|
|
variant={VARIANTS.OUTLINED}
|
|
|
|
|
onClick={createCourse}
|
|
|
|
|
isDisabled={!$isOrgAdmin}
|
|
|
|
|
className="min-h-[36px]"
|
|
|
|
|
>
|
2023-09-16 22:27:21 +01:00
|
|
|
{#if $isMobile}
|
2023-09-16 22:22:24 +01:00
|
|
|
<Add size={24} />
|
2023-09-16 22:27:21 +01:00
|
|
|
{:else}
|
|
|
|
|
Create Course
|
|
|
|
|
{/if}
|
2023-09-08 09:17:05 +00:00
|
|
|
</PrimaryButton>
|
2023-09-16 22:22:24 +01:00
|
|
|
|
|
|
|
|
<VisitOrgSiteButton />
|
|
|
|
|
</div>
|
2023-01-03 09:26:08 +01:00
|
|
|
</div>
|
|
|
|
|
|
2023-10-22 09:47:13 +01:00
|
|
|
<div
|
|
|
|
|
class="w-full h-fit lg:h-[265px] flex md:items-center justify-between flex-col-reverse md:flex-row p-5 lg:p-10 rounded-md bg-primary-900 my-2"
|
|
|
|
|
>
|
|
|
|
|
<span>
|
|
|
|
|
<p class="w-full md:w-[75%] lg:w-[80%] text-white text-xs lg:text-xl font-normal mb-5">
|
2023-11-07 08:51:49 +00:00
|
|
|
Thank you for what you do ❤️. You are changing lives one classroom at a time and thanks to
|
2023-10-25 05:21:32 +01:00
|
|
|
you, the world is a better place. 😊
|
2023-10-22 09:47:13 +01:00
|
|
|
</p>
|
|
|
|
|
<PrimaryButton
|
|
|
|
|
label="Keep Building 🚀"
|
|
|
|
|
variant={VARIANTS.CONTAINED_WHITE}
|
|
|
|
|
onClick={() => goto(`${$currentOrgPath}/courses`)}
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
|
|
|
|
<img
|
|
|
|
|
src="/images/student-learning.svg"
|
|
|
|
|
alt="student Learning Pictogram"
|
|
|
|
|
class="w-28 md:block md:w-1/3 lg:w-[200px] lg:max-h-[205px] mb-3 md:mb-0"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- <div class="flex items-start flex-wrap">
|
2023-01-03 09:26:08 +01:00
|
|
|
{#each boxes as box}
|
2023-09-08 09:17:05 +00:00
|
|
|
<div
|
|
|
|
|
class="w-full md:w-[246px] h-[165px] flex flex-col rounded border border-gray-200 justify-center px-5 md:mr-5 mb-5"
|
|
|
|
|
>
|
2023-05-05 20:19:45 +00:00
|
|
|
<p class="dark:text-white mb-2 text-sm">{box.label}</p>
|
|
|
|
|
<p class="dark:text-white text-xl font-bold">{box.value}</p>
|
2023-01-03 09:26:08 +01:00
|
|
|
</div>
|
|
|
|
|
{/each}
|
2023-10-22 09:47:13 +01:00
|
|
|
</div> -->
|
2023-01-03 09:26:08 +01:00
|
|
|
|
2023-10-22 09:47:13 +01:00
|
|
|
<div class="w-full">
|
2023-01-03 09:26:08 +01:00
|
|
|
<!-- Your Schedule -->
|
2023-09-12 11:31:20 +00:00
|
|
|
<div class="w-full xl:w-auto container">
|
2023-10-22 09:47:13 +01:00
|
|
|
<p class="dark:text-white font-bold mt-7 mb-4">Your Schedule</p>
|
|
|
|
|
<div
|
|
|
|
|
class="rounded border border-gray-200 gap-3 flex flex-col md:flex-row items-start px-2 md:px-5 py-5 w-full"
|
|
|
|
|
>
|
2023-01-03 09:26:08 +01:00
|
|
|
{#if !$isMobile}
|
2023-11-07 11:27:43 +00:00
|
|
|
<div id="calendar" class="flex justify-center mt-5 w-2/5 min-w-[250px]">
|
2023-01-03 09:26:08 +01:00
|
|
|
<InlineCalendar bind:store {theme} />
|
|
|
|
|
</div>
|
2023-10-22 09:47:13 +01:00
|
|
|
{:else}
|
2023-01-03 09:26:08 +01:00
|
|
|
<div class="header w-full flex items-center">
|
|
|
|
|
<Datepicker bind:store let:key let:send let:receive>
|
|
|
|
|
<button
|
2023-08-20 19:08:48 +00:00
|
|
|
class="text-lg font-bold text-primary-700 p-3 hover:bg-gray-300 rounded-md"
|
2023-01-03 09:26:08 +01:00
|
|
|
in:receive|local={{ key }}
|
|
|
|
|
out:send|local={{ key }}
|
|
|
|
|
on:click={() => {
|
|
|
|
|
addDotsToCalendar(1);
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{formatDate($store?.selected)}
|
|
|
|
|
</button>
|
|
|
|
|
</Datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
2023-10-22 09:47:13 +01:00
|
|
|
<div class="max-h-[400px] overflow-y-scroll w-full">
|
|
|
|
|
{#if !$isMobile}
|
|
|
|
|
<p class="dark:text-white font-bold m-5">
|
|
|
|
|
{formatDate($store?.selected)}
|
|
|
|
|
</p>
|
|
|
|
|
{/if}
|
|
|
|
|
{#each selectedDateLessonData as lessonData}
|
|
|
|
|
<div class="flex items-center justify-between p-5 lesson-data">
|
|
|
|
|
<div class="w-full">
|
|
|
|
|
<a
|
|
|
|
|
class="text-black-700 text-lg font-bold flex items-center"
|
|
|
|
|
href={`/courses/${lessonData.course_id}/lessons/${
|
|
|
|
|
lessonData.is_unlocked ? lessonData.lesson_id : ''
|
|
|
|
|
}`}
|
|
|
|
|
>
|
|
|
|
|
{lessonData.lesson_title}
|
|
|
|
|
{#if lessonData.is_unlocked}
|
|
|
|
|
<span class="ml-2 success">
|
|
|
|
|
<LockedIcon class="carbon-icon dark:text-white" />
|
|
|
|
|
</span>
|
|
|
|
|
{:else}
|
|
|
|
|
<UnlockedIcon class="carbon-icon dark:text-white" />
|
|
|
|
|
{/if}
|
2023-01-03 09:26:08 +01:00
|
|
|
</a>
|
2023-10-22 09:47:13 +01:00
|
|
|
<p class="dark:text-white text-grey text-sm flex items-center">
|
|
|
|
|
<a class="underline text-primary-700 my-2" href="/courses/{lessonData.course_id}">
|
|
|
|
|
{` ${lessonData.course_title}`}
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
{#if lessonData.is_unlocked}
|
|
|
|
|
<a
|
|
|
|
|
class="join-call rounded-3xl bg-primary-600 text-white py-3 font-bold shadow-lg {!lessonData.call_url &&
|
|
|
|
|
'opacity-50 pointer-events-none cursor-not-allowed'}"
|
|
|
|
|
href={!!lessonData.call_url ? lessonData.call_url : undefined}
|
|
|
|
|
target="_blank"
|
|
|
|
|
title={!!lessonData.call_url
|
|
|
|
|
? 'Click to join the call'
|
|
|
|
|
: 'No call link was added for this lesson. Ask your trainer'}
|
|
|
|
|
>
|
|
|
|
|
Join call
|
|
|
|
|
</a>
|
|
|
|
|
{/if}
|
2023-01-03 09:26:08 +01:00
|
|
|
</div>
|
2023-10-22 09:47:13 +01:00
|
|
|
{:else}
|
|
|
|
|
<p class="dark:text-white flex items-center justify-center w-full no-data">
|
|
|
|
|
No lesson on this day
|
|
|
|
|
</p>
|
|
|
|
|
{/each}
|
|
|
|
|
</div>
|
2023-01-03 09:26:08 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Your Activities -->
|
2023-09-12 11:31:20 +00:00
|
|
|
|
2023-11-07 11:27:43 +00:00
|
|
|
<!-- <div class="w-full">
|
2023-09-12 11:31:20 +00:00
|
|
|
<p class="dark:text-white font-bold mb-7">Your Activities</p>
|
|
|
|
|
<div
|
|
|
|
|
class="rounded border border-gray-200 md:min-w-[450px] activities-box py-4 px-2 md:px-5 w-full"
|
|
|
|
|
>
|
2023-01-03 09:26:08 +01:00
|
|
|
{#each activities as activity}
|
|
|
|
|
<div class="flex mb-3 pb-3 border-b border-gray-200">
|
|
|
|
|
<Avatar src={activity.avatar} name="avatar" />
|
2023-09-12 11:31:20 +00:00
|
|
|
<div class="ml-2 flex flex-col xl:flex-row">
|
2023-01-03 09:26:08 +01:00
|
|
|
<div class="mr-2">
|
2023-05-05 20:19:45 +00:00
|
|
|
<p class="dark:text-white">{activity.name}</p>
|
2023-09-12 11:31:20 +00:00
|
|
|
<p class="dark:text-white mb-2 mt-1 line-clamp-1">
|
2023-01-03 09:26:08 +01:00
|
|
|
{activity.description}
|
|
|
|
|
</p>
|
|
|
|
|
<a href={activity.link}>View</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
2023-05-05 20:19:45 +00:00
|
|
|
<p class="dark:text-white">{activity.time}</p>
|
2023-01-03 09:26:08 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/each}
|
|
|
|
|
</div>
|
2023-10-22 09:47:13 +01:00
|
|
|
</div> -->
|
2023-01-03 09:26:08 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.root {
|
|
|
|
|
min-height: 93vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box {
|
|
|
|
|
width: 246px;
|
|
|
|
|
height: 165px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header {
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
min-height: 61px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.lesson-data {
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.no-data {
|
|
|
|
|
height: 100px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.join-call {
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
max-height: 48px;
|
|
|
|
|
width: 110px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:global(span.active-day) {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: -8px;
|
|
|
|
|
left: 40%;
|
|
|
|
|
color: var(--main-primary-color);
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-22 09:47:13 +01:00
|
|
|
:global(#calendar .controls .button.label) {
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-03 09:26:08 +01:00
|
|
|
@media (max-width: 640px) {
|
|
|
|
|
:global(span.active-day) {
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-02 19:35:27 +01:00
|
|
|
</style>
|