Skip to content

Commit

Permalink
style: HomePage Banner Image and String
Browse files Browse the repository at this point in the history
  • Loading branch information
seondy committed Dec 8, 2024
1 parent 7b39698 commit d5a57f9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions gamgyul-front/src/constants/String.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// 홈페이지 HomePage.jsx 작성 예시
export const HOME_PAGE_TEXT = {
EN: {
HEADER_MAIN: "Folktale trip with\nSeolmundae\nGrandmother!",
HEADER_SUB: "Let me introduce you to a place with fun and\nmysterious Jeju folktales.",
HEADER_MAIN: "Folktale journey with\nSeolmundae Grandma!",
HEADER_SUB: "Discover a place of fun and mysterious Jeju folktales.",
THEME_ATRCT: "Theme-based tourist attraction", // 테마별 설화 관광지
FOLKTALE_ROUTE: "Folktale tour route", // 설화 여행 루트
REGION_ATRCT: "Tourist attractions by Region", // 지역별 제주 관광지
CATEGORY_SEOLMUNDAE: "Seolmundae Grandmother", // 설문대 할망
CATEGORY_SEOLMUNDAE: "Seolmundae\nGrandmother", // 설문대 할망
CATEGORY_LOVE: "Love", // 사랑
CATEGORY_HISTORY: "History", // 역사
CATEGORY_MYTH: "Myth", // 신화
Expand All @@ -25,8 +25,8 @@ export const HOME_PAGE_TEXT = {
REFRESH_BUTTON: "새로고침",
},
JP: {
HEADER_MAIN: "",
HEADER_SUB: "",
HEADER_MAIN: "ソルムデハルマンと一緒に\n伝説の旅へ!",
HEADER_SUB: "済州の神秘的な伝説の場所をご紹介します。",
THEME_ATRCT: "",
FOLKTALE_ROUTE: "",
REGION_ATRCT: "",
Expand All @@ -37,8 +37,8 @@ export const HOME_PAGE_TEXT = {
REFRESH_BUTTON: "",
},
CH: {
HEADER_MAIN: "",
HEADER_SUB: "",
HEADER_MAIN: "跟雪门大奶奶一起开启\n传说之旅吧!",
HEADER_SUB: "为您介绍一个充满趣味与神秘的济州传说之地.",
THEME_ATRCT: "",
FOLKTALE_ROUTE: "",
REGION_ATRCT: "",
Expand Down
10 changes: 5 additions & 5 deletions gamgyul-front/src/pages/HomePage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { shuffleArray } from "../../utils/shuffleArray";
import { HOME_PAGE_TEXT } from "../../constants/String";
import { BasicLayout, Container } from "../../components/common/BasicLayout/layout.style";
import NavigationBar from "../../components/common/NavigationBar";
import { IcRefresh } from "../../assets";
import homeBanner from '../../assets/background/homeBanner.png';

const HomePage = () => {
const navigate = useNavigate();
Expand Down Expand Up @@ -131,7 +133,7 @@ const HomePage = () => {
<BasicLayout>
{/* 홈페이지의 상단 이미지 + 소개 내용 */}
<StyledHomeHeader>
<img src="" alt="" />
<img src={homeBanner} alt="" />
<Container>
<div>
<p>{text.HEADER_MAIN}</p>
Expand Down Expand Up @@ -172,7 +174,7 @@ const HomePage = () => {
<StyledCategoryName>{text.FOLKTALE_ROUTE}</StyledCategoryName>
<StyledRefreshButton aria-label={text.REFRESH_BUTTON} onClick={handleRefreshClick}>
{text.REFRESH_BUTTON}
<img src="/images/Icon/refresh.svg" alt="refresh icon" />
<IcRefresh />
</StyledRefreshButton>
</StyledFolktaleContainer>
<nav>
Expand Down Expand Up @@ -367,9 +369,7 @@ const StyledRefreshButton = styled.button`
margin-right: 20px;
cursor: pointer;
img {
width: 20px;
height: 20px;
svg {
margin-left: 4px;
}
`;
Expand Down

0 comments on commit d5a57f9

Please sign in to comment.