mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 16:51:15 +10:00
feat(carousel ui): add aden's carousel pagination design
This commit is contained in:
@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-row flex-wrap gap-3 justify-center">
|
<div class="flex flex-row flex-wrap gap-2 justify-center">
|
||||||
<button
|
<button
|
||||||
v-for="(_, i) in amount"
|
v-for="(_, i) in amount"
|
||||||
@click="() => slideTo(i)"
|
@click="() => slideTo(i)"
|
||||||
:class="[
|
:class="[
|
||||||
currentSlide == i ? 'bg-zinc-300' : 'bg-zinc-700',
|
currentSlide == i ? 'bg-blue-600 w-6' : 'bg-zinc-700 w-3',
|
||||||
'cursor-pointer w-4 h-2 rounded-full',
|
'transition-all cursor-pointer h-2 rounded-full',
|
||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Submodule drop-base updated: 1694de4e89...01fd41c65a
@ -12,4 +12,4 @@ generator client {
|
|||||||
datasource db {
|
datasource db {
|
||||||
provider = "postgresql"
|
provider = "postgresql"
|
||||||
url = env("DATABASE_URL")
|
url = env("DATABASE_URL")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user