mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 16:51:38 +10:00
feat: dark mode
This commit is contained in:
@ -82,8 +82,6 @@ export const Carousel = () => {
|
||||
resetProgress();
|
||||
const autoplay = emblaApi.plugins()?.autoplay;
|
||||
|
||||
console.log(autoplay);
|
||||
|
||||
if (autoplay) {
|
||||
autoplay.reset();
|
||||
}
|
||||
@ -182,8 +180,8 @@ export const Carousel = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="absolute bottom-2 right-2 flex w-[5%] flex-col items-center space-y-1 rounded-lg bg-white p-1.5">
|
||||
<span className="text-foreground text-xs">
|
||||
<div className="dark:bg-background absolute bottom-2 right-2 flex w-[5%] flex-col items-center space-y-1 rounded-lg bg-white p-1.5">
|
||||
<span className="text-foreground dark:text-muted-foreground text-xs">
|
||||
{selectedIndex + 1}/{slides.length}
|
||||
</span>
|
||||
<Progress value={progress} className="h-1" />
|
||||
@ -191,7 +189,7 @@ export const Carousel = () => {
|
||||
</Card>
|
||||
|
||||
<div className="mx-auto mt-12 max-w-4xl px-2">
|
||||
<div className="bg-muted-foreground/10 text-foreground inline-block rounded-xl px-3 py-2 text-sm">
|
||||
<div className="bg-muted-foreground/10 dark:bg-muted text-foreground dark:text-muted-foreground inline-block rounded-xl px-3 py-2 text-sm">
|
||||
What's new
|
||||
</div>
|
||||
|
||||
|
||||
@ -16,9 +16,12 @@ export const Thumb: React.FC<PropType> = (props) => {
|
||||
<button
|
||||
onClick={onClick}
|
||||
type="button"
|
||||
className={cn('text-muted-foreground border-b-2 border-transparent py-4', {
|
||||
'border-primary text-foreground border-b-2': selected,
|
||||
})}
|
||||
className={cn(
|
||||
'text-muted-foreground dark:text-muted-foreground/60 border-b-2 border-transparent py-4',
|
||||
{
|
||||
'border-primary text-foreground dark:text-muted-foreground border-b-2': selected,
|
||||
},
|
||||
)}
|
||||
>
|
||||
{label}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user