mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 01:10:40 +01:00
up
This commit is contained in:
@@ -41,29 +41,29 @@ useSeoMeta({
|
|||||||
|
|
||||||
<UPageBody class="!my-0 !py-0 border-y border-default">
|
<UPageBody class="!my-0 !py-0 border-y border-default">
|
||||||
<UContainer>
|
<UContainer>
|
||||||
<UBlogPosts orientation="vertical" class="!gap-0">
|
<UBlogPosts orientation="vertical" class="border-x border-default !gap-0">
|
||||||
<div
|
<Motion
|
||||||
v-for="article in posts"
|
v-for="(post, index) in posts"
|
||||||
:key="article.path"
|
:key="index"
|
||||||
|
:initial="{ opacity: 0, transform: 'translateY(10px)' }"
|
||||||
|
:while-in-view="{ opacity: 1, transform: 'translateY(0)' }"
|
||||||
|
:transition="{ delay: 0.2 * index }"
|
||||||
|
:in-view-options="{ once: true }"
|
||||||
class="group"
|
class="group"
|
||||||
>
|
>
|
||||||
<UBlogPost
|
<UBlogPost
|
||||||
:to="article.path"
|
variant="naked"
|
||||||
:title="article.title"
|
|
||||||
:description="article.description"
|
|
||||||
:image="{
|
|
||||||
src: article.image,
|
|
||||||
width: 437,
|
|
||||||
height: 246,
|
|
||||||
alt: `${article.title} image`
|
|
||||||
}"
|
|
||||||
:authors="article.authors?.map(author => ({ ...author, avatar: { ...author.avatar, alt: `${author.name} avatar` } }))"
|
|
||||||
:badge="{ label: article.category, color: 'primary', variant: 'subtle' }"
|
|
||||||
orientation="horizontal"
|
orientation="horizontal"
|
||||||
class="ring-0 border group-first:border-t-0 group-last:border-b-0 border-default rounded-none"
|
:to="post.path"
|
||||||
|
v-bind="post"
|
||||||
|
:ui="{
|
||||||
|
root: 'md:grid md:grid-cols-2 group overflow-visible transition-all duration-300',
|
||||||
|
image: 'rounded-lg group-hover/blog-post:scale-none shadow-lg border-4 border-muted ring-2 ring-default',
|
||||||
|
header: 'scale-90 md:scale-85 lg:scale-80 overflow-visible'
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
<div class="h-6 bg-muted/20 group-last:hidden border-x border-default" />
|
<div class="group-last:hidden border-b border-default" />
|
||||||
</div>
|
</Motion>
|
||||||
</UBlogPosts>
|
</UBlogPosts>
|
||||||
</UContainer>
|
</UContainer>
|
||||||
</UPageBody>
|
</UPageBody>
|
||||||
|
|||||||
Reference in New Issue
Block a user