diff --git a/src/components/Dashboard/Dashboard.tsx b/src/components/Dashboard/Dashboard.tsx index a6f13d8..6bc8ac6 100644 --- a/src/components/Dashboard/Dashboard.tsx +++ b/src/components/Dashboard/Dashboard.tsx @@ -11,9 +11,8 @@ import Footer from "@/components/Footer/Footer"; import Terminal from "@/components/Terminal/Terminal"; import Timetable from "@/components/Timetable/Timetable"; import Weather from "@/components/Weather/Weather"; - -import style from "./style.module.css"; import FourTwenty from "../FourTwenty/FourTwenty"; +import style from "./style.module.css"; export default function Dashboard() { const schemes = [style.day, style.evening, style.night]; diff --git a/src/components/FourTwenty/FourTwenty.tsx b/src/components/FourTwenty/FourTwenty.tsx index 3f85214..1785a87 100644 --- a/src/components/FourTwenty/FourTwenty.tsx +++ b/src/components/FourTwenty/FourTwenty.tsx @@ -1,39 +1,37 @@ -import style from './style.module.css'; +// import style from "./style.module.css"; -function Timer({hours, minutes}: {hours: number, minutes: number}) { - const x = hours > 0 ? `${hours}h ` : ''; - const y = minutes > 0 ? `${minutes % 60}m` : ''; +// function Timer({ hours, minutes }: { hours: number; minutes: number }) { +// const x = hours > 0 ? `${hours}h ` : ""; +// const y = minutes > 0 ? `${minutes % 60}m` : ""; - return ( -
-

{x}{y}

-
- ); -} +// return ( +//
+//

+// {x} +// {y} +//

+//
+// ); +// } -function FourTwentyLoading() { +// function FourTwentyLoading() {} -} - -function FourTwentySmoking() { - return ( -
- Smoking -
- ); -} +// function FourTwentySmoking() { +// return ( +//
+// Smoking +//
+// ); +// } export default function FourTwenty() { - const now = new Date(); - const fourTwenty = new Date(); - fourTwenty.setHours(16, 20, 0, 0); - const secondsTo420 = Math.floor((fourTwenty.getTime() - now.getTime()) / 1000); - const minutesTo420 = Math.floor(secondsTo420 / 60); - const hoursTo420 = Math.floor(minutesTo420 / 60); - return (
); -} \ No newline at end of file +}