-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/#218 인트로 스크린 로티애니메이션 및 pretendard 폰트적용 #225
Merged
The head ref may contain hidden characters: "Feature/#218_\uC778\uD2B8\uB85C_\uC2A4\uD06C\uB9B0_\uB85C\uD2F0\uC560\uB2C8\uBA54\uC774\uC158_\uC801\uC6A9"
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e94620f
feat: 개발중에는 introScreen 스킵하도록 변경
hyonun321 a9dd5f5
feat: pretendard 폰트 추가
hyonun321 21e691b
feat: noctaIcon 로티 애니메이션 파일 추가 및 컴포넌트 생성
hyonun321 72615ad
chore: 디버그용 인트로 시간 제거
hyonun321 42036eb
feat: IntroScreen 로티애니메이션 및 문구 별 애니메이션 추가
hyonun321 c48a604
chore: 디버깅용 시간 추가 및 애니메이션 시간 4.7초로 변경
hyonun321 1f0ceab
feat: 녹타 라이트모드, 다크모드용 아이콘 추가
hyonun321 4a924e4
chore: 녹타아이콘 Day로 변경 및 오버레이 + 글자 그림자 추가
hyonun321 8b40fec
feat: sesstionStorage에 IntroScreen표시 여부를 저장하여 새로고침하면 IntroScreen을 표시안…
hyonun321 ad80ef8
chore: 녹타 아이콘 svg 파일 추가
hyonun321 bdeacb3
feat: MenuIcon 컴포넌트 생성
hyonun321 3060fee
chore: 불필요한 요소 제거
hyonun321 6933e6c
style: nocta SVG html 등록
hyonun321 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오옹 미리 짜셨군요! 👍