-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: 23기 모집 전 공식 웹 수정 사항 반영 (#146)
- Loading branch information
Showing
18 changed files
with
269 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { useCallback, useEffect, useState } from 'react'; | ||
import styled from 'styled-components'; | ||
import media from 'styles/media'; | ||
|
||
function FloatingArrow() { | ||
const [isHideArrow, setisHideArrow] = useState(false); | ||
|
||
const checkScroll = useCallback((e) => { | ||
const scrollTop = e.target.scrollTop || 0; | ||
if (scrollTop > 100) { | ||
setisHideArrow(true); | ||
} else { | ||
setisHideArrow(false); | ||
} | ||
}, []); | ||
useEffect(() => { | ||
window.addEventListener('scroll', checkScroll, { capture: true }); | ||
return () => window.removeEventListener('scroll', checkScroll); | ||
}, []); | ||
|
||
return ( | ||
<> | ||
{!isHideArrow && ( | ||
<ArrowDownConatiner> | ||
<svg | ||
width="48" | ||
height="48" | ||
viewBox="0 0 48 48" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M24 3V45M24 45L42 28.3266M24 45L6 28.3266" | ||
stroke="white" | ||
strokeWidth="3.75" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
</svg> | ||
</ArrowDownConatiner> | ||
)} | ||
</> | ||
); | ||
} | ||
export default FloatingArrow; | ||
|
||
const ArrowDownConatiner = styled.div` | ||
position: fixed; | ||
bottom: 100px; | ||
left: 0px; | ||
transform: translateX(calc(50vw - 50%)); | ||
z-index: 10000; | ||
svg { | ||
width: 64px; | ||
height: 64px; | ||
} | ||
${media.custom(743)} { | ||
& > svg { | ||
width: 48px; | ||
height: 48px; | ||
} | ||
} | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import React, { useCallback, useEffect, useRef, useState } from 'react'; | ||
import styled from 'styled-components'; | ||
import media from 'styles/media'; | ||
|
||
interface VideoPlayerProps { | ||
src: string; | ||
} | ||
|
||
function VideoPlayer({ src }: VideoPlayerProps) { | ||
const videoRef = useRef<HTMLVideoElement>(null); | ||
const [lowPowerMode, setLowPowerMode] = useState(false); | ||
|
||
useEffect(() => { | ||
const video = videoRef.current! as HTMLVideoElement; | ||
// 아이폰 저전력모드의 경우 play 시 NotAllowedError가 발생, 이 경우 <img>로 대체 | ||
video.play().catch((error) => { | ||
if (error.name === 'NotAllowedError') { | ||
setLowPowerMode(true); | ||
} | ||
}); | ||
}, [videoRef]); | ||
|
||
return ( | ||
<> | ||
<Container> | ||
<VideoPlayerContainer> | ||
{!lowPowerMode ? ( | ||
<video | ||
height={'100%'} | ||
src={src} | ||
ref={videoRef} | ||
playsInline | ||
autoPlay | ||
muted | ||
loop | ||
/> | ||
) : ( | ||
// eslint-disable-next-line @next/next/no-img-element, jsx-a11y/alt-text | ||
<img height={'100%'} src={src}></img> | ||
)} | ||
</VideoPlayerContainer> | ||
</Container> | ||
</> | ||
); | ||
} | ||
|
||
export default VideoPlayer; | ||
|
||
const Container = styled.div` | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
const VideoPlayerContainer = styled.div` | ||
height: 1100px; | ||
${media.custom(1280)} { | ||
height: 906px; | ||
} | ||
${media.custom(743)} { | ||
height: 394px; | ||
} | ||
`; |
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
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
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,6 +1,6 @@ | ||
const Yapp = { | ||
YAPP_NAME: 'YAPP', | ||
YAPP_GENERATION: 22, // 기수 | ||
YAPP_GENERATION: 23, // 기수 | ||
YAPP_OFFICIAL_EMAIL: '[email protected]', | ||
YAPP_OFFICIAL_KAKAO: '@YAPP', | ||
YAPP_OFFICIAL_FACEBOOK: '@YAPP', | ||
|
@@ -11,12 +11,14 @@ const Yapp = { | |
YAPP_GITHUB: 'https://github.com/YAPP-Github', | ||
YAPP_RECRUIT: 'https://linktr.ee/yappian', | ||
YAPP_RECRUIT_PROJECT_MANAGER: | ||
'https://yapp22nd.career.greetinghr.com/o/72724', | ||
YAPP_RECRUIT_DESIGNER: 'https://yapp22nd.career.greetinghr.com/o/72722', | ||
YAPP_RECRUIT_IOS: 'https://yapp22nd.career.greetinghr.com/o/72723', | ||
YAPP_RECRUIT_ANDROID: 'https://yapp22nd.career.greetinghr.com/o/72725', | ||
YAPP_RECRUIT_FRONT_END: 'https://yapp22nd.career.greetinghr.com/o/72726', | ||
YAPP_RECRUIT_BACK_END: 'https://yapp22nd.career.greetinghr.com/o/72727', | ||
'https://yapp.ninehire.site/job_posting/r1tK8QQZ', | ||
YAPP_RECRUIT_DESIGNER: 'https://yapp.ninehire.site/job_posting/3psY4QwR', | ||
YAPP_RECRUIT_IOS: 'https://yapp.ninehire.site/job_posting/NJNKVkbK', | ||
YAPP_RECRUIT_ANDROID: ' https://yapp.ninehire.site/job_posting/uJuqIHKb', | ||
YAPP_RECRUIT_FRONT_END: 'https://yapp.ninehire.site/job_posting/mc1CRqVS', | ||
YAPP_RECRUIT_BACK_END: 'https://yapp.ninehire.site/job_posting/cWPQAIHH', | ||
YAPP_RECRUIT_CROSS_PLATFORM: | ||
'https://yapp.ninehire.site/job_posting/pmo9YJQ1', | ||
} as const; | ||
|
||
export default Yapp; |
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.