From 1a046f8212e5a92d8c5aab6c870b1aa7517b3a27 Mon Sep 17 00:00:00 2001
From: ISA
Date: Mon, 15 Sep 2025 11:52:20 +0200
Subject: [PATCH] style: Icon as components and littwin-blue
---
.env.development | 2 +-
.env.production | 2 +-
.../icons/material-symbols/AlarmIcon.js | 18 +++++++++
components/icons/material-symbols/EditIcon.js | 18 +++++++++
.../icons/material-symbols/EditOffIcon.js | 18 +++++++++
.../icons/material-symbols/ExpandIcon.js | 18 +++++++++
components/icons/material-symbols/InfoIcon.js | 18 +++++++++
.../icons/material-symbols/MapMarkerIcon.js | 19 ++++++++++
components/icons/material-symbols/MenuIcon.js | 18 +++++++++
.../icons/material-symbols/SearchIcon.js | 18 +++++++++
components/mainComponent/MapComponent.js | 37 ++++++++++---------
components/uiWidgets/CoordinateInput.js | 20 ++++++++--
components/uiWidgets/VersionInfoModal.js | 2 +-
package-lock.json | 4 +-
package.json | 2 +-
public/img/expand-icon.svg | 3 --
public/img/icons/material-symbols/alarm.svg | 3 ++
.../img/icons/material-symbols/edit-off.svg | 3 ++
public/img/icons/material-symbols/edit.svg | 3 ++
public/img/icons/material-symbols/info.svg | 3 ++
.../img/icons/material-symbols/map-marker.svg | 4 ++
public/img/icons/material-symbols/menu.svg | 3 ++
public/img/icons/material-symbols/search.svg | 3 ++
tailwind.config.js | 9 ++++-
24 files changed, 216 insertions(+), 32 deletions(-)
create mode 100644 components/icons/material-symbols/AlarmIcon.js
create mode 100644 components/icons/material-symbols/EditIcon.js
create mode 100644 components/icons/material-symbols/EditOffIcon.js
create mode 100644 components/icons/material-symbols/ExpandIcon.js
create mode 100644 components/icons/material-symbols/InfoIcon.js
create mode 100644 components/icons/material-symbols/MapMarkerIcon.js
create mode 100644 components/icons/material-symbols/MenuIcon.js
create mode 100644 components/icons/material-symbols/SearchIcon.js
delete mode 100644 public/img/expand-icon.svg
create mode 100644 public/img/icons/material-symbols/alarm.svg
create mode 100644 public/img/icons/material-symbols/edit-off.svg
create mode 100644 public/img/icons/material-symbols/edit.svg
create mode 100644 public/img/icons/material-symbols/info.svg
create mode 100644 public/img/icons/material-symbols/map-marker.svg
create mode 100644 public/img/icons/material-symbols/menu.svg
create mode 100644 public/img/icons/material-symbols/search.svg
diff --git a/.env.development b/.env.development
index 1ffbbf5b9..4319b2923 100644
--- a/.env.development
+++ b/.env.development
@@ -23,4 +23,4 @@ NEXT_PUBLIC_USE_MOCKS=true
# z.B. http://10.10.0.13/xyz/index.aspx -> basePath in config.json auf /xyz setzen
# basePath wird jetzt in public/config.json gepflegt
# App-Versionsnummer
-NEXT_PUBLIC_APP_VERSION=1.1.363
+NEXT_PUBLIC_APP_VERSION=1.1.364
diff --git a/.env.production b/.env.production
index ad8f3a4b5..39641d118 100644
--- a/.env.production
+++ b/.env.production
@@ -24,4 +24,4 @@ NEXT_PUBLIC_USE_MOCKS=false
# basePath wird jetzt in public/config.json gepflegt
# App-Versionsnummer
-NEXT_PUBLIC_APP_VERSION=1.1.363
+NEXT_PUBLIC_APP_VERSION=1.1.364
diff --git a/components/icons/material-symbols/AlarmIcon.js b/components/icons/material-symbols/AlarmIcon.js
new file mode 100644
index 000000000..9f7c5f9fb
--- /dev/null
+++ b/components/icons/material-symbols/AlarmIcon.js
@@ -0,0 +1,18 @@
+const AlarmIcon = ({ className = "h-8 w-8" }) => (
+
+);
+
+export default AlarmIcon;
diff --git a/components/icons/material-symbols/EditIcon.js b/components/icons/material-symbols/EditIcon.js
new file mode 100644
index 000000000..315bee6a3
--- /dev/null
+++ b/components/icons/material-symbols/EditIcon.js
@@ -0,0 +1,18 @@
+const EditIcon = ({ className = "h-8 w-8" }) => (
+
+);
+
+export default EditIcon;
diff --git a/components/icons/material-symbols/EditOffIcon.js b/components/icons/material-symbols/EditOffIcon.js
new file mode 100644
index 000000000..db54a2817
--- /dev/null
+++ b/components/icons/material-symbols/EditOffIcon.js
@@ -0,0 +1,18 @@
+const EditOffIcon = ({ className = "h-8 w-8" }) => (
+
+);
+
+export default EditOffIcon;
diff --git a/components/icons/material-symbols/ExpandIcon.js b/components/icons/material-symbols/ExpandIcon.js
new file mode 100644
index 000000000..323069d1d
--- /dev/null
+++ b/components/icons/material-symbols/ExpandIcon.js
@@ -0,0 +1,18 @@
+const ExpandIcon = ({ className = "h-8 w-8" }) => (
+
+);
+
+export default ExpandIcon;
diff --git a/components/icons/material-symbols/InfoIcon.js b/components/icons/material-symbols/InfoIcon.js
new file mode 100644
index 000000000..ea7e5a996
--- /dev/null
+++ b/components/icons/material-symbols/InfoIcon.js
@@ -0,0 +1,18 @@
+const InfoIcon = ({ className = "h-8 w-8" }) => (
+
+);
+
+export default InfoIcon;
diff --git a/components/icons/material-symbols/MapMarkerIcon.js b/components/icons/material-symbols/MapMarkerIcon.js
new file mode 100644
index 000000000..f011f7410
--- /dev/null
+++ b/components/icons/material-symbols/MapMarkerIcon.js
@@ -0,0 +1,19 @@
+const MapMarkerIcon = ({ className = "h-8 w-8" }) => (
+
+);
+
+export default MapMarkerIcon;
diff --git a/components/icons/material-symbols/MenuIcon.js b/components/icons/material-symbols/MenuIcon.js
new file mode 100644
index 000000000..a780099a5
--- /dev/null
+++ b/components/icons/material-symbols/MenuIcon.js
@@ -0,0 +1,18 @@
+const MenuIcon = ({ className = "h-8 w-8" }) => (
+
+);
+
+export default MenuIcon;
diff --git a/components/icons/material-symbols/SearchIcon.js b/components/icons/material-symbols/SearchIcon.js
new file mode 100644
index 000000000..b0d4c7f00
--- /dev/null
+++ b/components/icons/material-symbols/SearchIcon.js
@@ -0,0 +1,18 @@
+const SearchIcon = ({ className = "h-8 w-8" }) => (
+
+);
+
+export default SearchIcon;
diff --git a/components/mainComponent/MapComponent.js b/components/mainComponent/MapComponent.js
index e248e0642..81ec36c00 100644
--- a/components/mainComponent/MapComponent.js
+++ b/components/mainComponent/MapComponent.js
@@ -7,6 +7,14 @@ import "leaflet-contextmenu";
import "leaflet.smooth_marker_bouncing";
import "react-toastify/dist/ReactToastify.css";
import { Icon } from "@iconify/react";
+import EditIcon from "@/components/icons/material-symbols/EditIcon";
+import EditOffIcon from "@/components/icons/material-symbols/EditOffIcon";
+import SearchIcon from "@/components/icons/material-symbols/SearchIcon";
+import MenuIcon from "@/components/icons/material-symbols/MenuIcon";
+import InfoIcon from "@/components/icons/material-symbols/InfoIcon";
+import AlarmIcon from "@/components/icons/material-symbols/AlarmIcon";
+import MapMarkerIcon from "@/components/icons/material-symbols/MapMarkerIcon";
+import ExpandIcon from "@/components/icons/material-symbols/ExpandIcon";
import PoiUpdateModal from "@/components/pois/poiUpdateModal/PoiUpdateModal.js";
import { ToastContainer, toast } from "react-toastify";
import plusRoundIcon from "../icons/devices/overlapping/PlusRoundIcon.js";
@@ -1136,7 +1144,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
className="rounded-full bg-white/90 hover:bg-white shadow p-1"
title="Alarm"
>
-
+
{/* Marker-Icon (line-md) */}
{/*Lupe: Koordinatensuche ein-/ausblenden */}
+ {/* Expand: Karte auf Standardansicht */}
{/* Lupe: Koordinaten-Suche ein-/ausblenden */}
@@ -1226,11 +1231,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
diff --git a/components/uiWidgets/CoordinateInput.js b/components/uiWidgets/CoordinateInput.js
index 5c2bac1bb..967311ee0 100644
--- a/components/uiWidgets/CoordinateInput.js
+++ b/components/uiWidgets/CoordinateInput.js
@@ -4,7 +4,7 @@ import React, { useState } from "react";
const CoordinateInput = ({ onCoordinatesSubmit }) => {
const [coordinates, setCoordinates] = useState("");
- const handleSubmit = (e) => {
+ const handleSubmit = e => {
e.preventDefault();
if (onCoordinatesSubmit) {
onCoordinatesSubmit(coordinates);
@@ -12,9 +12,21 @@ const CoordinateInput = ({ onCoordinatesSubmit }) => {
};
return (
-
diff --git a/package-lock.json b/package-lock.json
index 46f23dab1..4656516b5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "nodemap",
- "version": "1.1.363",
+ "version": "1.1.364",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "nodemap",
- "version": "1.1.363",
+ "version": "1.1.364",
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
diff --git a/package.json b/package.json
index 5c697eef0..df16eec9a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "nodemap",
- "version": "1.1.363",
+ "version": "1.1.364",
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
diff --git a/public/img/expand-icon.svg b/public/img/expand-icon.svg
deleted file mode 100644
index 42f6e3731..000000000
--- a/public/img/expand-icon.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/public/img/icons/material-symbols/alarm.svg b/public/img/icons/material-symbols/alarm.svg
new file mode 100644
index 000000000..a8590d4f9
--- /dev/null
+++ b/public/img/icons/material-symbols/alarm.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/public/img/icons/material-symbols/edit-off.svg b/public/img/icons/material-symbols/edit-off.svg
new file mode 100644
index 000000000..e2c081d43
--- /dev/null
+++ b/public/img/icons/material-symbols/edit-off.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/public/img/icons/material-symbols/edit.svg b/public/img/icons/material-symbols/edit.svg
new file mode 100644
index 000000000..f237cc066
--- /dev/null
+++ b/public/img/icons/material-symbols/edit.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/public/img/icons/material-symbols/info.svg b/public/img/icons/material-symbols/info.svg
new file mode 100644
index 000000000..dc75679cf
--- /dev/null
+++ b/public/img/icons/material-symbols/info.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/public/img/icons/material-symbols/map-marker.svg b/public/img/icons/material-symbols/map-marker.svg
new file mode 100644
index 000000000..0f89f1ff9
--- /dev/null
+++ b/public/img/icons/material-symbols/map-marker.svg
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/public/img/icons/material-symbols/menu.svg b/public/img/icons/material-symbols/menu.svg
new file mode 100644
index 000000000..1269f9960
--- /dev/null
+++ b/public/img/icons/material-symbols/menu.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/public/img/icons/material-symbols/search.svg b/public/img/icons/material-symbols/search.svg
new file mode 100644
index 000000000..733f3796c
--- /dev/null
+++ b/public/img/icons/material-symbols/search.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/tailwind.config.js b/tailwind.config.js
index f0ab949f8..c128f97b6 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -1,6 +1,10 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}", "./hooks/**/*.{js,ts,jsx,tsx}"],
+ content: [
+ "./pages/**/*.{js,ts,jsx,tsx}",
+ "./components/**/*.{js,ts,jsx,tsx}",
+ "./hooks/**/*.{js,ts,jsx,tsx}",
+ ],
theme: {
extend: {
zIndex: {
@@ -10,6 +14,9 @@ module.exports = {
90: "90",
100: "100",
},
+ colors: {
+ "littwin-blue": "#00aeef",
+ },
},
},
plugins: [],