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: 리스트 생성 페이지 구현 #12

Merged
merged 2 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -27,14 +27,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",
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@testing-library/jest-dom": "^6.2.0",
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