fix code style issues
All checks were successful
CI / build (push) Successful in 12s
CI / lint (push) Successful in 9s
CI / build-and-push-docker (push) Successful in 18s

This commit is contained in:
2025-08-31 15:56:36 +02:00
parent 4ef2bdb772
commit 83512887aa
2 changed files with 27 additions and 30 deletions

View File

@@ -11,9 +11,8 @@ import Footer from "@/components/Footer/Footer";
import Terminal from "@/components/Terminal/Terminal"; import Terminal from "@/components/Terminal/Terminal";
import Timetable from "@/components/Timetable/Timetable"; import Timetable from "@/components/Timetable/Timetable";
import Weather from "@/components/Weather/Weather"; import Weather from "@/components/Weather/Weather";
import style from "./style.module.css";
import FourTwenty from "../FourTwenty/FourTwenty"; import FourTwenty from "../FourTwenty/FourTwenty";
import style from "./style.module.css";
export default function Dashboard() { export default function Dashboard() {
const schemes = [style.day, style.evening, style.night]; const schemes = [style.day, style.evening, style.night];

View File

@@ -1,39 +1,37 @@
import style from './style.module.css'; // import style from "./style.module.css";
function Timer({hours, minutes}: {hours: number, minutes: number}) { // function Timer({ hours, minutes }: { hours: number; minutes: number }) {
const x = hours > 0 ? `${hours}h ` : ''; // const x = hours > 0 ? `${hours}h ` : "";
const y = minutes > 0 ? `${minutes % 60}m` : ''; // const y = minutes > 0 ? `${minutes % 60}m` : "";
return ( // return (
<div> // <div>
<p>{x}{y}</p> // <p>
</div> // {x}
); // {y}
} // </p>
// </div>
// );
// }
function FourTwentyLoading() { // function FourTwentyLoading() {}
} // function FourTwentySmoking() {
// return (
function FourTwentySmoking() { // <div className={style.container}>
return ( // <img
<div className={style.container}> // className={style.image}
<img className={style.image} src="https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExMjFlYnhzYzJnc3ZzejBnOGZzcHFpNGpxOHNrN2dwcnZ3NmZ2eWJ0dyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/5xaOcLRnsWIB0CkfE3u/giphy.gif" alt="Smoking" /> // src="https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExMjFlYnhzYzJnc3ZzejBnOGZzcHFpNGpxOHNrN2dwcnZ3NmZ2eWJ0dyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/5xaOcLRnsWIB0CkfE3u/giphy.gif"
</div> // alt="Smoking"
); // />
} // </div>
// );
// }
export default function FourTwenty() { 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 ( return (
<div> <div>
<FourTwentySmoking /> <FourTwentySmoking />
</div> </div>
); );
} }