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
38 changes: 30 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"dependencies": {
"classnames": "^2.5.1",
"dayjs": "^1.11.13",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-error-boundary": "^5.0.0",
Expand All @@ -19,8 +20,8 @@
},
"devDependencies": {
"@eslint/js": "^9.21.0",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"eslint": "^9.21.0",
Expand All @@ -29,6 +30,7 @@
"globals": "^15.15.0",
"postcss": "^8.5.3",
"tailwindcss": "^3.4.17",
"typescript": "^5.8.3",
"vite": "^6.2.0"
}
}
Binary file removed public/favicon.ico
Binary file not shown.
43 changes: 0 additions & 43 deletions public/index.html

This file was deleted.

Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

25 changes: 0 additions & 25 deletions src/App.js

This file was deleted.

2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import SignupPage from "./pages/SignupPage";
import AddItemPage from "./pages/AddItemPage";
import ErrorPage from "./pages/ErrorPage";
import BoardsPage from "./pages/BoardsPage";
import ItemDetailPage from "./pages/ItemDetailPage";

function App() {
return (
Expand All @@ -17,6 +18,7 @@ function App() {
<Route path="/login" element={<LoginPage />} />
<Route path="/signup" element={<SignupPage />} />
<Route path="/items" element={<ItemsPage />} />
<Route path="/product/:id" element={<ItemDetailPage />} />
<Route path="/additem" element={<AddItemPage />} />
<Route path="/faq" element={<FaqPage />} />
<Route path="/privacy" element={<PrivacyPage />} />
Expand Down
8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
import React from "react";

export interface FormInputType {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import { InputHTMLAttributes } from "react";

export interface FormInputType extends InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {}

이렇게 타입을 정의하시면 기본적인 input type들(id, type, value, placeholder 등)은 추가로 정의하지 않으셔도 됩니다!

id: string;
type?: string;
label?: string;
value?: string;
placeholder?: string;
onBlur?: (e: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이벤트핸들러 타입을 가져다 쓰셔도 됩니다 :)

onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;

error?:string;
hidden?: boolean;
className?: string;
rightIcon?: React.ReactNode;
accept?: string;
onChange?: (e:React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
ref?:React.Ref<HTMLInputElement | HTMLTextAreaElement>;
}

const FormInput = ({
id,
type = "text",
Expand All @@ -13,7 +29,7 @@ const FormInput = ({
accept,
ref,
...rest
}) => {
}:FormInputType) => {
return (
<div className={`${hidden ? "hidden" : "mb-[24px]"}`}>
{label && !hidden && (
Expand All @@ -25,11 +41,9 @@ const FormInput = ({
{type === "textarea" ? (
<textarea
id={id}
ref={ref}
type={type}
ref={ref as React.Ref<HTMLTextAreaElement>}
placeholder={placeholder}
onBlur={onBlur}
accept={accept}
{...rest}
className={`input-primary resize-none px-4 py-3 h-[282px] ${
error ? "border border-red-500 mb-[8px]" : ""
Expand All @@ -38,7 +52,7 @@ const FormInput = ({
) : (
<input
id={id}
ref={ref}
ref={ref as React.Ref<HTMLInputElement>}
type={type}
placeholder={placeholder}
onBlur={onBlur}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import { Link } from "react-router-dom";
import { MainBannerPropsType } from "./MainTypes";


const MainBanner = ({
title,
Expand All @@ -9,14 +10,20 @@ const MainBanner = ({
showButton,
height,
margintop,
}) => {
}:MainBannerPropsType) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 중요한 거는 아닌데 컴포넌트 프랍스는 보통 컴포넌트 안에서만 쓰이다보니 컴포넌트 안에 정의하는 게 편할 때가 많습니다 :)

return (
<div
className="w-full bg-[#cfe5ff] flex justify-center overflow-hidden pc:h-[540px] tablet:h-[771px] mobile:h-[540px]"
style={{ marginTop: margintop }}
>
<div className="w-[356px] h-[200px] flex flex-col relative right-[1rem] pc:top-[12.5rem] tablet:top-[7rem] mobile:top-[2rem] pc:left-0 tablet:left-[18rem] mobile:left-[13rem] ">
<span className="h-[112px] font-[700] text-[#374151] break-words leading-[56px] pc:w-[300px] tablet:w-[1920px] mobile:w-[270px] pc:text-left tablet:text-left mobile:text-center pc:text-[40px] tablet:text-[40px] mobile:text-[32px] ">
<div
className={`w-[356px] h-[200px] flex flex-col relative right-[1rem]
pc:top-[12.5rem] tablet:top-[7rem] mobile:top-[2rem]
pc:left-0 tablet:left-[18rem] ${
title === "믿을 수 있는" ? "left-[12rem]" : "left-[13rem]"
}`}
>
<span className="h-[112px] font-[700] text-[#374151] break-words leading-[56px] pc:w-[300px] tablet:w-[1920px] mobile:w-[270px] pc:text-left tablet:text-left mobile:text-center pc:text-[40px] tablet:text-[40px] mobile:text-[32px]">
{title}
{title === "믿을 수 있는" ? <br /> : null}
{title2}
Expand All @@ -36,9 +43,14 @@ const MainBanner = ({
src={image}
alt="panda-image"
style={{ height: height }}
className={
"h-[21.25rem] relative object-contain pc:top-[12.5rem] tablet:top-[26.9rem] mobile:top-[17.8rem] pc:right-0 tablet:right-[170px] mobile:right-[8.5rem] pc:min-w-[746px] tablet:min-w-[746px] mobile:min-w-[375px] "
}
className={`h-[21.25rem] relative object-contain
${
title === "믿을 수 있는"
? "top-[250px] tablet:top-[400px] pc:top-[150px]"
: "pc:top-[12.5rem] tablet:top-[26.9rem] mobile:top-[17.8rem]"
}
pc:right-0 tablet:right-[170px] mobile:right-[8.5rem]
pc:min-w-[746px] tablet:min-w-[746px] mobile:min-w-[375px]`}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import instagramimg from "../../assets/instagram.png";
import youtubeimg from "../../assets/youtube.png";

const MainFooter = () => {
return (
return (
<footer className="h-[160px] bg-[#111827]">
<div className="max-w-screen-xl mx-[200px] gap-10 flex justify-between items-center px-6 pt-8 tablet:mx-[100px] tablet:gap-[60px] mobile:mx-[32px] ">
<div>
Expand Down
File renamed without changes.
Loading
Loading