[34070] Improve board creation modal (#8639)
* adding images to tile of each board * Add path helper to resolve images * improve the new board modal display * solve travis check errors * reduce additional unnecessary code Co-authored-by: Oliver Günther <mail@oliverguenther.de>pull/8664/head
parent
6881f3d347
commit
35da772864
@ -0,0 +1,18 @@ |
||||
export namespace ImageHelpers { |
||||
|
||||
/** |
||||
* Returns an absolute asset path from the assets/images/ folder |
||||
* |
||||
* e.g., to access: |
||||
* frontend/src/assets/images/board_creation_modal/assignees.svg |
||||
* |
||||
* use |
||||
* imagePath('board_creation_modal/assignees.svg') |
||||
* |
||||
* |
||||
* @param image Path to the image starting from frontend/src/assets/images |
||||
*/ |
||||
export function imagePath(image:string) { |
||||
return __webpack_public_path__ + 'assets/images/' + image; |
||||
} |
||||
} |
@ -1,14 +1,12 @@ |
||||
<div class="tile-blocks--container"> |
||||
<div class="tile-block button" |
||||
[disabled]="disabled()" |
||||
(accessibleClick)="created(tile.attribute)" |
||||
*ngFor="let tile of tiles"> |
||||
|
||||
<div class="row tile-block-header"> |
||||
<i class="tile-block--icon icon3" [ngClass]="tile.icon" aria-hidden="true"></i> |
||||
<span>{{ tile.text | titlecase}}</span> |
||||
</div> |
||||
|
||||
<p [textContent]="tile.description"></p> |
||||
<div class="tile-block button row" |
||||
[disabled]="disabled()" |
||||
(accessibleClick)="created(tile.attribute)" |
||||
*ngFor="let tile of tiles"> |
||||
<img [src]="tile.image" class="tile-block-image"/> |
||||
<div> |
||||
<span class="tile-block-title">{{ tile.text | titlecase}}</span> |
||||
<p class="tile-block-description" [textContent]="tile.description"></p> |
||||
</div> |
||||
</div> |
||||
</div> |
@ -1,32 +1,40 @@ |
||||
.tile-blocks--container |
||||
display: grid |
||||
grid-template: repeat(auto-fit, 220px) / repeat(auto-fit, 450px) |
||||
grid-auto-rows: 220px |
||||
grid-template: repeat(auto-fit, 200px) / repeat(auto-fit, 450px) |
||||
grid-auto-rows: 200px |
||||
grid-column-gap: 10px |
||||
grid-row-gap: 10px |
||||
min-width: 500px |
||||
margin: 5px |
||||
min-width: 910px |
||||
|
||||
|
||||
.tile-block |
||||
border-radius: 3px |
||||
border-radius: 10px |
||||
display: grid |
||||
grid-template: 95px 1fr / 1fr |
||||
grid-template-columns: auto 1fr auto |
||||
grid-template-rows: auto |
||||
grid-row-gap: 5px |
||||
justify-items: left |
||||
background: #f8f8f8 |
||||
background: #f7fafc |
||||
|
||||
&:hover |
||||
outline: 1px solid grey |
||||
text-decoration: none |
||||
border: 1px solid grey |
||||
border-radius: 10px !important |
||||
cursor: pointer |
||||
|
||||
.tile-block--icon |
||||
font-size: 50px |
||||
|
||||
.tile-block-header |
||||
padding-left: 10px |
||||
.tile-block-title |
||||
padding-top: 30px |
||||
color: var(--primary-color-dark) |
||||
display: flex |
||||
align-items: center |
||||
display: block |
||||
text-align: left |
||||
font-weight: bolder |
||||
|
||||
.tile-block p |
||||
text-align: left |
||||
text-align: left |
||||
width: 90% |
||||
|
||||
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.8 KiB |
Loading…
Reference in new issue