diff --git a/package-lock.json b/package-lock.json index 0fc581a..ad5eb71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "@angular/platform-browser-dynamic": "^17.3.0", "@angular/router": "^17.3.0", "@types/jwt-decode": "^3.1.0", + "angular-animations": "^0.11.0", "bootstrap": "^3.4.1", "jwt-decode": "^4.0.0", "rxjs": "~7.8.0", @@ -4047,6 +4048,17 @@ "ajv": "^8.8.2" } }, + "node_modules/angular-animations": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/angular-animations/-/angular-animations-0.11.0.tgz", + "integrity": "sha512-P2RuOe+T97bhgGDLtOYK9V45QA5y+kFUxoJfRAua8Ymo0bI5lWyw8oiVmBoEIZUU+nooYoJvQXgVKuZJA7/z3g==", + "dependencies": { + "tslib": "^2.0.0" + }, + "peerDependencies": { + "@angular/animations": ">=6.0.0" + } + }, "node_modules/ansi-colors": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", diff --git a/package.json b/package.json index 0290854..ffabc79 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@angular/platform-browser-dynamic": "^17.3.0", "@angular/router": "^17.3.0", "@types/jwt-decode": "^3.1.0", + "angular-animations": "^0.11.0", "bootstrap": "^3.4.1", "jwt-decode": "^4.0.0", "rxjs": "~7.8.0", diff --git a/src/app/map-location/map-location-info-window/map-location-info-window.component.css b/src/app/map-location/map-location-info-window/map-location-info-window.component.css index 88857a1..2c2d8da 100644 --- a/src/app/map-location/map-location-info-window/map-location-info-window.component.css +++ b/src/app/map-location/map-location-info-window/map-location-info-window.component.css @@ -13,15 +13,20 @@ display: flex; flex-direction: column; justify-content: center; - align-items: center; position: absolute; top: 120px; left: 10px; - background-color: rgba(4, 97, 105, 0.5); + background-color: rgba(4, 97, 105, 0.7); color: white; width: 60px; height: 60px; - font-size: 30px; + font-size: 28px; +} + +.details-button > * { + align-self: center; + margin-top: 0; + margin-bottom: 0; } .details-button:hover { diff --git a/src/app/map-location/map-location-info-window/map-location-info-window.component.html b/src/app/map-location/map-location-info-window/map-location-info-window.component.html index c2486e5..940cd3b 100644 --- a/src/app/map-location/map-location-info-window/map-location-info-window.component.html +++ b/src/app/map-location/map-location-info-window/map-location-info-window.component.html @@ -1,6 +1,6 @@
details
{{route.description}}
diff --git a/src/app/route/route-info/route-info.component.css b/src/app/route/route-info/route-info.component.css index db91755..aa372c6 100644 --- a/src/app/route/route-info/route-info.component.css +++ b/src/app/route/route-info/route-info.component.css @@ -14,7 +14,7 @@ .route-button { height: 30px; - width: 30px; + width: auto; background-color: white; color: #10898d; margin-left: 10px; @@ -24,9 +24,17 @@ align-items: center; } +.route-button > p { + margin-left: 5px; + align-self: center; + margin-top: 0; + margin-bottom: 0; + font-size: 1.5rem; +} + .background-animation { animation: background-change 1s infinite; - animation-duration: 1s; + animation-duration: 1.5s; } @keyframes background-change { @@ -46,12 +54,13 @@ @media (max-width: 900px) { - * { - font-size: 1rem; - } - .route-button { height: 20px; - width: 20px; + font-size: 1.5rem; } + + .route-button > p { + font-size: 1rem; + } + } diff --git a/src/app/route/route-info/route-info.component.html b/src/app/route/route-info/route-info.component.html index 1ecf34a..f676914 100644 --- a/src/app/route/route-info/route-info.component.html +++ b/src/app/route/route-info/route-info.component.html @@ -1,4 +1,7 @@ -ID: {{ user.id }}
-Login: {{ user.login }}
+