mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Major documentation reorganization and improvements: ## Documentation Cleanup - Deleted 13 old status/report MD files from root - Moved old reports to docs/archive/ for reference - Removed USAGE.md, WHITE_LABEL.md, TESTING_GUIDE.md - Now only 9 essential MD files at root (LLM.md, README.md, etc.) ## New Comprehensive Documentation Created in app/content/docs/ (visible on ui.hanzo.ai): ### Frameworks (/docs/frameworks/) - Multi-framework overview and comparison - React guide (8KB) - hooks, Next.js, TypeScript - Vue guide (4.6KB) - Composition API, Nuxt ### Packages (/docs/packages/) - Complete package documentation (6.3KB) - @hanzo/ui, @hanzo/auth, @hanzo/commerce, @hanzo/brand ### Testing (/docs/testing/) - Comprehensive testing guide (7.6KB) - Unit, E2E, visual regression, accessibility - Vitest, Playwright, CI/CD examples ### White-Label (/docs/white-label/) - Fork and rebrand guide (6.4KB) - Publishing, deployment, syncing with upstream ## Navigation & UX Improvements - Updated sidebar navigation with 4 new sections - Added comprehensive footer with quick links - 4-column footer: Getting Started, Frameworks, Resources, Community - Version number in footer (v5.0.0) ## Technical Fixes - Fixed build:registry workspace references (www,v4 → app) - Removed deprecated prettier import order options - Updated site config with version and Discord link ## Updated Documentation - README.md - Concise, feature-rich overview - LLM.md - Documentation structure rules and recent updates - All 175 MDX files accessible and building correctly Deployment ready for ui.hanzo.ai
81 lines
2.3 KiB
TypeScript
81 lines
2.3 KiB
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
import { formatDateRange } from "little-date"
|
|
import { PlusIcon } from "lucide-react"
|
|
|
|
import { Button } from "@/registry/default/ui/button"
|
|
import { Calendar } from "@/registry/default/ui/calendar"
|
|
import { Card, CardContent, CardFooter } from "@/registry/default/ui/card"
|
|
|
|
const events = [
|
|
{
|
|
title: "Team Sync Meeting",
|
|
from: "2025-06-12T09:00:00",
|
|
to: "2025-06-12T10:00:00",
|
|
},
|
|
{
|
|
title: "Design Review",
|
|
from: "2025-06-12T11:30:00",
|
|
to: "2025-06-12T12:30:00",
|
|
},
|
|
{
|
|
title: "Client Presentation",
|
|
from: "2025-06-12T14:00:00",
|
|
to: "2025-06-12T15:00:00",
|
|
},
|
|
]
|
|
|
|
export default function Calendar31() {
|
|
const [date, setDate] = React.useState<Date | undefined>(
|
|
new Date(2025, 5, 12)
|
|
)
|
|
|
|
return (
|
|
<Card className="w-fit py-4">
|
|
<CardContent className="px-4">
|
|
<Calendar
|
|
mode="single"
|
|
selected={date}
|
|
onSelect={setDate}
|
|
className="bg-transparent p-0"
|
|
required
|
|
/>
|
|
</CardContent>
|
|
<CardFooter className="flex flex-col items-start gap-3 border-t px-4 pb-0 pt-4">
|
|
<div className="flex w-full items-center justify-between px-1">
|
|
<div className="text-sm font-medium">
|
|
{date?.toLocaleDateString("en-US", {
|
|
day: "numeric",
|
|
month: "long",
|
|
year: "numeric",
|
|
})}
|
|
</div>
|
|
<Button
|
|
variant="ghost"
|
|
size="icon"
|
|
className="h-6 w-6"
|
|
title="Add Event"
|
|
>
|
|
<PlusIcon />
|
|
<span className="sr-only">Add Event</span>
|
|
</Button>
|
|
</div>
|
|
<div className="flex w-full flex-col gap-2">
|
|
{events.map((event) => (
|
|
<div
|
|
key={event.title}
|
|
className="bg-muted after:bg-primary/70 relative rounded-md p-2 pl-6 text-sm after:absolute after:inset-y-2 after:left-2 after:w-1 after:rounded-full"
|
|
>
|
|
<div className="font-medium">{event.title}</div>
|
|
<div className="text-muted-foreground text-xs">
|
|
{formatDateRange(new Date(event.from), new Date(event.to))}
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</CardFooter>
|
|
</Card>
|
|
)
|
|
}
|