10 changed files with 125 additions and 79 deletions
@ -1,21 +1,28 @@ |
|||||
extends ../layouts/main |
extends ../layouts/focused |
||||
block content |
block content |
||||
|
|
||||
section.uk-section.uk-section-default |
section.uk-section.uk-section-default |
||||
.uk-container |
.uk-container |
||||
.uk-margin-large |
|
||||
h1.uk-text-center Select Community |
|
||||
p.uk-text-center #{site.name} is connected with the following Core Communities. |
|
||||
|
|
||||
div(uk-grid).uk-flex-center |
.uk-card.uk-card-default |
||||
|
.uk-card-header |
||||
|
h1.uk-card-title Select Community |
||||
|
|
||||
|
.uk-card-body |
||||
|
div(uk-grid).uk-grid-small |
||||
each core in connectedCores |
each core in connectedCores |
||||
div(class="uk-width-1-1 uk-width-1-2@m uk-width-1-3@l") |
div(class="uk-width-1-1 uk-width-1-2@m uk-width-1-3@xl") |
||||
//- pre= JSON.stringify(connectedCores, null, 2) |
//- pre= JSON.stringify(connectedCores, null, 2) |
||||
a(href=`/auth/core/${core._id}`).uk-display-block.uk-link-text |
a(href=`/auth/core/${core._id}`).uk-display-block.uk-link-reset |
||||
.uk-tile.uk-tile-default.uk-padding-small.uk-border-small |
.dtp-core-list-item.uk-border-rounded |
||||
div(uk-grid).uk-grid-small.uk-flex-middle |
div(uk-grid).uk-grid-small.uk-flex-middle |
||||
.uk-width-auto |
.uk-width-auto |
||||
img(src=`http://${core.meta.domain}/img/icon/dtp-core.svg`, style="width: 48px; height: auto;") |
img(src=`http://${core.meta.domain}/img/icon/dtp-core.svg`, style="width: 48px; height: auto;") |
||||
.uk-width-expand |
.uk-width-expand |
||||
h4.uk-margin-remove= core.meta.name |
.core-name= core.meta.name |
||||
.uk-text-small.uk-text-muted= core.meta.description |
.core-description= core.meta.description |
||||
|
|
||||
|
.uk-card-footer |
||||
|
div(uk-grid).uk-grid-small |
||||
|
.uk-width-expand |
||||
|
+renderBackButton() |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
@ -0,0 +1,25 @@ |
|||||
|
.dtp-core-list-item { |
||||
|
padding: 16px; |
||||
|
border: solid 1px @global-color; |
||||
|
|
||||
|
transition: background 0.3s; |
||||
|
|
||||
|
&:hover { |
||||
|
background: rgb(178, 238, 178); |
||||
|
|
||||
|
.core-name, .core-description { |
||||
|
color: @global-color; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.core-name { |
||||
|
color: @global-color; |
||||
|
font-size: 1.1em; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
.core-description { |
||||
|
color: @global-muted-color; |
||||
|
font-size: 0.85em; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue