Skip to content

Commit 4d4565f

Browse files
authored
Merge branch 'dev' into feat/cicd
2 parents 47433a7 + b45b4f5 commit 4d4565f

21 files changed

+554
-86
lines changed

.prettierrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,12 @@
88
"trailingComma": "none",
99
"printWidth": 80,
1010
"arrowParens": "always",
11-
"endOfLine": "auto"
11+
"endOfLine": "auto",
12+
13+
"plugins": ["prettier-plugin-tailwindcss"],
14+
"tailwindStylesheet": "./src/index.css",
15+
"tailwindConfig": "./tailwind.config.ts",
16+
"tailwindFunctions": ["clsx", "cn", "tw"],
17+
"tailwindPreserveWhitespace": true,
18+
"tailwindPreserveDuplicates": false
1219
}

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"eslint-plugin-react-hooks": "^5.0.0",
3131
"eslint-plugin-react-refresh": "^0.4.16",
3232
"globals": "^15.14.0",
33-
"prettier": "^3.4.2",
33+
"prettier": "^3.5.3",
34+
"prettier-plugin-tailwindcss": "^0.6.11",
3435
"typescript": "~5.6.2",
3536
"typescript-eslint": "^8.22.0",
3637
"vite": "^6.0.5"

public/icon/arrow_left.svg

Lines changed: 3 additions & 0 deletions
Loading

public/image/banner_login.png

424 KB
Loading

public/image/home_banner_lg_3.png

48.8 KB
Loading

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ChatRecommend from "@/pages/ChatRecommend";
66
import ChatTips from "@/pages/ChatTips";
77
import ChatTemporature from "@/pages/ChatTemporature";
88
import Content from "@/pages/Content";
9+
import Login from "@/pages/Login";
910

1011
const App = () => {
1112
return (
@@ -18,6 +19,7 @@ const App = () => {
1819
<Route path="/chat-tips" element={<ChatTips />} />
1920
<Route path="/chat-temporature" element={<ChatTemporature />} />
2021
<Route path="/content/:id" element={<Content />} />
22+
<Route path="/login" element={<Login />} />
2123
</Routes>
2224
</Router>
2325
);

src/components/Banner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const Banner = () => {
3131
}, []);
3232

3333
return (
34-
<div className="relative flex w-full h-[184px]">
34+
<div className="relative flex h-[184px] w-full">
3535
{images.map((image, index) => (
3636
// a -> Link로 바꿀 예정
3737
<a href={`/contents/${index}`}>
@@ -46,7 +46,7 @@ const Banner = () => {
4646
/>
4747
</a>
4848
))}
49-
<div className="right-[20px] bottom-[12px] absolute">
49+
<div className="absolute right-[20px] bottom-[12px]">
5050
<Indicator order={order} setOrder={setOrder} />
5151
</div>
5252
</div>

src/components/Header.tsx

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,44 @@
1-
const Header = () => {
1+
import { useNavigate } from 'react-router-dom';
2+
3+
type HeaderProps = {
4+
title: string;
5+
showPreviousIcon?: boolean;
6+
showShareIcon?: boolean;
7+
};
8+
9+
const Header = ({ title, showPreviousIcon = true, showShareIcon = true }: HeaderProps) => {
10+
const navigate = useNavigate();
11+
12+
const handleGoBack = () => {
13+
navigate(-1);
14+
};
15+
216
return (
3-
<div className="flex flex-row bg-white border border-gray-100 items-center justify-center w-[500px] h-[56px] relative">
17+
<div className="flex flex-row bg-white border border-gray-100 items-center justify-center w-full h-[56px] relative">
18+
{showPreviousIcon && (
19+
<img
20+
src="/public/icon/arrow_left.svg"
21+
alt="Go To Back"
22+
className="absolute left-[18.77px] cursor-pointer"
23+
width={9.87}
24+
height={16}
25+
onClick={handleGoBack}
26+
/>
27+
)}
28+
429
<h1 className="text-[18px] font-bold text-gray-900 absolute left-1/2 transform -translate-x-1/2">
5-
상대방 정보선택
30+
{title}
631
</h1>
7-
<img
8-
src="/public/icon/share.svg"
9-
alt="Share"
10-
className="absolute right-[20px] cursor-pointer"
11-
width={16}
12-
height={16}
13-
/>
32+
33+
{showShareIcon && (
34+
<img
35+
src="/public/icon/share.svg"
36+
alt="Share"
37+
className="absolute right-[20px] cursor-pointer"
38+
width={16}
39+
height={16}
40+
/>
41+
)}
1442
</div>
1543
);
1644
};

src/components/NavBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const NavBar = () => {
22
return (
3-
<div className="flex flex-row items-center justify-center w-[500px] h-[56px]">
3+
<div className="flex h-[56px] w-full justify-between">
44
<img
55
src="/public/icon/mbtipslogo.svg"
66
alt="Logo"

0 commit comments

Comments
 (0)