-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from rotirk20/development
Added data for presentation and final changes for first public version
- Loading branch information
Showing
13 changed files
with
88 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 23 additions & 12 deletions
35
frontend/src/app/components/location-card/location-card.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
<div class="w-full max-w-5xl mx-auto rounded-xl p-4 sm:flex sm:items-center sm:space-x-6 shadow-md hover:shadow-sm transition-shadow duration-300 mb-4 bg-white cursor-pointer" (click)="onSelectLocation()" [ngClass]="{'shadow-none border-l-8 border-blue-500 text-white' : isSelected}"> | ||
<img class="block mx-auto h-16 w-16 object-cover rounded-full sm:mx-0 sm:flex-shrink-0" [src]="location.image" alt=""> | ||
<div class="text-center space-y-2 sm:text-left"> | ||
<div class="space-y-0.5"> | ||
<p class="text-lg text-black font-semibold"> | ||
{{ location.name }} | ||
<div class="w-full max-w-5xl mx-auto rounded-xl p-4 shadow-md hover:shadow-sm transition-shadow border-l-6 border-white-500 duration-300 mb-4 bg-white cursor-pointer location-list" | ||
(click)="onSelectLocation()" | ||
[ngClass]="{'shadow-none border-blue-500 text-white' : isSelected}"> | ||
|
||
<!-- Title --> | ||
<h3 class="font-semibold mb-2 uppercase"> | ||
{{ location.name }} | ||
</h3> | ||
|
||
<!-- Content Container --> | ||
<div class="sm:flex sm:space-x-6"> | ||
<!-- Image --> | ||
<img class="block h-32 w-32 object-cover rounded-md sm:mx-0 sm:flex-shrink-0" | ||
[src]="location.image" alt="{{ location.name }}"> | ||
|
||
<!-- Description and Type --> | ||
<div class="space-y-2 flex-1 location-detail mt-2 sm:mt-0"> | ||
<!-- <span class="text-gray-600 text-slate-500 tracking-widest location-type"> | ||
{{ location.type }} | ||
</span> --> | ||
<span class="inline-flex items-center bg-gray-50 px-1 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10 tracking-widest location-type">{{ location.type }}</span> | ||
<p class="text-gray-600 text-sm text-slate-500 description"> | ||
{{ location.description | slice:0:300 }} | ||
</p> | ||
<p class="text-gray-500 text-sm text-slate-500 truncate"> | ||
{{ location.address }} | ||
</p> | ||
<!-- <p class="text-gray-600 text-sm text-slate-500 truncate"> | ||
Kategorija: {{ location.type }} | ||
</p> --> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.location-list { | ||
font-size: 10px; | ||
h3 { | ||
font-size: 14px; | ||
font-weight: bold; | ||
color: #434343; | ||
} | ||
.location-detail { | ||
.description { | ||
line-height: 1.3; | ||
} | ||
.location-type { | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
font-size: 10px; | ||
line-height: 1; | ||
} | ||
} | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
frontend/src/app/components/location-card/location-card.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
body { | ||
padding: 0; | ||
margin: 0; | ||
font-family: Poppins, sans-serif; | ||
} | ||
|
||
button, .button { | ||
|