mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 09:17:00 +00:00
update to month calendar
This commit is contained in:
@@ -16,7 +16,7 @@ export const metadata: Metadata = {
|
||||
const page = () => {
|
||||
return (
|
||||
<div className="flex flex-col w-full h-full gap-4">
|
||||
<div className="grid grid-cols-5 gap-4 h-52">
|
||||
<div className="grid grid-cols-5 gap-4 h-48">
|
||||
<Card>
|
||||
<CardHeader className="items-center">
|
||||
<CardDescription>Reporting Today</CardDescription>
|
||||
|
||||
+3
-2
@@ -37,9 +37,10 @@
|
||||
--primary: 47.9 95.8% 53.1%;
|
||||
--primary-foreground: 26 83.3% 14.1%;
|
||||
/* --secondary: 12 6.5% 15.1%; */
|
||||
--secondary: 0 0% 15%;
|
||||
--secondary: 0 0% 17.5%;
|
||||
--secondary-foreground: 60 9.1% 97.8%;
|
||||
--muted: 12 6.5% 15.1%;
|
||||
/* --muted: 12 6.5% 15.1%; */
|
||||
--muted: 0 0% 15%;
|
||||
--muted-foreground: 24 5.4% 63.9%;
|
||||
--accent: 12 6.5% 15.1%;
|
||||
--accent-foreground: 60 9.1% 97.8%;
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
"use client";
|
||||
|
||||
import React, { useCallback, useState } from "react";
|
||||
import CalendarItem from "@/components/calendar/CalendarItem";
|
||||
import {
|
||||
ResizableHandle,
|
||||
ResizablePanel,
|
||||
ResizablePanelGroup,
|
||||
} from "@/components/ui/resizable";
|
||||
import { useResizeDetector } from "react-resize-detector";
|
||||
|
||||
const Test = () => {
|
||||
const [lines, setLines] = useState<number>();
|
||||
|
||||
const onResize = ({ width, height, entry }: any) => {
|
||||
console.log(Math.floor(height / 26));
|
||||
};
|
||||
|
||||
const { width, height, ref } = useResizeDetector({ onResize });
|
||||
|
||||
return (
|
||||
// <div className="h-96 bg-card w-96">
|
||||
// <CalendarItem title="hi" variant="conference" size="sm" />
|
||||
// </div>
|
||||
<ResizablePanelGroup
|
||||
direction="vertical"
|
||||
className="min-h-[200px] max-w-md rounded-lg border bg-card"
|
||||
>
|
||||
<ResizablePanel defaultSize={25}>
|
||||
<div ref={ref} className="h-full">
|
||||
<CalendarItem title="hi" variant="conference" size="sm" />
|
||||
<CalendarItem title="hi" variant="conference" size="sm" />
|
||||
<CalendarItem title="hi" variant="conference" size="sm" />
|
||||
<CalendarItem title="hi" variant="conference" size="sm" />
|
||||
<CalendarItem title="hi" variant="conference" size="sm" />
|
||||
<CalendarItem title="hi" variant="conference" size="sm" />
|
||||
{/* {`${width}x${height}`} */}
|
||||
</div>
|
||||
</ResizablePanel>
|
||||
<ResizableHandle />
|
||||
<ResizablePanel defaultSize={75}>
|
||||
<div className="flex h-full items-center justify-center">
|
||||
<span className="font-semibold">Content</span>
|
||||
</div>
|
||||
</ResizablePanel>
|
||||
</ResizablePanelGroup>
|
||||
);
|
||||
};
|
||||
|
||||
export default Test;
|
||||
+2
-11
@@ -1,16 +1,7 @@
|
||||
import CommandKey from "@/components/nav/CommandKey";
|
||||
import CommandMenu from "@/components/nav/CommandMenu";
|
||||
import React from "react";
|
||||
import Test from "./Test";
|
||||
|
||||
const page = () => {
|
||||
return (
|
||||
<div className="flex flex-col">
|
||||
<div className="w-1/2 h-96">
|
||||
<CommandMenu />
|
||||
</div>
|
||||
<CommandKey />
|
||||
</div>
|
||||
);
|
||||
return <Test />;
|
||||
};
|
||||
|
||||
export default page;
|
||||
|
||||
Reference in New Issue
Block a user