Compare commits
12 Commits
83512887aa
...
6595a7f8bb
| Author | SHA1 | Date | |
|---|---|---|---|
| 6595a7f8bb | |||
| c95c9de320 | |||
| f7de45e47c | |||
| 7556d0496a | |||
| 7d68cce351 | |||
| e051a1aa4f | |||
| e9ef31e7ee | |||
| bba4960276 | |||
| b1d639f618 | |||
| 1702e0c408 | |||
| f87d3da269 | |||
| bbee38af9b |
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -31,12 +31,13 @@ jobs:
|
|||||||
image: oven/bun
|
image: oven/bun
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Biome
|
- name: Setup Biome
|
||||||
run: bun install -g biome
|
uses: biomejs/setup-biome@v2
|
||||||
- name: Run Biome lint
|
with:
|
||||||
run: biome lint --write
|
version: latest
|
||||||
- name: Run Biome format check
|
token: ${{ secrets.BIOME_TOKEN }}
|
||||||
run: biome format --write
|
- name: Run Biome
|
||||||
|
run: biome ci .
|
||||||
|
|
||||||
build-and-push-docker:
|
build-and-push-docker:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
},
|
},
|
||||||
"files": {
|
"files": {
|
||||||
"ignoreUnknown": false,
|
"ignoreUnknown": false,
|
||||||
"includes": ["**","!**/dist"]
|
"includes": ["**", "!**/dist"]
|
||||||
},
|
},
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
|||||||
BIN
public/img/amogus.png
Normal file
BIN
public/img/amogus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 126 KiB |
@@ -1,8 +1,8 @@
|
|||||||
const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3N2JmOTk1ODI3MzA0ZWIzOWYwNThjMzQ4YTY3ZDJkYyIsImlhdCI6MTc1NjQ3NTM4OSwiZXhwIjoyMDcxODM1Mzg5fQ.TZZ4SUGlERuIVrhzC_wfCN-qS1wSAKNN9uMMDjkqOgA";
|
const token =
|
||||||
|
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3N2JmOTk1ODI3MzA0ZWIzOWYwNThjMzQ4YTY3ZDJkYyIsImlhdCI6MTc1NjQ3NTM4OSwiZXhwIjoyMDcxODM1Mzg5fQ.TZZ4SUGlERuIVrhzC_wfCN-qS1wSAKNN9uMMDjkqOgA";
|
||||||
|
|
||||||
async function fetchTentHumidity() {
|
async function fetchTentHumidity() {
|
||||||
const url =
|
const url = `https://home.rivercry.com/api/states/sensor.third_reality_inc_3rths0224z_luftfeuchtigkeit_2`;
|
||||||
`https://home.rivercry.com/api/states/sensor.third_reality_inc_3rths0224z_luftfeuchtigkeit_2`;
|
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ 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 amogus from "/img/amogus.png";
|
||||||
|
import FourTwenty from "../FourTwenty/FourTwenty";
|
||||||
import style from "./style.module.css";
|
import style from "./style.module.css";
|
||||||
|
|
||||||
export default function Dashboard() {
|
export default function Dashboard() {
|
||||||
@@ -42,6 +44,9 @@ export default function Dashboard() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`${style.dashboard} ${scheme}`}>
|
<div className={`${style.dashboard} ${scheme}`}>
|
||||||
|
<div className={style.amogus}>
|
||||||
|
<img src={amogus} alt="Amogus" />
|
||||||
|
</div>
|
||||||
<div className={style.body}>
|
<div className={style.body}>
|
||||||
<CardColumn>
|
<CardColumn>
|
||||||
<Card icon="🚊" name="Timetable">
|
<Card icon="🚊" name="Timetable">
|
||||||
@@ -56,6 +61,9 @@ export default function Dashboard() {
|
|||||||
<Card icon="🌤" name="Weather">
|
<Card icon="🌤" name="Weather">
|
||||||
<Weather />
|
<Weather />
|
||||||
</Card>
|
</Card>
|
||||||
|
<Card icon="🍁" name="420">
|
||||||
|
<FourTwenty />
|
||||||
|
</Card>
|
||||||
</CardRow>
|
</CardRow>
|
||||||
|
|
||||||
<Card icon="🔔" name="Terminal" active={true}>
|
<Card icon="🔔" name="Terminal" active={true}>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
.body {
|
.body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 30px;
|
padding: 30px;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,3 +25,30 @@
|
|||||||
.night {
|
.night {
|
||||||
background-color: #2a3f55;
|
background-color: #2a3f55;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.amogus {
|
||||||
|
z-index: 100;
|
||||||
|
position: absolute;
|
||||||
|
scale: 60%;
|
||||||
|
animation:
|
||||||
|
x 10s linear infinite alternate,
|
||||||
|
y 7s linear infinite alternate;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes x {
|
||||||
|
from {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
left: calc(100vw - 70px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes y {
|
||||||
|
from {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
top: calc(100vh - 90px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
|
||||||
import clockImage from "/img/clock.png"
|
import clockImage from "/img/clock.png";
|
||||||
|
|
||||||
import style from "./style.module.css";
|
import style from "./style.module.css";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import style from "./style.module.css";
|
|
||||||
|
|
||||||
import weedImage from "/img/weed.png";
|
import weedImage from "/img/weed.png";
|
||||||
|
import style from "./style.module.css";
|
||||||
|
|
||||||
export default function Footer() {
|
export default function Footer() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
37
src/components/FourTwenty/FourTwenty.tsx
Normal file
37
src/components/FourTwenty/FourTwenty.tsx
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// 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` : "";
|
||||||
|
|
||||||
|
// return (
|
||||||
|
// <div>
|
||||||
|
// <p>
|
||||||
|
// {x}
|
||||||
|
// {y}
|
||||||
|
// </p>
|
||||||
|
// </div>
|
||||||
|
// );
|
||||||
|
// }
|
||||||
|
|
||||||
|
// function FourTwentyLoading() {}
|
||||||
|
|
||||||
|
// function FourTwentySmoking() {
|
||||||
|
// return (
|
||||||
|
// <div className={style.container}>
|
||||||
|
// <img
|
||||||
|
// className={style.image}
|
||||||
|
// src="https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExMjFlYnhzYzJnc3ZzejBnOGZzcHFpNGpxOHNrN2dwcnZ3NmZ2eWJ0dyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/5xaOcLRnsWIB0CkfE3u/giphy.gif"
|
||||||
|
// alt="Smoking"
|
||||||
|
// />
|
||||||
|
// </div>
|
||||||
|
// );
|
||||||
|
// }
|
||||||
|
|
||||||
|
export default function FourTwenty() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<FourTwentySmoking />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
5
src/components/FourTwenty/style.module.css
Normal file
5
src/components/FourTwenty/style.module.css
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
.container img {
|
||||||
|
all: unset;
|
||||||
|
object-fit: contain;
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import react from "@vitejs/plugin-react-swc";
|
import react from "@vitejs/plugin-react-swc";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import mkcert from 'vite-plugin-mkcert'
|
import mkcert from "vite-plugin-mkcert";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react(), mkcert()],
|
plugins: [react(), mkcert()],
|
||||||
|
|||||||
Reference in New Issue
Block a user