Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/icons/home_banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/assets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import StarFill from '@/assets/icons/star_filled.svg?react';
import StarLine from '@/assets/icons/star_outlined.svg?react';
import AIComment from '@/assets/icons/ai_comment.svg?react';
import AIImage from '@/assets/icons/ai_image.svg?react';
import HomeBanner from '@/assets/icons/home_banner.jpg';

export {
InfoIcon,
Expand All @@ -30,4 +31,5 @@ export {
StarLine,
AIComment,
AIImage,
HomeBanner,
};
2 changes: 1 addition & 1 deletion src/component/common/Image/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { cn } from '@/utils/cn';
type ImageProps = {
src?: string;
alt?: string;
className: string;
className?: string;
};

const Image = ({ src, alt = '', className }: ImageProps) => {
Expand Down
Binary file modified src/image/Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 37 additions & 1 deletion src/pages/home/Homepage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
import HomeBanner from '@/assets/icons/home_banner.jpg';
import { Header, Sidebar, Image, Button } from '@/component';
import { useState } from 'react';
import { useNavigate } from 'react-router-dom';

export default function HomePage() {
return <div className="text-xl font-bold">홈 페이지</div>;
const [isSidebarOpen, setIsSidebarOpen] = useState(false);

const handleMenuClick = () => {
setIsSidebarOpen(true);
};

const handleSidebarClose = () => {
setIsSidebarOpen(false);
};
const navigate = useNavigate();
return (
<div className="min-h-screen">
<Header onMenuClick={handleMenuClick} />
<Sidebar isOpen={isSidebarOpen} onClose={handleSidebarClose} position="left" />{' '}
<div className="mx-auto flex w-full max-w-[480px] flex-col pt-14">
<Image src={HomeBanner} className="h-60 w-full" />
<div className="text-caption2 text-green1 px-5 pt-1 text-right">
*해당 사진 속 장소는 강릉입니다.
</div>
<div className="px-5 pt-4 pb-6 text-center">
<div className="text-title2 text-green1">혼잡한 도시는 이제 그만</div>
<div className="text-title5 text-green1 pt-1">
지금 가장 여유롭고 한적한 여행지를 찾아드립니다.
</div>
<Button variant="sm" className="mt-3" onClick={() => navigate('/explore')}>
바로가기
</Button>
</div>
{/*Todo: 추후 홈 메인 내용 확정 되면 구현....*/}
</div>
</div>
);
}