diff --git a/frontend/src/app/components/location-card/location-card.component.html b/frontend/src/app/components/location-card/location-card.component.html index 68ddd24..71b49c3 100644 --- a/frontend/src/app/components/location-card/location-card.component.html +++ b/frontend/src/app/components/location-card/location-card.component.html @@ -1,11 +1,11 @@ -
+ [ngClass]="{'shadow-none border-blue-500 text-white' : isSelected}"> -
+

{{ location.name }} -

+
@@ -20,7 +20,7 @@ --> {{ location.type }}

- {{ location.description | slice:0:100 }}... + {{ location.description | slice:0:300 }}

diff --git a/frontend/src/app/components/location-card/location-card.component.scss b/frontend/src/app/components/location-card/location-card.component.scss index a3e99ad..62a1409 100644 --- a/frontend/src/app/components/location-card/location-card.component.scss +++ b/frontend/src/app/components/location-card/location-card.component.scss @@ -1,8 +1,13 @@ .location-list { font-size: 10px; + h3 { + font-size: 14px; + font-weight: bold; + color: #434343; + } .location-detail { .description { - line-height: 1; + line-height: 1.3; } .location-type { font-weight: bold; diff --git a/frontend/src/app/home/pages/home/home.component.ts b/frontend/src/app/home/pages/home/home.component.ts index 3f426a5..adc5956 100644 --- a/frontend/src/app/home/pages/home/home.component.ts +++ b/frontend/src/app/home/pages/home/home.component.ts @@ -4,6 +4,7 @@ import { RouterLink } from '@angular/router'; import { ItemListComponent } from 'src/app/components/item-list/item-list.component'; import { Location } from 'src/app/shared/models/location.model'; import { LocationService } from 'src/app/shared/services/location.service'; +import { Title, Meta } from '@angular/platform-browser'; @Component({ selector: 'app-home', @@ -14,8 +15,14 @@ import { LocationService } from 'src/app/shared/services/location.service'; }) export class HomeComponent implements OnInit { locations: Location[] = []; - constructor(private locationService: LocationService) {} - + constructor(private locationService: LocationService, private title: Title, private meta: Meta) { + this.title.setTitle('Početna - Dobro došli'); + this.meta.addTags([ + { name: 'description', content: 'Sve informacije na jednom mjestu o izletištu Smetovi kod Zenice' }, + { name: 'keywords', content: 'Smetovi, Izletište, Zenica, Snijeg' } + ]); + } + ngOnInit() { this.locationService.getLocations().subscribe(data => { this.locations = data.locations; // Assuming 'locations' is the key in your JSON diff --git a/frontend/src/app/home/pages/location/location.component.html b/frontend/src/app/home/pages/location/location.component.html index bffe513..15859d6 100644 --- a/frontend/src/app/home/pages/location/location.component.html +++ b/frontend/src/app/home/pages/location/location.component.html @@ -1,6 +1,6 @@
-
+