-
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.
Showing
11 changed files
with
146 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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
46 changes: 46 additions & 0 deletions
46
src/app/(sidebar)/my-recruit/containers/components/CardSkeleton/CardSkeleton.tsx
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { motion } from 'framer-motion'; | ||
import { match } from 'ts-pattern'; | ||
|
||
interface Props { | ||
variant: 'box' | 'row'; | ||
count: number; | ||
} | ||
|
||
export function CardSkeleton({ variant, count }: Props) { | ||
const wrapperClassName = match(variant) | ||
.with('box', () => 'flex gap-[16px]') | ||
.with('row', () => 'flex flex-col gap-[12px]') | ||
.exhaustive(); | ||
|
||
const itemClassName = match(variant) | ||
.with('box', () => 'w-[280px] h-[142px] bg-neutral-3 rounded-[10px]') | ||
.with('row', () => 'w-full h-[70px] bg-neutral-3 rounded-[10px]') | ||
.exhaustive(); | ||
|
||
return ( | ||
<motion.div | ||
variants={{ | ||
show: { | ||
transition: { | ||
staggerChildren: 0.1, | ||
}, | ||
}, | ||
}} | ||
initial="hide" | ||
animate="show" | ||
className={wrapperClassName}> | ||
{Array(count) | ||
.fill(0) | ||
.map((_, index) => ( | ||
<motion.div | ||
key={index} | ||
variants={{ | ||
hide: { opacity: 0.1, scale: 1 }, | ||
show: { opacity: 1, scale: 0.98, transition: { repeat: Infinity, repeatType: 'reverse', duration: 0.5 } }, | ||
}} | ||
className={itemClassName} | ||
/> | ||
))} | ||
</motion.div> | ||
); | ||
} |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
export function Logo() { | ||
return ( | ||
<svg width="42" height="18" viewBox="0 0 42 18" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M3.43441 16.071L5.42343 12.4775L1.39249 13.5772L3.43441 16.071Z" fill="#0CC47F" /> | ||
<path | ||
d="M8.20584 5.31051L7.91584 3.64064L9.8988 1.75699L13.0741 2.90586L14.4516 4.38111L13.6354 6.18728L15.3317 6.09142L16.6988 8.32846L16.1945 11.5653L14.2046 12.4462L12.3386 11.8763L11.8024 13.9501L10.1266 15.116L6.75294 13.8613L6.75097 11.3615L4.42429 10.8235L3.52081 8.9727L4.10093 5.24913L6.34823 4.47444L8.20584 5.31051Z" | ||
fill="#0CC47F" | ||
/> | ||
<path | ||
opacity="0.9" | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M13.0036 10.1666L11.1957 9.34769L11.438 8.64078L13.3344 9.10947L13.0036 10.1666Z" | ||
fill="#007D4F" | ||
/> | ||
<path | ||
opacity="0.9" | ||
d="M10.2031 7.46296L10.5432 5.62869L11.6003 5.90878L10.9235 7.6614L10.2031 7.46296Z" | ||
fill="#007D4F" | ||
/> | ||
<path | ||
opacity="0.9" | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M8.83031 8.70624L6.84901 8.3798L7.06104 7.48553L8.95683 8.03165L8.83031 8.70624Z" | ||
fill="#007D4F" | ||
/> | ||
<path | ||
opacity="0.9" | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M10.3933 9.70135L10.14 11.4766L9.14099 11.3758L9.66329 9.5415L10.3933 9.70135Z" | ||
fill="#007D4F" | ||
/> | ||
<path | ||
d="M31.2208 5.62317V3.75693H36.8853V5.62317L35.5765 9.53033L33.5597 8.92262L34.6325 5.62317H31.2208Z" | ||
fill="#00A467" | ||
/> | ||
<path d="M40.1037 3.75693H38.1298V9.53033H40.1037V7.62037H41.2838V5.62317H40.1037V3.75693Z" fill="#00A467" /> | ||
<path d="M31.5857 11.8744V9.96441H40.1037V13.958H38.1298V11.8744H31.5857Z" fill="#00A467" /> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M20.4014 3.61185V10.0369H23.8956V11.5309H19.9814V13.4904H29.8072V11.5309H25.913V10.0369H29.4078V3.61185H27.4307V5.08679H25.913V3.61185H23.8956V5.08679H22.3983V3.61185H20.4014ZM22.385 6.91295V8.14636H23.8832V6.91295H22.385ZM25.8437 6.91295V8.14636H27.3658V6.91295H25.8437Z" | ||
fill="#00A467" | ||
/> | ||
</svg> | ||
); | ||
} |
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,4 @@ | ||
export const zIndex = { | ||
tooltip: 10000, | ||
overlay: 20000, | ||
tooltip: 20000, | ||
overlay: 30000, | ||
} as const; |