7 Commits

5 changed files with 22 additions and 29 deletions

View File

@@ -6,4 +6,4 @@ You can find the web version of the Weather App at [https://weather.the1s.de](ht
## Version
Currently hosted version: **1.0.0**
Currently hosted version: **1.0.1**

View File

@@ -1,29 +1,20 @@
services:
# frontend:
# container_name: frontend
# build: ./frontend
# network:
# - proxynet
# ports:
# - "7002:7002"
# environment:
# - CHOKIDAR_USEPOLLING=true
# volumes:
# - ./frontend:/app
# - /app/node_modules
# restart: unless-stopped
backend:
container_name: backend
build: ./backend
network:
- proxynet
frontend:
container_name: frontend
build: ./frontend
ports:
- "7001:7001"
- "7002:7002"
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
- ./backend:/bikelane-backend
- ./frontend:/app
- /app/node_modules
restart: unless-stopped
networks:
proxynet:
external: true
# backend:
# container_name: backend
# build: ./backend
# ports:
# - "7001:7001"
#volumes:
# - ./backend:/bikelane-backend
# restart: unless-stopped

View File

@@ -9,4 +9,4 @@ COPY . .
EXPOSE 7002
CMD ["npm", "start"]
CMD ["npm", "run", "dev"]

View File

@@ -64,7 +64,7 @@ const ChangeAPI: React.FC<Props> = ({ currentAPIKey, onClose }) => {
/>
</div>
<button
type="button"
type="submit"
className="bg-gradient-to-r from-blue-600 to-blue-400 text-white font-bold px-6 py-3 rounded-xl shadow-lg hover:from-blue-700 hover:to-blue-500 transition-all"
onClick={handleUpdate}
>

View File

@@ -24,7 +24,9 @@ const WeatherData: React.FC = () => {
? "°C"
: localStorage.getItem("unit") === "imperial"
? "°F"
: "K"}
: localStorage.getItem("unit") === "standard"
? "K"
: "°C"}
</p>
<p className="flex items-center justify-center gap-2">
{weatherData?.sys?.country && (