Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 8팀 2주차 작업 내용 구현 #65

Merged
merged 37 commits into from
Sep 11, 2023

Conversation

jiji-hoon96
Copy link
Collaborator

📌 이슈 링크


📖 작업 배경

  • 8팀 2주차 작업 약속된 부분 진행중입니다.

🛠️ 구현 내용

  • 세팅 잘못된 부분있어서 다시했습니다.
  • reset.css 설정 했습니다.
  • react,vite 와 vanilla-extract 설정 새로했습니다.
  • 기본 화면구성 작업했습니다
  • 아직 스타일 진행중입니다

💡 참고사항

  • 안써본것들 투성이라서.. 엉망진창입니다.. 계속수정할게요

🖼️ 스크린샷


@jiji-hoon96
Copy link
Collaborator Author

충돌부분이 많아서 설정까지 수정해서 올리겠습니다

@jiji-hoon96
Copy link
Collaborator Author

기본 레이아웃 및 css 적용했습니다.
PR 에 대한 리뷰 남기시면 될 것 같습니다

Copy link
Collaborator

@Seung-wan Seung-wan left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~ 👍 👍

src/main.tsx Outdated
Comment on lines 12 to 30
const router = createBrowserRouter([
{
path: '/',
element: <App />,
errorElement: <ErrorPage />,
},
{
path: '/article/:id',
element: <Article />,
},
{
path: '/login',
element: <Login />,
},
{
path: '/register',
element: <Register />,
},
]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Navbar, Footer는 각 페이지마다 고정적으로 들어가서 Layout 컴포넌트를 하나 만들고, 그 안에서 Navbar, Footer를 고정시켜줘도 괜찮을 것 같아요.

Copy link
Collaborator

Choose a reason for hiding this comment

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

현재는 라우트가 많은편이 아니라서 문제는 안되지만, 각각의 라우트를 상수로 관리해서 routes와 같은 객체 배열을 만들고 createBrowserRouter에 넘겨줘도 괜찮을 것 같아요.

Copy link
Collaborator

Choose a reason for hiding this comment

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

path는 상수로 관리해줘도 좋을 것 같네요~

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

해당사항 반영해서 수정했습니다!

src/main.tsx Outdated
Comment on lines 1 to 10
import '../public/styles/main.css';
import '../public/styles/ionicons.min.css';
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import ErrorPage from './pages/ErrorPage';
import Article from './pages/Article';
import Login from './pages/Login';
import Register from './pages/Register';
Copy link
Collaborator

Choose a reason for hiding this comment

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

import 개행이 들어가면 더 깔끔할 것 같아요.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

확인해서 반영했습니다!

Copy link
Collaborator

Choose a reason for hiding this comment

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

article.tsx -> Article.tsx가 되어야 할 것 같아요~

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

재 폴더구조에서는 해당항이 전부다 대문자로 보이는데 깃헙에서는 소문자로 보이네요?
스크린샷 2023-09-10 오후 6 01 11

Copy link
Collaborator

Choose a reason for hiding this comment

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

로컬에서 대소문자 변경이 반영이 안된 것 같아요~
git 대소문자 요렇게 한번 해결해보실래요?

Copy link
Collaborator

Choose a reason for hiding this comment

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

errorpage.tsx -> ErrorPage.tsx 여기도 요렇게 되어야 할 것 같네요!?

};
return (
<div>
<button onClick={onClick}>잘못된 경로입니다</button>
Copy link
Collaborator

Choose a reason for hiding this comment

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

html button에 명시적으로 type을 잡아주시는 건 어떻게 생각하시나요~?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

좋은생각입니다! 임시적으로 에러페이지를 만들어놔서 type 지정 후 추후 작업에 반영할게요!

src/main.tsx Outdated
Comment on lines 7 to 9

import App from './App';

Copy link
Member

Choose a reason for hiding this comment

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

요 띄어쓰기는 의도하신건가요? 👀

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

의도가 아니여서 수정했습니다!

src/main.tsx Outdated
Comment on lines 25 to 26
const router = createBrowserRouter([
{
Copy link
Member

Choose a reason for hiding this comment

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

엔트리 포인트에 레이아웃, 라우터를 두기보다 파일로 분리하는 건 어떨까요? 엔트리 파일에 구현부가 많아지면 눈이 많이 갈 것 같네요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

해당사항 반영해서 수정했습니다! 감사합니다!

@jiji-hoon96 jiji-hoon96 merged commit 9ec9e2c into pagers-org:team8/jiji-hoon96 Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants