Skip to content

Commit

Permalink
Feat: 리스트 생성 페이지 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene-A-01 committed Feb 3, 2024
1 parent 7db29ea commit 46d440b
Show file tree
Hide file tree
Showing 33 changed files with 2,045 additions and 23 deletions.
File renamed without changes.
10 changes: 9 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ const { createVanillaExtractPlugin } = require('@vanilla-extract/next-plugin');
const withVanillaExtract = createVanillaExtractPlugin();

/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
return config;
},
};

module.exports = withVanillaExtract(nextConfig);
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@
"@tanstack/react-query-devtools": "^5.17.12",
"@vanilla-extract/integration": "^6.2.4",
"@vanilla-extract/next-plugin": "^2.3.2",
"@yaireo/tagify": "^4.19.0",
"axios": "^1.6.5",
"next": "14.0.4",
"react": "^18",
"react-dom": "^18",
"react-hook-form": "^7.49.3",
"react-scripts": "^5.0.1",
"zustand": "^4.4.7"
},
"devDependencies": {
"@svgr/webpack": "^8.1.0",
"@testing-library/jest-dom": "^6.2.0",
"@testing-library/react": "^14.1.2",
"@testing-library/react-hooks": "^8.0.1",
Expand Down
Binary file added public/fonts/Pretendard-Black.woff2
Binary file not shown.
Binary file added public/fonts/Pretendard-Bold.woff2
Binary file not shown.
Binary file added public/fonts/Pretendard-ExtraBold.woff2
Binary file not shown.
Binary file added public/fonts/Pretendard-ExtraLight.woff2
Binary file not shown.
Binary file added public/fonts/Pretendard-Light.woff2
Binary file not shown.
Binary file added public/fonts/Pretendard-Medium.woff2
Binary file not shown.
Binary file added public/fonts/Pretendard-Regular.woff2
Binary file not shown.
Binary file added public/fonts/Pretendard-SemiBold.woff2
Binary file not shown.
Binary file added public/fonts/Pretendard-Thin.woff2
Binary file not shown.
2 changes: 0 additions & 2 deletions public/fonts/init.ts

This file was deleted.

3 changes: 3 additions & 0 deletions public/icons/close_button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/icons/default_profile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions public/icons/init.ts

This file was deleted.

3 changes: 3 additions & 0 deletions public/icons/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/icons/x_circle_fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions public/images/init.ts

This file was deleted.

Binary file added public/images/mock_profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions public/styles/init.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/app/(BeforeLogin)/_components/init.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/app/(BeforeLogin)/login/_components/init.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/app/(BeforeLogin)/login/page.tsx

This file was deleted.

71 changes: 71 additions & 0 deletions src/app/create/CreateListMock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
interface UserProfileType {
id: number;
profileImageUrl: string;
nickname: string;
}

const generateMockData = (count: number): UserProfileType[] => {
const mockData: UserProfileType[] = [];

mockData.push({
id: 101,
profileImageUrl: `/images/mock_profile.png`,
nickname: '안유진',
});

mockData.push({
id: 102,
profileImageUrl: `/images/mock_profile.png`,
nickname: '강나현',
});

mockData.push({
id: 103,
profileImageUrl: `/images/mock_profile.png`,
nickname: '민서영',
});

mockData.push({
id: 104,
profileImageUrl: `/images/mock_profile.png`,
nickname: '박소현',
});

mockData.push({
id: 105,
profileImageUrl: `/images/mock_profile.png`,
nickname: '강현지',
});

mockData.push({
id: 106,
profileImageUrl: `/images/mock_profile.png`,
nickname: '신은서',
});

mockData.push({
id: 107,
profileImageUrl: `/images/mock_profile.png`,
nickname: '동호',
});

mockData.push({
id: 108,
profileImageUrl: `/images/mock_profile.png`,
nickname: 'JJUNGSU',
});

for (let i = 1; i <= count; i++) {
const user: UserProfileType = {
id: i,
profileImageUrl: '',
nickname: `User${i}`,
};

mockData.push(user);
}

return mockData;
};

export default generateMockData(20);
Loading

0 comments on commit 46d440b

Please sign in to comment.