From f98a5c58c830a283d07d8efad4502281a5e0369e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 28 Jun 2024 14:22:27 +0200 Subject: Update --- tpl/views/card.pug | 45 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 7 deletions(-) (limited to 'tpl/views/card.pug') diff --git a/tpl/views/card.pug b/tpl/views/card.pug index 6858867..e466cdc 100644 --- a/tpl/views/card.pug +++ b/tpl/views/card.pug @@ -1,23 +1,54 @@ mixin view-card +view('card', 'Card') - .c-box(style={ display: 'flex', 'flex-direction': 'column', gap: '1em' }) + .c-box(style={ display: 'flex', 'flex-direction': 'column', gap: '2em' }) +card(href='#') - +card-image(src='Drawing_Half.png') + +card-image(src='Drawing_Half.png' style={ 'aspect-ratio': '21 / 9' }) +card-avatar(src='avatar.png') +card-body +card-title= 'XS Heading' - +card-content= loremIpsum + +card-content + p= loremIpsum + p= loremIpsum +card-footer = 'Footer' - +card(href='#') + +card +card-body .l-media +avatar(class='l-media__block' src='avatar.png') .l-media__block.l-media__block--main strong.u-d-block= 'Volpeon' small.u-d-block= '@volpeon@is-a.wyvern.rip' - +card-content= loremIpsum - +card-image(src='Drawing_Half.png') + +card-content + p= loremIpsum + p= loremIpsum + +card-image(src='Drawing_Half.png' style={ 'aspect-ratio': '16 / 9' }) +card-body - = 'Footer' + .l-media + .l-media__block + +badge('positive')(quiet=true icon='repeat' href='#') + +icon('repeat') + strong.u-mis-50= '12' + .l-media__block + +badge('warning')(quiet=true icon='star' href='#') + +icon('star') + strong.u-mis-50= '34' + .l-media__block.u-mis-auto + +a-button(primary=true)= 'Reply' + + +card(quiet=true href='#') + +card-image(src='Drawing_Half.png' style={ 'aspect-ratio': '21 / 9' }) + +card-body + +card-title= 'XS Heading' + +card-content + p= loremIpsum + p= loremIpsum + + +divider('faint') + + .l-card-list.l-card-list--masonry + each img in ['Drawing_Half.png', '0000 Cover@0.5x.webp', 'avatar.png', '01 Design Cody.png', 'avatar.png', 'Drawing_Half.png'] + +card(href='#' class='l-card-list__card') + +card-image(src=img) + +card-body + +card-title= 'XS Heading' -- cgit v1.2.3-70-g09d2