-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #225 from boostcampwm-2024/Feature/#218_인트로_스크린_로티…
…애니메이션_적용 Feature/#218 인트로 스크린 로티애니메이션 및 pretendard 폰트적용
- Loading branch information
Showing
22 changed files
with
301 additions
and
43 deletions.
There are no files selected for viewing
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Player } from "@lottiefiles/react-lottie-player"; | ||
import noctaIcon from "@assets/lotties/noctaDayIcon.json"; | ||
|
||
export const NoctaIcon = ({ size = 200 }) => { | ||
return ( | ||
<div style={{ width: size, height: size }}> | ||
<Player autoplay loop src={noctaIcon} style={{ width: "100%", height: "100%" }} /> | ||
</div> | ||
); | ||
}; |
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
5 changes: 3 additions & 2 deletions
5
client/src/components/sidebar/components/menuButton/MenuButton.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
10 changes: 10 additions & 0 deletions
10
client/src/components/sidebar/components/menuButton/components/MenuIcon.style.ts
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,10 @@ | ||
import { css } from "@styled-system/css"; | ||
|
||
export const iconContainer = css({ | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
width: "40px", | ||
height: "40px", | ||
overflow: "hidden", | ||
}); |
29 changes: 29 additions & 0 deletions
29
client/src/components/sidebar/components/menuButton/components/MenuIcon.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,29 @@ | ||
import NoctaDayIcon from "@assets/icons/noctaDayIcon.svg?react"; | ||
// import { noctaNightIcon } from "@assets/icons/noctaNightIcon.svg"; | ||
import { iconContainer } from "./MenuIcon.style"; | ||
|
||
export const MenuIcon = () => { | ||
// const { isDarkMode } = useThemeStore(); | ||
|
||
// const [isSystemDark, setIsSystemDark] = useState(() => | ||
// window.matchMedia('(prefers-color-scheme: dark)').matches | ||
// ); | ||
|
||
// useEffect(() => { | ||
// const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)'); | ||
// const handleChange = (e: MediaQueryListEvent) => { | ||
// setIsSystemDark(e.matches); | ||
// }; | ||
|
||
// mediaQuery.addEventListener('change', handleChange); | ||
// return () => mediaQuery.removeEventListener('change', handleChange); | ||
// }, []); | ||
|
||
// const currentIcon = (isDarkMode ?? isSystemDark) ? noctaNightIcon : noctaDayIcon; | ||
|
||
return ( | ||
<div className={iconContainer}> | ||
<NoctaDayIcon /> | ||
</div> | ||
); | ||
}; |
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
56 changes: 56 additions & 0 deletions
56
client/src/features/workSpace/components/IntroScreen.animation.ts
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,56 @@ | ||
export const animation = { | ||
initial: { | ||
y: -100, | ||
opacity: 0, | ||
}, | ||
animate: { | ||
y: 0, | ||
opacity: 1, | ||
}, | ||
transition: { | ||
type: "spring", | ||
stiffness: 300, | ||
damping: 30, | ||
duration: 2, | ||
}, | ||
}; | ||
export const containerVariants = { | ||
hidden: { | ||
opacity: 0, | ||
}, | ||
visible: { | ||
opacity: 1, | ||
}, | ||
}; | ||
|
||
export const topTextVariants = { | ||
hidden: { | ||
opacity: 0, | ||
y: -50, | ||
}, | ||
visible: { | ||
opacity: 1, | ||
y: 0, | ||
transition: { | ||
delay: 1, | ||
duration: 0.4, | ||
ease: "easeOut", | ||
}, | ||
}, | ||
}; | ||
|
||
export const bottomTextVariants = { | ||
hidden: { | ||
opacity: 0, | ||
y: 50, | ||
}, | ||
visible: { | ||
opacity: 1, | ||
y: 0, | ||
transition: { | ||
delay: 2, | ||
duration: 0.3, | ||
ease: "easeOut", | ||
}, | ||
}, | ||
}; |
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,10 +1,26 @@ | ||
import { LoadingSpinner } from "@components/lotties/LoadingSpinner"; | ||
import { IntroScreenContainer } from "./IntroScreen.style"; | ||
import { motion } from "framer-motion"; | ||
import { NoctaIcon } from "@components/lotties/NoctaIcon"; | ||
import { containerVariants, bottomTextVariants, topTextVariants } from "./IntroScreen.animation"; | ||
import { IntroScreenContainer, topText, bottomText, overLayContainer } from "./IntroScreen.style"; | ||
|
||
export const IntroScreen = () => { | ||
return ( | ||
<div className={IntroScreenContainer}> | ||
<LoadingSpinner size={200} /> | ||
</div> | ||
<motion.div | ||
className={IntroScreenContainer} | ||
variants={containerVariants} | ||
initial="hidden" | ||
animate="visible" | ||
transition={{ duration: 0.6, ease: "easeInOut" }} | ||
exit={{ opacity: 0 }} | ||
> | ||
<motion.div variants={topTextVariants} className={topText}> | ||
밤하늘의 별빛처럼, 자유로운 인터랙션 실시간 에디터 | ||
</motion.div> | ||
<NoctaIcon size={200} /> | ||
<motion.div variants={bottomTextVariants} className={bottomText}> | ||
Nocta | ||
</motion.div> | ||
<div className={overLayContainer}></div> | ||
</motion.div> | ||
); | ||
}; |
Oops, something went wrong.