2022-07-12 10:55:28 +02:00
< template >
< Story >
< Variant title = "Empty" >
< div class = "p-5" >
< GroupCard :group ="basicGroup" / >
< / div >
< / Variant >
< Variant title = "With media" >
< div class = "p-5" >
< GroupCard :group ="groupWithMedia" / >
< / div >
< / Variant >
< Variant title = "with followers or members" >
< div class = "p-5" >
< GroupCard :group ="groupWithFollowersOrMembers" / >
< / div >
< / Variant >
2022-08-26 16:08:58 +02:00
< Variant title = "Row mode" >
< GroupCard :group ="groupWithFollowersOrMembers" mode = "row" / >
< / Variant >
2022-07-12 10:55:28 +02:00
< / Story >
< / template >
< script lang = "ts" setup >
2022-08-26 16:08:58 +02:00
import { IGroup } from "@/types/actor" ;
2022-07-12 10:55:28 +02:00
import GroupCard from "./GroupCard.vue" ;
2022-08-26 16:08:58 +02:00
const basicGroup : IGroup = {
2022-07-12 10:55:28 +02:00
name : "Framasoft" ,
preferredUsername : "framasoft" ,
avatar : null ,
domain : "mobilizon.fr" ,
url : "" ,
summary : "" ,
suspended : false ,
members : { total : 0 , elements : [ ] } ,
followers : { total : 0 , elements : [ ] } ,
} ;
2022-08-26 16:08:58 +02:00
const groupWithMedia : IGroup = {
2022-07-12 10:55:28 +02:00
... basicGroup ,
banner : {
url : "https://mobilizon.fr/media/7b340fe641e7ad711ebb6f8821b5ce824992db08701e37ebb901c175436aaafc.jpg?name=framasoft%27s%20banner.jpg" ,
} ,
avatar : {
url : "https://mobilizon.fr/media/ff5b2d425fb73e17fcbb56a1a032359ee0b21453c11af59e103e783817a32fdf.png?name=framasoft%27s%20avatar.png" ,
} ,
} ;
2022-08-26 16:08:58 +02:00
const groupWithFollowersOrMembers : IGroup = {
2022-07-12 10:55:28 +02:00
... groupWithMedia ,
members : { total : 2 , elements : [ ] } ,
followers : { total : 5 , elements : [ ] } ,
2022-08-26 16:08:58 +02:00
summary :
"You can also use variant modifiers to target media queries like responsive breakpoints, dark mode, prefers-reduced-motion, and more. For example, use md:h-full to apply the h-full utility at only medium screen sizes and above." ,
physicalAddress : {
description : "Nantes" ,
} ,
2022-07-12 10:55:28 +02:00
} ;
< / script >