Skip to content

Commit

Permalink
feat: ✨ feat(#192): 서비스 소개 배너 영역 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ohofront committed Feb 24, 2025
1 parent f5a1b04 commit f42875e
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 13 deletions.
Binary file added public/assets/fonts/timeforsalad.ttf
Binary file not shown.
14 changes: 2 additions & 12 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

import { useRouter } from "next/navigation";
import { MATCH_PAGE_DATA } from "@/constants/match";
import Image from "next/image";
import styled from "styled-components";
import { theme } from "@/styles/theme";
import { useState } from "react";
import Alert from "@/components/common/Alert";
import { getAccessToken } from "@/utils/storage";
import { AuthAxios } from "@/api/auth";
import Banner from "@/components/common/Banner";

const HomePage = () => {
const router = useRouter();
Expand All @@ -30,16 +29,7 @@ const HomePage = () => {
/>
)}
<HomeContent>
<Header>
<Image
src="/assets/icons/logo.svg"
width={371}
height={117}
priority
alt="logo"
/>
<SubTitle>겜구 커뮤니티에 오신 것을 환영합니다.</SubTitle>
</Header>
<Banner />
<Main>
{MATCH_PAGE_DATA.map((content) => {
return (
Expand Down
55 changes: 55 additions & 0 deletions src/components/common/Banner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import styled from "styled-components";

const Banner = () => {
return (
<BannerWrapper>
<TextContainer>
<p>
<HighlightText>겜구 커뮤니티에 오신 것을 환영해요 🎉</HighlightText>
</p>
<Description>게임 친구를 쉽고 빠르게 구해줄게요!</Description>
</TextContainer>
<Logo>GAMGOO</Logo>
</BannerWrapper>
);
};

export default Banner;

const BannerWrapper = styled.div`
width: 100%;
height: 128px;
background: #f0f0fc;
border-radius: 20px;
display: flex;
align-items: center;
padding: 40px;
position: relative;
margin-bottom: 32px;
`;

const TextContainer = styled.div`
flex: 1;
`;

const HighlightText = styled.span`
color: #8a63d2;
font-weight: bold;
`;

const Description = styled.p`
margin: 0;
font-size: 16px;
color: #333;
`;

const Logo = styled.div`
font-size: 72px;
font-weight: bold;
font-family: "TimeForSalad", sans-serif;
color: #c1b7ff;
opacity: 0.3;
position: absolute;
right: 20px;
letter-spacing: 5px;
`;
10 changes: 9 additions & 1 deletion src/styles/GlobalStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ button {
src: url("/public/assets/fonts/PretendardVariable.woff2") format('font-woff2'),
url("/assets/fonts/PretendardVariable.ttf") format('truetype');
}
/* 새로 추가한 Time For Salad */
@font-face {
font-family: "TimeForSalad";
src: url("/assets/fonts/TimeForSalad.woff2") format("woff2"),
url("/assets/fonts/TimeForSalad.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
`;

export default GlobalStyles;
export default GlobalStyles;

0 comments on commit f42875e

Please sign in to comment.