From d69984c51decff454693a3da4926c29b4c610525 Mon Sep 17 00:00:00 2001 From: gohan5858 <88976739+gohan5858@users.noreply.github.com> Date: Sun, 27 Oct 2024 01:10:30 +0900 Subject: [PATCH 1/8] =?UTF-8?q?rename:=20=E3=83=91=E3=82=B9=E5=90=8D?= =?UTF-8?q?=E3=82=92=E3=82=B3=E3=83=B3=E3=83=9D=E3=83=BC=E3=83=8D=E3=83=B3?= =?UTF-8?q?=E3=83=88=E5=90=8D=E3=81=AB=E5=90=88=E3=81=86=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task_yell/src/app/{enhanced-calendar-todo-app => home}/page.tsx | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename task_yell/src/app/{enhanced-calendar-todo-app => home}/page.tsx (100%) diff --git a/task_yell/src/app/enhanced-calendar-todo-app/page.tsx b/task_yell/src/app/home/page.tsx similarity index 100% rename from task_yell/src/app/enhanced-calendar-todo-app/page.tsx rename to task_yell/src/app/home/page.tsx From d083d60c7dc785ed5000a587605aa4e0612a9ce9 Mon Sep 17 00:00:00 2001 From: gohan5858 <88976739+gohan5858@users.noreply.github.com> Date: Sun, 27 Oct 2024 01:38:02 +0900 Subject: [PATCH 2/8] =?UTF-8?q?chang:=20=E6=9C=80=E6=96=B0=E3=81=AEHome?= =?UTF-8?q?=E3=83=93=E3=83=A5=E3=83=BC=E3=81=AB=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task_yell/src/app/home/page.tsx | 888 ++++++++++++++++++++++++-------- 1 file changed, 661 insertions(+), 227 deletions(-) diff --git a/task_yell/src/app/home/page.tsx b/task_yell/src/app/home/page.tsx index a2b2967..a8a273b 100644 --- a/task_yell/src/app/home/page.tsx +++ b/task_yell/src/app/home/page.tsx @@ -1,18 +1,21 @@ "use client"; -import { useState, useEffect, useMemo } from "react"; -import { motion, AnimatePresence } from "framer-motion"; import { Button } from "@/components/ui/button"; +import { Calendar } from "@/components/ui/calendar"; import { Checkbox } from "@/components/ui/checkbox"; +import { + Dialog, + DialogContent, + DialogHeader, + DialogTitle, +} from "@/components/ui/dialog"; import { Input } from "@/components/ui/input"; -import { Textarea } from "@/components/ui/textarea"; +import { Label } from "@/components/ui/label"; import { - Sheet, - SheetContent, - SheetHeader, - SheetTitle, - SheetTrigger, -} from "@/components/ui/sheet"; + Popover, + PopoverContent, + PopoverTrigger, +} from "@/components/ui/popover"; import { Select, SelectContent, @@ -21,43 +24,42 @@ import { SelectValue, } from "@/components/ui/select"; import { - Menu, - CalendarIcon, - ChevronLeft, - ChevronRight, - Edit, - Trash2, - MapPinIcon, - UserPlusIcon, -} from "lucide-react"; + Sheet, + SheetContent, + SheetHeader, + SheetTitle, + SheetTrigger, +} from "@/components/ui/sheet"; +import { Switch } from "@/components/ui/switch"; +import { Textarea } from "@/components/ui/textarea"; import { - format, - startOfMonth, - endOfMonth, - eachDayOfInterval, - isSameMonth, - isSameDay, addMonths, - subMonths, + eachDayOfInterval, + endOfMonth, + format, getDay, - isToday, isFuture, + isSameDay, + isSameMonth, + isToday, + startOfMonth, + subMonths, } from "date-fns"; import { ja } from "date-fns/locale"; -import { Calendar } from "@/components/ui/calendar"; +import { AnimatePresence, motion, useDragControls } from "framer-motion"; import { - Popover, - PopoverContent, - PopoverTrigger, -} from "@/components/ui/popover"; -import { - Dialog, - DialogContent, - DialogHeader, - DialogTitle, -} from "@/components/ui/dialog"; -import { Label } from "@/components/ui/label"; -import { Switch } from "@/components/ui/switch"; + CalendarIcon, + ChevronLeft, + ChevronRight, + ChevronUp, + Edit, + MapPinIcon, + Menu, + Trash2, + UserPlusIcon, + X, +} from "lucide-react"; +import { useEffect, useMemo, useRef, useState } from "react"; type Priority = "low" | "medium" | "high"; type Category = "work" | "personal" | "shopping" | "health" | "other"; @@ -226,148 +228,165 @@ function EventCreator({ }; return ( -
-
- setIsTask(checked as boolean)} - /> - +
+
+
+

+ {format(date || new Date(), "yyyy年MM月dd日 (E)", { locale: ja })} +

+
+ {Array.from({ length: 24 }).map((_, hour) => ( +
+ {`${hour.toString().padStart(2, "0")}:00`} +
+
+ ))} +
+
+
+
+ setIsTask(checked as boolean)} + /> + +
- setTitle(e.target.value)} - /> + setTitle(e.target.value)} + /> - {!isTask && ( - <> -
- - - - - - - - - -
+ {!isTask && ( + <> +
+ + + + + + + + + +
+ +
+ + - + +
+ +