Skip to content

Commit

Permalink
ADDED: file- and link-list components for news-details
Browse files Browse the repository at this point in the history
  • Loading branch information
sd-ditoy committed Apr 10, 2024
1 parent cbe723a commit 0c615b6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/blocks/FileList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default {
padding-top: 24px;
padding-bottom: 24px;
border-bottom: 1px solid #ccc;
margin: initial;
&:last-child {
border-bottom: 0;
Expand Down
1 change: 1 addition & 0 deletions src/components/blocks/LinkList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export default {
padding-top: 24px;
padding-bottom: 24px;
border-bottom: 1px solid #ccc;
margin: initial;
&:last-child {
border-bottom: 0;
Expand Down
10 changes: 10 additions & 0 deletions src/views/news/detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
<Glider :glide-data="block.media"></Glider>
</div>
</div>
<div class="container block" v-if="block.blocktype === 'linklist'">
<LinkList
:block-data="block"
></LinkList>
</div>
<div class="container block" v-if="block.blocktype === 'filelist'">
<FileList
:block-data="block"
></FileList>
</div>
<div class="container block" v-if="block.blocktype === 'video'">
<div class="half-carousel">
<VideoPlayer
Expand Down

0 comments on commit 0c615b6

Please sign in to comment.