Skip to content

Commit

Permalink
Merge pull request #4 from DS-UMC-7th/feature/#3-review
Browse files Browse the repository at this point in the history
경로 수정
  • Loading branch information
seunghyeonKang authored Nov 21, 2024
2 parents 70579e5 + 6d84c68 commit d7d0832
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 64 deletions.
Empty file removed review/src/App.css
Empty file.
28 changes: 11 additions & 17 deletions review/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import {createBrowserRouter, RouterProvider} from "react-router-dom";
import { createBrowserRouter, RouterProvider } from "react-router-dom";

import MainPage from "./pages/Main.jsx";
import NotFound from "./pages/not-found.jsx";
import RootLayout from "./layout/root-layout.jsx";
import Recent from "./pages/RecentReview.jsx"
import Popularity from "./pages/PopularityReview.jsx";
import WriteReview from "./pages/WriteReview.jsx";
import ReviewDetail from "./pages/ReviewDetail.jsx";
import Reviews from "./pages/Reviews.jsx";

const router = createBrowserRouter([
{
path: '/',
path: "/",
element: <RootLayout />,
errorElement: <NotFound />,
children: [
Expand All @@ -19,33 +18,28 @@ const router = createBrowserRouter([
element: <MainPage />,
},
{
path: 'review',
path: "review",
children: [
{
path: 'recent',
element: <Recent />,
path: "list",
element: <Reviews />,
},
{
path: 'popularity',
element: <Popularity />,
path: "detail",
element: <ReviewDetail />,
},
{
path: 'write',
path: "write",
element: <WriteReview />,
},
{
path: 'detail',
element: <ReviewDetail />,
},
],
},
],
},
]);

function App() {
return <RouterProvider router={router}/>
return <RouterProvider router={router} />;
}


export default App;
export default App;
1 change: 0 additions & 1 deletion review/src/assets/react.svg

This file was deleted.

12 changes: 5 additions & 7 deletions review/src/components/header/NavBar.jsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import { Link } from 'react-router-dom';
import * as S from './NavBar.style.js';
import { Link } from "react-router-dom";
import * as S from "./NavBar.style.js";

const Navbar = () => {

return (
<S.NavbarContainer>
<S.Logo to="/">REWVIEW IN CLASS</S.Logo>
<S.NavButtonsWrapper>
<S.NavButton to="/review/popularity">인기 리뷰</S.NavButton>
<S.NavButton to="/review/recent">최근 리뷰</S.NavButton>
<S.NavButton to="/review/list">전체 리뷰</S.NavButton>
<S.NavButton to="/review/write">강의평 등록하기</S.NavButton>
<S.NavButton>검색창</S.NavButton>
</S.NavButtonsWrapper>
</S.NavbarContainer>
);
};

export default Navbar;

export default Navbar;
Empty file removed review/src/index.css
Empty file.
13 changes: 6 additions & 7 deletions review/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.jsx'
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App.jsx";

createRoot(document.getElementById('root')).render(
createRoot(document.getElementById("root")).render(
<StrictMode>
<App />
</StrictMode>,
)
</StrictMode>
);
16 changes: 0 additions & 16 deletions review/src/pages/PopularityReview.jsx

This file was deleted.

16 changes: 0 additions & 16 deletions review/src/pages/RecentReview.jsx

This file was deleted.

14 changes: 14 additions & 0 deletions review/src/pages/Reviews.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import styled from "styled-components";

const Reviews = () => {
return <StyledContent>Reviews Page</StyledContent>;
};

export default Reviews;

const StyledContent = styled.h1`
height: 100%;
background-color: white;
color: black;
margin-top: 5px;
`;

0 comments on commit d7d0832

Please sign in to comment.