mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:46:29 +00:00
38 lines
1.5 KiB
TypeScript
38 lines
1.5 KiB
TypeScript
import LazyLoading from '@/components/loader/LazyLoading';
|
|
import { Card, CardContent } from '@/components/ui/card';
|
|
import { Metadata } from 'next';
|
|
import { FC, Suspense } from 'react';
|
|
import CalendarComponent from './components';
|
|
import fetchData from '@/lib/fetchData';
|
|
|
|
type Props = {};
|
|
|
|
export const metadata: Metadata = {
|
|
title: "H.A.T.s Calendar",
|
|
description: "H.A.T.s Working Calendar",
|
|
}
|
|
|
|
const CalendarPage: FC<Props> = async () => {
|
|
const data = await fetchData('/dayoff')
|
|
return (
|
|
<>
|
|
<div className="flex-1 space-y-8 p-6 sm:p-8 pt-6 pb-36 md:pb-8">
|
|
<div className="flex flex-col sm:flex-row items-start justify-between space-y-2 sm:space-y-0">
|
|
<div>
|
|
<h2 className="text-lg sm:text-3xl font-medium tracking-tight">H.A.T.s Calendar</h2>
|
|
<p className="text-xs md:text-base text-muted-foreground sm:mt-1 xl:w-2/3">A working calendar is not just a schedule; it's a roadmap to productivity, a daily commitment to progress, and a visual representation of how we invest our most precious resource: time.</p>
|
|
</div>
|
|
</div>
|
|
<Card>
|
|
<CardContent>
|
|
<Suspense fallback={<LazyLoading />}>
|
|
<CalendarComponent dayOff={data.day_off} />
|
|
</Suspense>
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default CalendarPage; |