Rob Colbert
5 months ago
12 changed files with 470 additions and 1 deletions
@ -0,0 +1,16 @@ |
|||
mixin renderKioskCarouselFeedEntry (entry) |
|||
.uk-panel |
|||
img(src= `/newsroom/kiosk/${entry.feed._id}/article/${entry._id}/image`).feed-entry-image |
|||
.feed-entry-summary.uk-position-bottom |
|||
.feed-entry-title.uk-text-truncate= entry.title |
|||
.feed-entry-description.uk-margin-small!= marked.parse(entry.description) |
|||
.uk-text-small.uk-text-muted= moment(entry.published).format('MMMM D, YYYY [at] h:mm a') |
|||
|
|||
mixin renderKioskFeedCarousel (entries) |
|||
div(tabindex="-1", uk-slider="center: true; autoplay: true;").uk-position-relative.uk-visible-toggle.uk-light |
|||
ul.uk-slider-items.uk-grid |
|||
each entry in entries |
|||
li.uk-width-4-5 |
|||
+renderKioskCarouselFeedEntry(entry) |
|||
a(href, uk-slidenav-previous, uk-slider-item="previous").uk-position-center-left.uk-position-small.uk-hidden-hover |
|||
a(href, uk-slidenav-next, uk-slider-item="next").uk-position-center-right.uk-position-small.uk-hidden-hover |
@ -0,0 +1,16 @@ |
|||
extends ../layouts/kiosk |
|||
block kiosk-content |
|||
|
|||
include ../components/kiosk-carousel |
|||
|
|||
.feed-header.uk-margin |
|||
div(uk-grid).uk-flex-bottom |
|||
.uk-width-expand |
|||
h1.uk-margin-remove= feed.title |
|||
div(class={ 'uk-text-muted': !feed.description }).uk-text-small= feed.description || `A news feed curated by ${site.name}` |
|||
.uk-width-auto |
|||
label.uk-form-label Last updated |
|||
.uk-text-bold= moment(feed.published).format('MMM D [at] h:mm a') |
|||
|
|||
.feed-content.uk-margin-medium |
|||
+renderKioskFeedCarousel(entries.entries) |
@ -0,0 +1,16 @@ |
|||
extends ../layouts/kiosk |
|||
block kiosk-content |
|||
|
|||
include ../components/kiosk-carousel |
|||
|
|||
.feed-header |
|||
div(uk-grid).uk-flex-middle |
|||
.uk-width-expand |
|||
h1.uk-margin-remove #{site.name} Unified Feed |
|||
.uk-text-small A blend of articles from the Unified feed. |
|||
.uk-width-auto |
|||
label.uk-form-label.sr-only Today's Date |
|||
.uk-text-bold= moment().format('MMMM D, YYYY') |
|||
|
|||
.feed-content.uk-margin-medium |
|||
+renderKioskFeedCarousel(entries.entries) |
@ -0,0 +1,62 @@ |
|||
extends ../../layouts/focused |
|||
block content |
|||
|
|||
include ../../components/pagination-bar |
|||
|
|||
section.uk-section.uk-section-default.uk-section-small.dtp-kiosk |
|||
.uk-container.uk-container-expand |
|||
|
|||
div(uk-grid) |
|||
div(class="uk-visible@s").uk-width-1-5.kiosk-sidebar |
|||
div(uk-grid).uk-grid-small.uk-flex-middle.sidebar-header |
|||
.uk-width-expand |
|||
.header-site= site.name |
|||
.header-title Newsroom |
|||
.uk-width-auto |
|||
img(src=`/img/icon/${site.domainKey}/icon-72x72.png`) |
|||
|
|||
ul.uk-list.sidebar-feed-list |
|||
li |
|||
div(class={ 'item-active': !feed }).feed-list-item |
|||
a(href='/newsroom/kiosk') |
|||
div(uk-grid).uk-grid-small.uk-flex-middle |
|||
div(class="uk-visible@s").uk-width-auto |
|||
span |
|||
i.fas.fa-home |
|||
.uk-width-expand |
|||
.uk-text-bold.uk-text-truncate Unified Feed |
|||
|
|||
li |
|||
|
|||
if feedList && Array.isArray(feedList.feeds) && (feedList.feeds.length > 0) |
|||
each feedItem in feedList.feeds |
|||
li |
|||
div(, class={ 'item-active': (feed && feed._id.equals(feedItem._id)) }).feed-list-item |
|||
a(href=`/newsroom/kiosk/${feedItem._id}`) |
|||
div(uk-grid).uk-grid-small.uk-flex-middle |
|||
div(class="uk-visible@s").uk-width-auto |
|||
img(src= feedItem.favicons[0]).feed-icon |
|||
.uk-width-expand |
|||
.uk-text-bold.uk-text-truncate= feedItem.title |
|||
.uk-width-auto |
|||
.uk-text-small.uk-text-muted= moment(feedItem.published).format('h:mm a') |
|||
|
|||
div(class="uk-width-1-1 uk-width-expand@s").kiosk-content |
|||
block kiosk-content |
|||
|
|||
if entries && Array.isArray(entries.entries) && (entries.entries.length > 0) |
|||
div(class="uk-width-1-1 uk-width-1-5@s").kiosk-sidebar |
|||
ul.uk-list.sidebar-feed-list |
|||
each entry of entries.entries |
|||
li |
|||
.feed-entry |
|||
a(href=`/newsroom/kiosk/${entry.feed._id}/article/${entry._id}`) |
|||
div(uk-grid).uk-grid-small |
|||
.uk-width-expand |
|||
.uk-text-bold.uk-text-truncate= entry.title |
|||
a(href=`/newsroom/kiosk/${entry.feed._id}`) |
|||
.uk-flex.uk-flex-middle |
|||
div(class="uk-visible@s").uk-width-auto |
|||
img(src= entry.feed.favicons[0]).feed-icon |
|||
.uk-width-expand |
|||
.uk-text-truncate= entry.feed.title |
After Width: | Height: | Size: 14 KiB |
@ -0,0 +1,167 @@ |
|||
.dtp-kiosk { |
|||
|
|||
.kiosk-sidebar { |
|||
|
|||
.sidebar-header { |
|||
font-weight: bold; |
|||
|
|||
.header-site { |
|||
font-size: 18px; |
|||
line-height: 1; |
|||
} |
|||
|
|||
.header-title { |
|||
font-size: 42px; |
|||
line-height: 1; |
|||
} |
|||
} |
|||
|
|||
.sidebar-feed-list { |
|||
|
|||
li .feed-list-item, |
|||
li .feed-entry { |
|||
|
|||
padding: 4px 8px; |
|||
display: block; |
|||
background: #1a1a1a; |
|||
overflow: hidden; |
|||
|
|||
border: solid 1px; |
|||
border-top-left-radius: 6px; |
|||
border-bottom-left-radius: 6px; |
|||
border-right: none; |
|||
border-color: transparent; |
|||
|
|||
transition: background 0.5s; |
|||
|
|||
&.item-active { |
|||
background: rgb(0,0,0); |
|||
background: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(70,5,5,0.9528186274509804) 48%, rgba(121,9,9,1) 83%, rgba(255,0,19,1) 100%); |
|||
|
|||
border-color: #c8c8c8; |
|||
|
|||
img.feed-icon { |
|||
border-color: #c8c8c8; |
|||
} |
|||
} |
|||
|
|||
a { |
|||
color: inherit; |
|||
text-decoration: none; |
|||
} |
|||
|
|||
&:hover { |
|||
background: rgb(0,0,0); |
|||
background: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgb(133, 133, 133) 100%); |
|||
color: inherit; |
|||
text-decoration: inherit; |
|||
|
|||
border-color: #808080; |
|||
|
|||
img.feed-icon { |
|||
border-color: #c8c8c8; |
|||
} |
|||
} |
|||
|
|||
&:active { |
|||
background: rgb(0,0,0); |
|||
background: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgb(90, 36, 36) 100%); |
|||
color: inherit; |
|||
text-decoration: inherit; |
|||
|
|||
border-color: #808080; |
|||
|
|||
img.feed-icon { |
|||
border-color: #c8c8c8; |
|||
} |
|||
} |
|||
} |
|||
|
|||
li .feed-list-item { |
|||
|
|||
img.feed-icon { |
|||
box-sizing: border-box; |
|||
display: block; |
|||
width: 24px; |
|||
height: 24px; |
|||
|
|||
background: rgba(0,0,0, 0.8); |
|||
border: solid 1px; |
|||
border-color: transparent; |
|||
|
|||
object-fit: cover; |
|||
object-position: center center; |
|||
} |
|||
|
|||
a { |
|||
font-size: 24px; |
|||
-webkit-text-stroke-width: 0.25px; |
|||
-webkit-text-stroke-color: black; |
|||
color: #e8e8e8; |
|||
text-decoration: none; |
|||
} |
|||
} |
|||
|
|||
li .feed-entry { |
|||
margin-left: @global-small-gutter; |
|||
|
|||
img.feed-icon { |
|||
box-sizing: border-box; |
|||
display: block; |
|||
width: 16px; |
|||
height: 16px; |
|||
margin-right: 4px; |
|||
|
|||
background: rgba(0,0,0, 0.8); |
|||
border: solid 1px; |
|||
border-color: transparent; |
|||
|
|||
object-fit: cover; |
|||
object-position: center center; |
|||
} |
|||
|
|||
a { |
|||
font-size: 16px; |
|||
-webkit-text-stroke-width: 0.25px; |
|||
-webkit-text-stroke-color: black; |
|||
color: #e8e8e8; |
|||
text-decoration: none; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
.kiosk-content { |
|||
|
|||
.feed-entry-image { |
|||
width: 100%; |
|||
aspect-ratio: 16 / 9; |
|||
object-position: center; |
|||
object-fit: cover; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.feed-entry-summary { |
|||
padding: 8px 16px; |
|||
margin: 8px; |
|||
background-color: rgba(0,0,0, 0.75); |
|||
color: #ffffff; |
|||
|
|||
.feed-entry-title { |
|||
font-size: 32px; |
|||
line-height: 1; |
|||
color: inherit; |
|||
} |
|||
|
|||
.feed-entry-description { |
|||
font-size: 16px; |
|||
line-height: 1.2em; |
|||
color: inherit; |
|||
|
|||
:last-child { |
|||
margin-bottom: 0; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue