Skip to content

Commit

Permalink
[release] 24기 모집 전 공식 웹 수정 사항 반영 (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
youngminss authored Apr 5, 2024
2 parents 7a0d8cd + 94102ad commit 587a61a
Show file tree
Hide file tree
Showing 34 changed files with 561 additions and 176 deletions.
5 changes: 2 additions & 3 deletions components/common/AnimatedButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import styled, { css } from 'styled-components';
import media from 'styles/media';
import { slideIn, slideOut } from 'styles/utils-styles';
Expand All @@ -24,7 +23,7 @@ function AnimatedButton({
}: AnimatedButtonProps) {
return (
<ButtonStyled width={width} height={height} variant={variant} {...rest}>
<svg
{/* <svg
width={`${width + 2}px`}
height={`${height}px`}
viewBox={`0 0 ${width} ${height}`}
Expand All @@ -38,7 +37,7 @@ function AnimatedButton({
rx="32"
ry="32"
/>
</svg>
</svg> */}
<span className="textgroup">
<span className="mainText">{buttonText}</span>
<span className="cloneText">{buttonText}</span>
Expand Down
4 changes: 2 additions & 2 deletions components/common/BubbleMenu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { FieldNameTypes } from 'components/recruit/RecruitField';
import type { Dispatch, ReactElement, SetStateAction } from 'react';
import styled, { css } from 'styled-components';
import { FieldNameTypes } from 'components/recruit/RecruitField';
import { ProjectField } from 'types/project';
import { PaletteKeyTypes } from 'styles/theme';
import { ProjectField } from 'types/project';

interface IButtonMenuStyle {
backgroundColor?: PaletteKeyTypes;
Expand Down
15 changes: 7 additions & 8 deletions components/home/AnimatedTextSection/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { useEffect, useRef } from 'react';
import type { ReactElement } from 'react';
import lottie from 'lottie-web';
import styled from 'styled-components';
import media from 'styles/media';
import { SectionTemplate } from 'components/home';
import { AnimatedButton } from 'components/common';
import { SectionTemplate } from 'components/home';
import Path from 'constants/path';
import {
IS_RECRUITING,
RECRUIT_BANNER,
RECRUIT_BANNER_ACTIVE,
} from 'database/recruit';
import lottie from 'lottie-web';
import { useRouter } from 'next/router';
import Path from 'constants/path';
import type { ReactElement } from 'react';
import { useEffect, useRef } from 'react';
import styled from 'styled-components';
import media from 'styles/media';

function AnimatedTextSection(): ReactElement {
const animatedTextRef = useRef<HTMLDivElement>(null);
Expand All @@ -37,7 +37,6 @@ function AnimatedTextSection(): ReactElement {
<div ref={animatedTextRef} />
<AnimatedButton
height={65}
style={{ marginTop: 120 }}
fontColor="white"
buttonColor="orange_400"
className="recruitButton"
Expand Down
318 changes: 318 additions & 0 deletions components/home/IntroSection/Banner24th.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,318 @@
import Image from 'next/image';
import { useEffect, useState } from 'react';
import styled from 'styled-components';
import media from 'styles/media';

const Banner24th = () => {
const [mounted, setMounted] = useState(false);

useEffect(() => {
setMounted(true);
}, []);

return (
<>
<div style={{ display: 'none' }}>
<Image
src={'/assets/images/24th/banner-pc.webp'}
alt=""
width={0}
height={0}
priority
/>
<Image
src={'/assets/images/24th/banner-tablet.webp'}
alt=""
width={0}
height={0}
priority
/>
<Image
src={'/assets/images/24th/banner-mobile.webp'}
alt=""
width={0}
height={0}
priority
/>
</div>

<Banner24thTextContentBox className={mounted ? 'appear' : ''}>
<h2>YAPP 24TH RECRUITING</h2>
<h3>
세상을 바꿀
<br />
24기 야뿌를 찾습니다
</h3>
</Banner24thTextContentBox>

<Banner24thBackgroundInner />
</>

// <Banner24thContainer>
// <Banner24thTextContentBox>
// <h2>YAPP 24TH RECRUITING</h2>
// <h3>
// 세상을 바꿀
// <br />
// 24기 야뿌를 찾습니다
// </h3>
// </Banner24thTextContentBox>

// <Banner24thCardsBox className={mounted ? 'appear' : ''}>
// <Image
// src={'/assets/images/24th/banner-bg-cards.webp'}
// alt="banner-cards"
// width={0}
// height={0}
// layout="responsive"
// objectFit="fill"
// priority
// />
// </Banner24thCardsBox>

// <Banner24thMaskBox className={mounted ? 'appear' : ''}>
// <Image
// src={'/assets/images/24th/banner-bg-mask.webp'}
// alt="banner-mask"
// width={0}
// height={0}
// layout="responsive"
// objectFit="fill"
// priority
// />
// </Banner24thMaskBox>
// </Banner24thContainer>
);
};

export default Banner24th;

const Banner24thTextContentBox = styled.div`
position: absolute;
top: 14%;
left: 50%;
z-index: 20;
flex: 1;
display: flex;
height: fit-content;
flex-direction: column;
justify-content: center;
align-items: center;
white-space: nowrap;
gap: 2rem;
transition: transform 2s ease, opacity 2s ease;
transform: translate3d(-50%, -2rem, 0);
opacity: 0;
&.appear {
transform: translate3d(-50%, 0, 0);
opacity: 1;
}
& > h2 {
padding: 1rem 2.6rem;
margin: 0;
border: 1px solid rgba(255, 155, 83, 0.77);
border-radius: 10rem;
background-color: transparent;
font-size: 3.2rem;
font-weight: 500;
line-height: 115%;
letter-spacing: -0.032rem;
color: ${({ theme }) => theme.palette.orange_450};
}
& > h3 {
margin: 0;
text-align: center;
font-size: 6.4rem;
font-weight: 700;
line-height: 125%;
letter-spacing: -0.07rem;
color: ${({ theme }) => theme.palette.white};
}
${media.custom(720)} {
gap: 1.6rem;
& > h2 {
font-size: 2.4rem;
letter-spacing: -0.014rem;
}
& > h3 {
font-size: 4.8rem;
letter-spacing: -0.032rem;
}
}
${media.custom(430)} {
top: 15%;
gap: 1rem;
& > h2 {
font-size: 1.4rem;
letter-spacing: -0.014rem;
}
& > h3 {
font-size: 2.8rem;
letter-spacing: -0.032rem;
}
}
`;

const Banner24thBackgroundInner = styled.div`
width: 100%;
height: 100%;
margin: 0 auto;
background-image: url('/assets/images/24th/banner-pc.webp');
background-repeat: no-repeat;
background-position: center center;
background-size: 100% 100%;
${media.mobile} {
background-image: url('/assets/images/24th/banner-tablet.webp');
}
${media.small} {
background-image: url('/assets/images/24th/banner-mobile.webp');
}
`;

// const Banner24thContainer = styled.div`
// position: absolute;
// display: flex;
// flex-direction: column;
// align-items: center;
// width: 100%;
// height: 100%;
// background-color: ${({ theme }) => theme.palette.black};
// `;

// const Banner24thTextContentBox = styled.div`
// z-index: 20;
// flex: 1;
// display: flex;
// height: fit-content;
// flex-direction: column;
// justify-content: center;
// align-items: center;
// transform: translate3d(0, -25%, 0);
// gap: 2rem;

// & > h2 {
// padding: 1rem 2.6rem;
// margin: 0;
// width: fit-content;
// border: 1px solid rgba(255, 155, 83, 0.77);
// border-radius: 10rem;
// background-color: transparent;
// font-size: 3.2rem;
// font-weight: 500;
// line-height: 115%;
// letter-spacing: -0.032rem;
// color: ${({ theme }) => theme.palette.orange_450};
// }

// & > h3 {
// margin: 0;
// text-align: center;
// font-size: 6.4rem;
// font-weight: 700;
// line-height: 125%;
// letter-spacing: -0.07rem;
// color: ${({ theme }) => theme.palette.white};
// }

// ${media.custom(720)} {
// gap: 1.6rem;

// & > h2 {
// font-size: 2.4rem;
// letter-spacing: -0.014rem;
// }

// & > h3 {
// font-size: 4.8rem;
// letter-spacing: -0.032rem;
// }
// }

// ${media.xSmall} {
// gap: 1rem;

// & > h2 {
// font-size: 1.4rem;
// letter-spacing: -0.014rem;
// }

// & > h3 {
// font-size: 2.8rem;
// letter-spacing: -0.032rem;
// }
// }
// `;

// const Banner24thMaskBox = styled.div`
// z-index: 10;
// position: absolute;
// top: 50%;
// left: 50%;

// max-width: 156rem;
// width: 80%;
// height: auto;

// transition: transform 2s ease;
// transform: translate3d(-50%, -50%, 0) scale(0.8);
// ${media.tablet} {
// width: 100%;
// }

// ${media.mobile} {
// width: 120%;
// }

// ${media.small} {
// width: 120%;
// }

// &.appear {
// transform: translate3d(-50%, -50%, 0) scale(1);
// }
// `;

// const Banner24thCardsBox = styled.div`
// flex: 1;
// z-index: 10;
// position: absolute;
// bottom: 50%;
// left: 50%;

// width: 60%;
// height: auto;

// transition: transform 2s ease, opacity 0.5s ease;
// transform: translate3d(-50%, calc(52% + 2rem), 0);
// opacity: 0;

// ${media.tablet} {
// width: 55%;
// }

// ${media.mobile} {
// width: 80%;
// }

// ${media.small} {
// width: 100%;
// }

// &.appear {
// transform: translate3d(-50%, 52%, 0);
// opacity: 1;
// }
// `;
Loading

0 comments on commit 587a61a

Please sign in to comment.