feat(WEB-162): final design for my profile page

This commit is contained in:
Simon Emanuelsson
2024-06-07 10:36:23 +02:00
committed by Christel Westerberg
parent a7b04df7b6
commit 5f3e417593
96 changed files with 802 additions and 494 deletions

View File

@@ -16,3 +16,11 @@
.peach {
border-bottom-color: var(--Theme-Primary-Light-On-Surface-Divider);
}
.opacity100 {
opacity: 1;
}
.opacity8 {
opacity: 0.08;
}

View File

@@ -2,7 +2,12 @@ import { dividerVariants } from "./variants"
import type { DividerProps } from "./divider"
export default function Divider({ className, color, variant }: DividerProps) {
const classNames = dividerVariants({ className, color, variant })
export default function Divider({
className,
color,
opacity,
variant,
}: DividerProps) {
const classNames = dividerVariants({ className, color, opacity, variant })
return <div className={classNames} />
}

View File

@@ -8,6 +8,10 @@ export const dividerVariants = cva(styles.divider, {
burgundy: styles.burgundy,
peach: styles.peach,
},
opacity: {
100: styles.opacity100,
8: styles.opacity8,
},
variant: {
default: styles.default,
dotted: styles.dotted,
@@ -15,6 +19,7 @@ export const dividerVariants = cva(styles.divider, {
},
defaultVariants: {
color: "burgundy",
opacity: 100,
variant: "default",
},
})