Skip to content

Commit 43df071

Browse files
authored
Merge pull request dnd-side-project#54 from dnd-side-project/feature/dnd-side-project#40
2 parents 0aa96ac + 05b2565 commit 43df071

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+3711
-1718
lines changed

next.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
import type { NextConfig } from 'next';
22

33
const nextConfig: NextConfig = {
4+
images: {
5+
remotePatterns: [
6+
{
7+
protocol: 'https',
8+
hostname: 'zipzip-bucket.s3.amazonaws.com',
9+
pathname: '/**',
10+
},
11+
],
12+
},
413
webpack(config) {
514
config.module.rules.push({
615
test: /\.svg$/,

package-lock.json

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"next": "15.4.4",
2222
"react": "19.1.0",
2323
"react-dom": "19.1.0",
24+
"swiper": "^11.2.10",
2425
"tailwind-merge": "^3.3.1",
2526
"zustand": "^5.0.7"
2627
},

public/assets/active-folder.svg

Lines changed: 4 additions & 0 deletions
Loading

public/assets/default-folder.svg

Lines changed: 4 additions & 0 deletions
Loading

public/favicon.ico

-25.3 KB
Binary file not shown.

src/app/(main)/page.tsx

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,44 @@
1+
'use client';
2+
13
import React from 'react';
24
import { MainLayout } from '@/components/layout';
3-
import Image from 'next/image';
4-
import { Title2xl } from '@/components/ui/Typography';
55
import { VerticalSlider } from '@/components/main/VerticalSlider';
66
import { RouteBox } from '@/components/main/RouteBox';
77
import { IconTextRouter } from '@/components/main/IconTextRouter';
88
import { TitleL } from '@/components/ui/Typography';
9+
import { Header } from '@/components/ui/Header';
10+
import { Icon } from '@/components/ui/Icon';
11+
import { useRouter } from 'next/navigation';
12+
13+
export default function HomePage() {
14+
const router = useRouter();
915

10-
export default function index() {
1116
return (
12-
<MainLayout className="px-6">
13-
<header className="flex w-full justify-between py-3">
14-
<Image src={'assets/ico-logo.svg'} alt="logo" width={80} height={20} />
15-
<Image src={'assets/ico-my-page.svg'} alt="my-page" width={30} height={20} />
16-
</header>
17-
<div className="flex flex-col items-start justify-center py-4">
18-
<Title2xl className="text-xl font-semibold">내 기준에 맞는 집</Title2xl>
19-
<div className="flex flex-row">
20-
<Title2xl className="text-xl font-semibold text-[#669AFF]">.zip!</Title2xl>
21-
<Title2xl className="text-xl font-semibold">해서 후회없게</Title2xl>
22-
</div>
23-
</div>
17+
<MainLayout>
18+
<Header
19+
left={
20+
<Icon
21+
name="house"
22+
color="primary-50"
23+
className="cursor-pointer"
24+
size={24}
25+
padding={10}
26+
onClick={() => router.push('/')}
27+
/>
28+
}
29+
right={
30+
<Icon
31+
name="myPage"
32+
color="coolGray-50"
33+
className="cursor-pointer"
34+
size={24}
35+
padding={10}
36+
onClick={() => router.push('/mypage')}
37+
/>
38+
}
39+
/>
2440

25-
<div className="w-full">
41+
<div className="w-full px-6">
2642
<VerticalSlider />
2743

2844
<div className="flex w-full flex-row justify-center gap-4 py-4">

src/app/globals.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import 'tailwindcss';
2+
@import 'swiper/css';
23

34
@font-face {
45
font-family: 'Pretendard';
@@ -21,6 +22,7 @@
2122
--color-primary-50: #669aff;
2223
--color-primary-55: #4b8bff;
2324
--color-secondary-50: #fba907;
25+
--color-secondary-10: #fff3d9;
2426
--color-static-black: #000000;
2527
--color-static-white: #ffffff;
2628
--color-status-red: #ff6648;
@@ -55,4 +57,41 @@
5557
.font-poppins {
5658
font-family: var(--font-poppins);
5759
}
60+
61+
/* Hide scrollbar but enable scrolling */
62+
.scrollbar-hidden {
63+
-ms-overflow-style: none; /* IE and Edge */
64+
scrollbar-width: none; /* Firefox */
65+
}
66+
.scrollbar-hidden::-webkit-scrollbar {
67+
display: none; /* Chrome, Safari */
68+
}
69+
70+
/* Dropdown reveal animation utilities */
71+
.reveal-panel {
72+
will-change: transform, opacity, clip-path;
73+
transform-origin: top center;
74+
transition:
75+
transform 200ms ease,
76+
opacity 200ms ease,
77+
clip-path 220ms ease;
78+
}
79+
.reveal-panel-closed {
80+
opacity: 0;
81+
transform: translateY(-6px);
82+
clip-path: inset(0 0 100% 0);
83+
pointer-events: none;
84+
}
85+
.reveal-panel-open {
86+
opacity: 1;
87+
transform: translateY(0);
88+
clip-path: inset(0 0 0 0);
89+
}
90+
91+
.icon-rotate {
92+
transition: transform 200ms ease;
93+
}
94+
.icon-rotate-open {
95+
transform: rotate(180deg);
96+
}
5897
}

0 commit comments

Comments
 (0)