-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SOEOPSFY24-350 | add isExpended props and update timeline details
- Loading branch information
1 parent
bc142ad
commit d0b5de5
Showing
35 changed files
with
139 additions
and
108 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
import { cnb } from "cnbuilder"; | ||
|
||
export const size = { | ||
small: "w-200 md:w-250", | ||
medium: "w-250 md:w-[340px]", | ||
large: "w-250 md:w-[340px] lg:w-[420px]", | ||
xlarge: "w-250 md:w-[420px] lg:w-600", | ||
medium: "w-250 md:w-[300px] xl:w-[340px]", | ||
large: "w-250 md:w-[300px] xl:w-[420px]", | ||
xlarge: "w-250 md:w-[300px] lg:w-[420px] xl:w-600", | ||
full: "w-full", | ||
}; | ||
|
||
export const trapezoid = { | ||
left: "rotate-y-[15deg] hocus:rotate-y-[-15deg]", | ||
right: "rotate-y-[-15deg] hocus:rotate-y-[15deg]", | ||
}; | ||
export const trapezoid = (trapezoidAngle: string, isExpanded: boolean) => | ||
cnb({ | ||
"rotate-y-[15deg] hocus:rotate-y-[-15deg]": | ||
trapezoidAngle === "left" && !isExpanded, | ||
"rotate-y-[-15deg] hocus:rotate-y-[15deg]": | ||
trapezoidAngle === "right" && !isExpanded, | ||
"rotate-y-[-15deg]": trapezoidAngle === "left" && isExpanded, | ||
"rotate-y-[15deg]": trapezoidAngle === "right" && isExpanded, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import * as styles from "./TimelineItem.styles"; | ||
|
||
export type SizeType = keyof typeof styles.size; | ||
export type TrapezoidType = keyof typeof styles.trapezoid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.