+
+
추천도서
+
{list &&
list.map((item) => (
-
+
+
{item.product_name}
+
+ {item.summary_description.length > 85
+ ? item.summary_description.slice(0, 85) + '...'
+ : item.summary_description}
+
+
))}
diff --git a/src/Components/Views/MainPage/MainPage.scss b/src/Components/Views/MainPage/MainPage.scss
index 030a8cd6..cee92cc3 100644
--- a/src/Components/Views/MainPage/MainPage.scss
+++ b/src/Components/Views/MainPage/MainPage.scss
@@ -4,15 +4,25 @@
margin: 0;
padding: 0;
}
-main {
- position: relative;
- display: flex;
+.wrapper {
+ width: 1200px;
+ margin: 100px auto 0;
}
a {
display: block;
text-decoration: none;
color: black;
}
+// CATEGORY
+main {
+ position: relative;
+ display: flex;
+ width: 1200px;
+ margin: 100px auto;
+ .tag-box {
+ width: 300px;
+ }
+}
.category-menu {
position: sticky;
top: 0;
@@ -34,16 +44,6 @@ a {
border-radius: 30px;
}
}
-// CATEGORY
-.wrapper {
- position: relative;
- display: flex;
- width: 1200px;
- margin: 100px auto;
- .tag-box {
- width: 300px;
- }
-}
.books {
display: flex;
diff --git a/src/Components/Views/MainPage/MainPage.tsx b/src/Components/Views/MainPage/MainPage.tsx
index 024cf775..914d8b84 100644
--- a/src/Components/Views/MainPage/MainPage.tsx
+++ b/src/Components/Views/MainPage/MainPage.tsx
@@ -20,10 +20,10 @@ if (params.get('code')) {
export default function MainPage() {
return (
- <>
+
- >
+
);
}
diff --git a/src/main.tsx b/src/main.tsx
index 39808af3..a9043054 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -1,22 +1,16 @@
-import React from 'react'
-import ReactDOM from 'react-dom/client'
-import App from './App.tsx'
-import './index.scss'
-import { Provider } from 'react-redux';
-import store from './store/'
+import React from 'react';
+import ReactDOM from 'react-dom/client';
+import App from './App';
+import './index.scss';
+
//import ReduxThunk from 'redux-thunk';
// import thunk from 'redux-thunk';
// import { createStore, applyMiddleware } from 'redux';
// import reducer from '_reducers/user_reducer.tsx';
-
//const createStoreWithMiddleware = applyMiddleware(promiseMiddleware, ReduxThunk)(createStore);
//const store = createStore(reducer, applyMiddleware(thunk));
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
-
-
-
-
-
-)
+
+);
diff --git a/src/routes/routes.tsx b/src/routes/routes.tsx
index 63546b65..71b91cde 100644
--- a/src/routes/routes.tsx
+++ b/src/routes/routes.tsx
@@ -1,50 +1,49 @@
-import Header from 'Common/Layout/Header/header'
-import Footer from 'Common/Layout/Footer/footer'
-import MainPage from 'Components/Views/MainPage/mainPage'
-import Join from 'Common/Form/Signin/join'
-import Login from 'Common/Form/Login/login'
-import CartPage from 'Components/Views/CartPage/CartPage'
-import MyPage from 'Components/Views/MyPage/MyPage'
-import PrivatePage from './privateRoute'
-import DetailPage from 'Components/Views/DetailPage/DetailPage'
+import Header from '@/Common/Layout/Header/header';
+import Footer from '@/Common/Layout/Footer/footer';
+import MainPage from '@/Components/Views/MainPage/mainPage';
+import Join from '@/Common/Form/Signin/join';
+import Login from '@/Common/Form/Login/login';
+import CartPage from '@/Components/Views/CartPage/CartPage';
+import MyPage from '@/Components/Views/MyPage/MyPage';
+import PrivatePage from './privateRoute';
+import DetailPage from '@/Components/Views/DetailPage/DetailPage';
-import { Routes, BrowserRouter, Route, Outlet } from 'react-router-dom'
+import { Routes, BrowserRouter, Route, Outlet } from 'react-router-dom';
- const Layout = () => {
- return(
+const Layout = () => {
+ return (
<>
-
+
-
+
>
- )
-}
+ );
+};
function RoutesPage() {
-
- return(
+ return (
<>
-
-
- }>
- }/>
- }/>
- }/>
- } />
- } status={""}/>}/>
- } status={""}/>}
- />
-
-
-
+
+
+ }>
+ } />
+ } />
+ } />
+ } />
+ } status={''} />}
+ />
+ } status={''} />}
+ />
- {/* }/> */}
-
-
-
+ {/* }/> */}
+
+
+
>
- )
+ );
}
-export default RoutesPage
\ No newline at end of file
+export default RoutesPage;
diff --git a/tsconfig.json b/tsconfig.json
index 5518d03d..4e0d67aa 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -7,7 +7,7 @@
"skipLibCheck": true,
"baseUrl": "./",
"paths": {
- "@/": ["src/"]
+ "@/*": ["src/*"]
},
/* Bundler mode */