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

chore, style : 프로젝트 아키텍처 세팅 #14

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

Ubinquitous
Copy link
Member

Issue Number

#8

What

프로젝트 아키텍처를 세팅했습니다.

Why

.

How

간단하고 개발자가 빠르게 타겟 도메인을 찾아 개발할 수 있게함이 철학이자 목표입니다.

ScreenShot

스크린샷 2024-03-05 오전 11 16 31

@Ubinquitous Ubinquitous added chore 자잘한 변경 style 스타일 변경 (퍼블리싱말고 코드 스타일) labels Mar 5, 2024
@Ubinquitous Ubinquitous requested review from 5ewon and jyh071116 March 5, 2024 02:17
@Ubinquitous Ubinquitous self-assigned this Mar 5, 2024
Copy link
Member

@jyh071116 jyh071116 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다

Comment on lines +1 to +5
const LayoutProvider = ({ children }: React.PropsWithChildren) => {
return <>{children}</>;
};

export default LayoutProvider;
Copy link
Member

Choose a reason for hiding this comment

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

LayoutProvider의 존재 이유가 궁금합니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

LayoutProvider는 아직 작성된 레이아웃이 없어 빈 프레임을 사용했습니다!
보통 공통적으로 들어가는 레이아웃이나 형식을 지정할 때 사용하려고 생각 중입니다!
제가 진행했던 BSM 서비스에서는 다음과 같이 사용합니다😀

import "react-toastify/dist/ReactToastify.css";
import { ToastContainer, toast } from "react-toastify";
import styled from "styled-components";
import { Footer, Header } from "@/components/common";
import { GlobalStyle, flex } from "@/styles";
import Modal from "@/@modal/layouts";

const LayoutProvider = ({ children }: React.PropsWithChildren) => {
  return (
    <>
      <StyledToastify autoClose={1000} position={toast.POSITION.TOP_RIGHT} />
      <GlobalStyle />
      <Modal />
      <Layout>
        <Header />
        <Main>{children}</Main>
        <Footer />
      </Layout>
    </>
  );
};

const StyledToastify = styled(ToastContainer)`
  .Toastify__toast {
    color: black;
    font-size: 14px;
  }
`;

const Layout = styled.div`
  ${flex.COLUMN_FLEX};
  gap: 6vh;
`;

const Main = styled.main`
  ${flex.FLEX};
  gap: 14px;
  width: 100%;
  padding: 0 8vw;
  min-height: 52vh;
`;

export default LayoutProvider;

Copy link
Member

@5ewon 5ewon left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~

Ubinquitous added a commit that referenced this pull request Mar 5, 2024
@Ubinquitous Ubinquitous merged commit 1f96df0 into main Mar 5, 2024
Ubinquitous added a commit that referenced this pull request Mar 21, 2024
@Ubinquitous Ubinquitous deleted the feat/setting-project-architecture branch November 15, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore 자잘한 변경 style 스타일 변경 (퍼블리싱말고 코드 스타일)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants