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 ## Version
Currently hosted version: **1.0.0** Currently hosted version: **1.0.1**

View File

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

View File

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

View File

@@ -64,7 +64,7 @@ const ChangeAPI: React.FC<Props> = ({ currentAPIKey, onClose }) => {
/> />
</div> </div>
<button <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" 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} onClick={handleUpdate}
> >

View File

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