-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e076ca
commit 50efcd7
Showing
51 changed files
with
3,079 additions
and
1,392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
<template> | ||
<div class="card border-0 mb-4 box-shadow h-xl-300"> | ||
<div :style="{backgroundImage: `url(${coverUrl})`, height: '150px', backgroundSize: 'cover', backgroundRepeat: 'no-repeat'}"></div> | ||
<div class="card-body px-0 pb-0 d-flex flex-column align-items-start"> | ||
<h2 class="h4 fw-bold"> | ||
<a class="text-dark" :href="href">{{ title }}</a> | ||
</h2> | ||
<p class="card-text">{{ excerpt }}</p> | ||
<div> | ||
<small class="d-block"> | ||
<a class="text-muted" href="#">Favid Rick</a> | ||
</small> | ||
<time :datetime="publishedAt" class="text-muted small">{{ useTime().toAgo(publishedAt) }}</time> | ||
</div> | ||
</div> | ||
<div class="card border-0 mb-4 box-shadow h-xl-300"> | ||
<div | ||
:style="{backgroundImage: `url(${coverUrl})`, height: '150px', backgroundSize: 'cover', backgroundRepeat: 'no-repeat'}"></div> | ||
<div class="card-body px-0 pb-0 d-flex flex-column align-items-start"> | ||
<h2 class="h4 fw-bold"> | ||
<a class="text-dark" :href="href">{{ title }}</a> | ||
</h2> | ||
<p class="card-text">{{ excerpt }}</p> | ||
<div> | ||
<small class="d-block"> | ||
<a class="text-muted" href="#">Favid Rick</a> | ||
</small> | ||
<time :datetime="publishedAt" class="text-muted small">{{ useTime().toAgo(publishedAt) }}</time> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
const props = defineProps(["cover", "href", "title", "excerpt", "publishedAt"]) | ||
const {cover, href, title, excerpt, publishedAt} = props | ||
const coverUrl = cover ? useFilesUrlResolver().resolve(cover) : null | ||
const props = defineProps(["cover", "href", "title", "excerpt", "publishedAt"]) | ||
const {cover, href, title, excerpt, publishedAt} = props | ||
const coverUrl = cover ? useFilesUrlResolver().resolve(cover) : null | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<template> | ||
<ol class="list-featured"> | ||
<slot></slot> | ||
</ol> | ||
<ol class="list-featured"> | ||
<slot></slot> | ||
</ol> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<template> | ||
<li> | ||
<div class="py-1"> | ||
<h6 class="fw-bold"> | ||
<a :href="href" class="text-dark">{{ title }}</a> | ||
</h6> | ||
<div v-if="tags" class="card-text"> | ||
<a class="hashtag" :href="`/hashtags/${tag}`" v-for="(tag , index) in tags" :key="index">{{ tag }}</a> | ||
</div> | ||
</div> | ||
</li> | ||
<li> | ||
<div class="py-1"> | ||
<h6 class="fw-bold"> | ||
<a :href="href" class="text-dark">{{ title }}</a> | ||
</h6> | ||
<div v-if="tags" class="card-text"> | ||
<a class="hashtag" :href="`/hashtags/${tag}`" v-for="(tag , index) in tags" :key="index">{{ tag }}</a> | ||
</div> | ||
</div> | ||
</li> | ||
</template> | ||
|
||
<script setup> | ||
const props = defineProps(["href", "title", "tags", "publishedAt"]) | ||
const {href, title, tags, publishedAt} = props | ||
const props = defineProps(["href", "title", "tags", "publishedAt"]) | ||
const {href, title, tags, publishedAt} = props | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<template> | ||
<div class="mb-3 d-flex gap-3 align-items-center"> | ||
<img :style="{height: '100px'}" :src="resolveFileUrl(cover)"> | ||
<div> | ||
<h2 class="mb-2 h6 fw-bold"> | ||
<a class="text-dark" :href="href">{{ title }}</a> | ||
</h2> | ||
<div class="card-text text-muted small">{{ excerpt }}</div> | ||
<time :datetime="publishedAt" class="text-muted small">{{ useTime().toAgo(publishedAt) }}</time> | ||
</div> | ||
<div class="mb-3 d-flex gap-3 align-items-center"> | ||
<img :style="{height: '100px'}" :src="resolveFileUrl(cover)"> | ||
<div> | ||
<h2 class="mb-2 h6 fw-bold"> | ||
<a class="text-dark" :href="href">{{ title }}</a> | ||
</h2> | ||
<div class="card-text text-muted small">{{ excerpt }}</div> | ||
<time :datetime="publishedAt" class="text-muted small">{{ useTime().toAgo(publishedAt) }}</time> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
const props = defineProps(["cover", "href", "title", "excerpt", "publishedAt"]) | ||
const resolveFileUrl = useFilesUrlResolver().resolve | ||
const {cover, href, title, excerpt, publishedAt} = props | ||
const props = defineProps(["cover", "href", "title", "excerpt", "publishedAt"]) | ||
const resolveFileUrl = useFilesUrlResolver().resolve | ||
const {cover, href, title, excerpt, publishedAt} = props | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.