ganti semua

This commit is contained in:
[Valentino Heman Budiarto] 2026-08-31 20:46:14 +07:00
parent e7654fb4d0
commit bc551c57e9
7 changed files with 1559 additions and 1438 deletions

View File

@ -1,26 +1,3 @@
@import "tailwindcss"; @tailwind base;
@tailwind components;
:root { @tailwind utilities;
--background: #ffffff;
--foreground: #171717;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}
body {
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}

View File

@ -3,7 +3,7 @@
import { useState, useEffect, useRef } from 'react'; import { useState, useEffect, useRef } from 'react';
export default function RobotDashboard() { export default function RobotDashboard() {
const PI_IP = '172.17.172.18'; const PI_IP = '172.17.172.16';
const streamUrl = `http://${PI_IP}:8080/stream`; const streamUrl = `http://${PI_IP}:8080/stream`;
const [controlMode, setControlMode] = useState('gamepad'); const [controlMode, setControlMode] = useState('gamepad');

View File

@ -1,11 +1,3 @@
import type { NextConfig } from "next"; /** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
output: 'export', // <-- Ini yang mengubah web menjadi HTML statis
images: {
unoptimized: true, // <-- Wajib ditambahkan agar gambar tidak error saat diexport
},
// ... (biarkan konfigurasi lain jika ada)
};
export default nextConfig; export default nextConfig;

2919
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,18 +9,20 @@
"lint": "eslint" "lint": "eslint"
}, },
"dependencies": { "dependencies": {
"next": "16.2.12", "next": "^14.2.15",
"react": "19.2.4", "react": "^18.3.1",
"react-dom": "19.2.4" "react-dom": "^18.3.1"
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/postcss": "^4", "@tailwindcss/postcss": "^4",
"@types/node": "^20", "@types/node": "^20",
"@types/react": "^19", "@types/react": "^19",
"@types/react-dom": "^19", "@types/react-dom": "^19",
"eslint": "^9", "autoprefixer": "^10.5.4",
"eslint-config-next": "16.2.12", "eslint": "^8.57.1",
"tailwindcss": "^4", "eslint-config-next": "^14.2.15",
"postcss": "^8.5.26",
"tailwindcss": "^3.4.14",
"typescript": "^5" "typescript": "^5"
} }
} }

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

13
tailwind.config.js Normal file
View File

@ -0,0 +1,13 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {},
},
plugins: [],
}