[frontend] Move hood page links into new css container

This commit is contained in:
Cathy Hu 2020-09-06 19:51:31 +02:00 committed by Maike
parent b941ffcd9d
commit 7633ab9a50
2 changed files with 42 additions and 22 deletions

View file

@ -6,27 +6,40 @@
supports each other. Kibicara hoods will support you by providing the
technology for your community to florish!
</p>
<div class="hoods-container">
<mat-selection-list [multiple]="false">
<div mat-subheader>Configure your hoods</div>
<mat-divider></mat-divider>
<a
*ngFor="let hood of hoods$ | async"
[routerLink]="['/dashboard/hoods', hood.id]"
target="_blank"
matTooltip="Edit settings of {{ hood.name }}"
>
<mat-list-option>
<div class="list-entry-container">
<mat-icon>settings</mat-icon>
<div class="list-entry">
Your Hood - <strong>{{ hood.name }}</strong>
<a [routerLink]="['/hoods', hood.id]">
<mat-icon class="list-entry-page">open_in_browser</mat-icon>
</a>
</div>
</div>
<mat-divider></mat-divider>
</mat-list-option>
</a>
</mat-selection-list>
<mat-list>
<div mat-subheader></div>
<mat-list-item *ngFor="let hood of hoods$ | async">
<a
[routerLink]="['/hoods', hood.id]"
matTooltip="View public page of hood {{ hood.name }}"
>
<mat-icon class="open-icon">open_in_new</mat-icon>
</a>
</mat-list-item>
</mat-list>
</div>
<button
mat-raised-button
color="primary"

View file

@ -63,7 +63,14 @@ p {
grid-template-columns: 30px 1fr;
}
.list-entry-page {
float: right;
.hoods-container {
display: grid;
grid-template-columns: 1fr 65px;
gap: 10px;
justify-items: stretch;
align-items: stretch;
}
.open-icon {
color: black;
}