-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update all blog links and create blogentry component
- Loading branch information
Showing
5 changed files
with
76 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<script setup> | ||
defineProps({ | ||
title: { | ||
type: String, | ||
required: true, | ||
}, | ||
blogPath: { | ||
type: String, | ||
required: true, | ||
}, | ||
imagePath: { | ||
type: String, | ||
required: true, | ||
}, | ||
date: { | ||
type: String, | ||
required: true, | ||
}, | ||
}); | ||
</script> | ||
<template> | ||
<div class="prose prose-red"> | ||
<h3 class="peer inline-block mt-0"> | ||
<NuxtLink :to="blogPath">{{ title }}</NuxtLink> | ||
</h3> | ||
|
||
<div class="flex gap-4 items-stretch not-prose rounded-l-xl overflow-hidden peer-hover:rounded-l-none transition-all"> | ||
<img :src="imagePath" class="object-cover max-w-[20%]" /> | ||
<p> | ||
<slot name="default" /> | ||
</p> | ||
</div> | ||
|
||
<div class="flex items-center not-prose mt-[0.6rem]"> | ||
<p class="text-xs"> | ||
<strong>{{ date }}</strong> | ||
</p> | ||
</div> | ||
</div> | ||
</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
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