diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 000000000..e0f23c27a Binary files /dev/null and b/.DS_Store differ diff --git a/frontend/__tests__/hello.tsx b/frontend/__tests__/hello.tsx deleted file mode 100644 index 572451745..000000000 --- a/frontend/__tests__/hello.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { render } from '@testing-library/react'; -import { ThemeProvider } from 'styled-components'; -import { HomeIcon } from 'assets/icons'; -import Button from 'components/@common/Button/Button'; -import { theme } from 'styles/theme'; - -describe('render 테스트', () => { - it('matches snapshot', () => { - render( - - + + diff --git a/frontend/src/routes/Router.tsx b/frontend/src/routes/Router.tsx index c60169b8f..ccfe5eb5a 100644 --- a/frontend/src/routes/Router.tsx +++ b/frontend/src/routes/Router.tsx @@ -18,6 +18,7 @@ import TrashCanPage from 'pages/TrashCanPage/TrashCanPage'; import PrivateRouter from './PrivateRouter'; import { Suspense, lazy } from 'react'; +import HomePage from 'pages/HomePage/HomePage'; const IntroducePage = lazy(() => import('pages/IntroducePage/IntroducePage')); @@ -34,6 +35,7 @@ export const Router = () => { } /> }> + } /> } /> } /> } /> diff --git a/frontend/src/types/apis/writings.ts b/frontend/src/types/apis/writings.ts index 83dc09222..9524201af 100644 --- a/frontend/src/types/apis/writings.ts +++ b/frontend/src/types/apis/writings.ts @@ -1,4 +1,5 @@ import { Blog, PublishingPropertyData } from 'types/domain'; +import { CategoryResponse } from './category'; export type AddWritingRequest = FormData; @@ -59,3 +60,40 @@ export type UpdateWritingOrderArgs = { nextWritingId: number; }; }; + +type HomeContent = { + id: number; + title: string; + category: CategoryResponse; + createdAt: Date; + publishedDetails: Omit[]; +}; + +type Sort = { + empty: boolean; + sorted: boolean; + unsorted: boolean; +}; + +type Pageable = { + sort: Sort; + offset: number; + pageNumber: number; + pageSize: number; + paged: boolean; + unpaged: boolean; +}; + +export type GetHomeWritingsResponse = { + content: HomeContent[]; + pageable: Pageable; + totalPages: number; + totalElements: number; + last: boolean; + size: number; + number: number; + sort: Sort; + numberOfElements: number; + first: boolean; + empty: boolean; +};