@daeryun/dr_components 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +3 -0
- package/.idea/modules.xml +8 -0
- package/.idea/npm_test.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/README.md +24 -24
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +28 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/next.config.js +6 -0
- package/package.json +13 -61
- package/pages/_app.tsx +6 -0
- package/pages/_document.tsx +13 -0
- package/pages/api/hello.ts +13 -0
- package/pages/index.tsx +118 -0
- package/postcss.config.js +6 -0
- package/src/lib/components/Button/Button.d.ts +11 -0
- package/src/lib/components/Button/Button.js +17 -0
- package/src/lib/index.ts +1 -0
- package/styles/globals.css +27 -0
- package/tailwind.config.js +37 -0
- package/tsconfig.json +23 -0
- package/custom.d.ts +0 -7
- package/dist/asset/images/cat.png +0 -0
- package/dist/asset/images/categoryView/section9_arrow_01.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_02.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_03.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_04.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_05.webp +0 -0
- package/dist/asset/images/categoryView/section9_icon.webp +0 -0
- package/dist/asset/images/fix/arrow.webp +0 -0
- package/dist/asset/images/fix/call.webp +0 -0
- package/dist/asset/images/fix/call2.webp +0 -0
- package/dist/asset/images/fix/kakao.webp +0 -0
- package/dist/asset/images/fix/menu_x.webp +0 -0
- package/dist/asset/images/fix/online.webp +0 -0
- package/dist/asset/images/footer/footer_daeryun.webp +0 -0
- package/dist/asset/images/footer/ft_icon_arr_2.webp +0 -0
- package/dist/asset/images/footer/icon_arrow_gray.webp +0 -0
- package/dist/asset/images/footer/sns_01.webp +0 -0
- package/dist/asset/images/footer/sns_02.webp +0 -0
- package/dist/asset/images/footer/sns_03.webp +0 -0
- package/dist/asset/images/footer/sns_04.webp +0 -0
- package/dist/asset/images/footer/sns_05.webp +0 -0
- package/dist/asset/images/header/h_icon_g.webp +0 -0
- package/dist/asset/images/header/header_call.webp +0 -0
- package/dist/asset/images/header/language.webp +0 -0
- package/dist/asset/images/header/logo_s.webp +0 -0
- package/dist/asset/images/header/main_img_01.webp +0 -0
- package/dist/asset/images/header/main_img_02.webp +0 -0
- package/dist/asset/images/header/main_img_03.webp +0 -0
- package/dist/asset/images/header/menu.webp +0 -0
- package/dist/asset/images/header/menu_call.webp +0 -0
- package/dist/asset/images/header/menu_sns.webp +0 -0
- package/dist/asset/images/header/menu_sns_01.webp +0 -0
- package/dist/asset/images/header/menu_sns_02.webp +0 -0
- package/dist/asset/images/header/menu_sns_03.webp +0 -0
- package/dist/asset/images/header/menu_sns_04.webp +0 -0
- package/dist/asset/images/header/menu_sns_05.webp +0 -0
- package/dist/asset/images/header/menu_x.webp +0 -0
- package/dist/asset/images/header/online.png +0 -0
- package/dist/asset/images/header/phone.png +0 -0
- package/dist/asset/images/header/talk.png +0 -0
- package/dist/asset/images/header/top_icon_01.webp +0 -0
- package/dist/asset/images/header/top_icon_02.webp +0 -0
- package/dist/asset/images/header/top_icon_03.webp +0 -0
- package/dist/asset/images/header/top_icon_04.webp +0 -0
- package/dist/asset/images/logo.webp +0 -0
- package/dist/cjs/cn/common.json +0 -156
- package/dist/cjs/en/common.json +0 -156
- package/dist/cjs/index.d.ts +0 -4
- package/dist/cjs/index.js +0 -14
- package/dist/cjs/jp/common.json +0 -156
- package/dist/cjs/ko/common.json +0 -156
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.ts +0 -1
- package/dist/index.ts +0 -1
- package/dist/styles/globals.css +0 -610
- /package/{dist → src/lib}/components/Button/Button.tsx +0 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
9
|
+
<orderEntry type="inheritedJdk" />
|
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|
package/.idea/vcs.xml
ADDED
package/README.md
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
|
|
2
2
|
|
|
3
|
+
## Getting Started
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
First, run the development server:
|
|
5
6
|
|
|
6
7
|
```bash
|
|
7
|
-
npm
|
|
8
|
+
npm run dev
|
|
9
|
+
# or
|
|
10
|
+
yarn dev
|
|
11
|
+
# or
|
|
12
|
+
pnpm dev
|
|
13
|
+
# or
|
|
14
|
+
bun dev
|
|
8
15
|
```
|
|
9
16
|
|
|
10
|
-
|
|
17
|
+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
|
11
18
|
|
|
12
|
-
|
|
13
|
-
import { Top } from '@daeryun/dr_components';
|
|
14
|
-
```
|
|
19
|
+
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
|
|
15
20
|
|
|
16
|
-
|
|
21
|
+
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
|
|
17
22
|
|
|
18
|
-
|
|
23
|
+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
|
|
19
24
|
|
|
20
|
-
|
|
21
|
-
npm publish
|
|
22
|
-
```
|
|
25
|
+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
|
|
23
26
|
|
|
27
|
+
## Learn More
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
To learn more about Next.js, take a look at the following resources:
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
```
|
|
31
|
+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
|
32
|
+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
|
30
33
|
|
|
34
|
+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
|
|
31
35
|
|
|
32
|
-
##
|
|
36
|
+
## Deploy on Vercel
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
npm start: 프로덕션 서버 시작
|
|
38
|
-
npm run lint: 린트 검사 실행
|
|
39
|
-
npm run prepare: 라이브러리 빌드 및 배포를 위한 준비 진행
|
|
40
|
-
```
|
|
38
|
+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
|
39
|
+
|
|
40
|
+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
|
|
@@ -7,5 +7,5 @@ interface IButtonPropsTypes extends React.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
7
7
|
className?: string;
|
|
8
8
|
ref?: any;
|
|
9
9
|
}
|
|
10
|
-
declare const Button: (props: IButtonPropsTypes) =>
|
|
10
|
+
declare const Button: (props: IButtonPropsTypes) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default Button;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
var Button = function (props) {
|
|
25
|
+
var isRound = props.isRound, borderColor = props.borderColor, textColor = props.textColor, bgColor = props.bgColor, className = props.className, ref = props.ref, children = props.children, others = __rest(props, ["isRound", "borderColor", "textColor", "bgColor", "className", "ref", "children"]);
|
|
26
|
+
return (_jsx("button", __assign({}, others, { ref: ref, className: className + ' flex items-center justify-center', style: __assign(__assign(__assign(__assign({}, (borderColor && { border: '1px solid ' + borderColor })), (bgColor && { backgroundColor: bgColor })), (textColor && { color: textColor })), (isRound && { borderRadius: '9999px' })), children: children })));
|
|
27
|
+
};
|
|
28
|
+
export default Button;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as Button } from './components/Button/Button';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Button } from './components/Button/Button';
|
package/next.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,83 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daeryun/dr_components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"
|
|
8
|
-
".": {
|
|
9
|
-
"import": "./dist/index.js",
|
|
10
|
-
"require": "./dist/cjs/index.js",
|
|
11
|
-
"types": "./dist/index.d.ts"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"description": "daeryun 홈페이지 공통 컴포넌트",
|
|
15
|
-
"author": "daeryun",
|
|
16
|
-
"license": "",
|
|
17
|
-
"keywords": [],
|
|
7
|
+
"browser": "./browser/specific/main.js",
|
|
18
8
|
"scripts": {
|
|
19
9
|
"dev": "next dev",
|
|
20
10
|
"build": "next build",
|
|
21
11
|
"start": "next start",
|
|
22
|
-
"prepare": "rm -rf dist && mkdir dist && babel ./common -d dist --copy-files && npx tailwindcss -i common/styles/globals.css -o ./dist/styles/globals.css && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json ",
|
|
23
12
|
"lint": "next lint",
|
|
24
|
-
"
|
|
25
|
-
"build-storybook": "storybook build"
|
|
13
|
+
"compile": "rm -rf dist && mkdir dist && tsc"
|
|
26
14
|
},
|
|
27
|
-
"browser": "./browser/specific/main.js",
|
|
28
15
|
"dependencies": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"moment": "^2.29.4",
|
|
33
|
-
"react-query": "^3.39.3",
|
|
34
|
-
"react-uuid": "^2.0.0",
|
|
35
|
-
"remove-markdown": "^0.5.0",
|
|
36
|
-
"storybook": "^7.6.17"
|
|
16
|
+
"react": "^18",
|
|
17
|
+
"react-dom": "^18",
|
|
18
|
+
"next": "13.5.6"
|
|
37
19
|
},
|
|
38
20
|
"devDependencies": {
|
|
39
|
-
"
|
|
40
|
-
"@babel/core": "^7.25.2",
|
|
41
|
-
"@babel/plugin-transform-runtime": "^7.25.4",
|
|
42
|
-
"@babel/preset-env": "^7.25.4",
|
|
43
|
-
"@babel/preset-react": "^7.24.7",
|
|
44
|
-
"@babel/preset-typescript": "^7.24.7",
|
|
45
|
-
"@babel/runtime": "^7.25.6",
|
|
46
|
-
"@babel/runtime-corejs3": "^7.25.6",
|
|
47
|
-
"@storybook/addon-essentials": "^7.6.17",
|
|
48
|
-
"@storybook/addon-interactions": "^7.6.17",
|
|
49
|
-
"@storybook/addon-links": "^7.6.17",
|
|
50
|
-
"@storybook/addon-onboarding": "^1.0.11",
|
|
51
|
-
"@storybook/blocks": "^7.6.17",
|
|
52
|
-
"@storybook/nextjs": "^7.6.17",
|
|
53
|
-
"@storybook/react": "^7.6.17",
|
|
54
|
-
"@storybook/test": "^7.6.17",
|
|
21
|
+
"typescript": "^5",
|
|
55
22
|
"@types/node": "^20",
|
|
56
23
|
"@types/react": "^18",
|
|
57
24
|
"@types/react-dom": "^18",
|
|
58
|
-
"autoprefixer": "^10
|
|
59
|
-
"babel-cli": "^6.26.0",
|
|
60
|
-
"babel-loader": "^9.1.3",
|
|
61
|
-
"eslint": "^8.21.0",
|
|
62
|
-
"eslint-config-next": "13",
|
|
63
|
-
"eslint-config-prettier": "^9.1.0",
|
|
64
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
65
|
-
"eslint-plugin-storybook": "^0.8.0",
|
|
66
|
-
"fs": "^0.0.1-security",
|
|
67
|
-
"husky": "^8.0.3",
|
|
68
|
-
"is-mobile": "^4.0.0",
|
|
69
|
-
"isomorphic-dompurify": "^1.12.0",
|
|
70
|
-
"next": "13.5.6",
|
|
71
|
-
"next-i18next": "^15.0.0",
|
|
25
|
+
"autoprefixer": "^10",
|
|
72
26
|
"postcss": "^8",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"tailwindcss": "^3.3.0",
|
|
77
|
-
"ts-loader": "^9.5.1",
|
|
78
|
-
"typescript": "^5.5.4",
|
|
79
|
-
"webpack-cli": "^5.1.4"
|
|
27
|
+
"tailwindcss": "^3",
|
|
28
|
+
"eslint": "^8",
|
|
29
|
+
"eslint-config-next": "13.5.6"
|
|
80
30
|
},
|
|
31
|
+
"description": "daeryun 홈페이지 공통 컴포넌트",
|
|
32
|
+
"author": "daeryun",
|
|
81
33
|
"bugs": {
|
|
82
34
|
"url": "https://github.com/daeryun/daeryun_components/issues"
|
|
83
35
|
},
|
package/pages/_app.tsx
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
|
2
|
+
import type { NextApiRequest, NextApiResponse } from 'next'
|
|
3
|
+
|
|
4
|
+
type Data = {
|
|
5
|
+
name: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default function handler(
|
|
9
|
+
req: NextApiRequest,
|
|
10
|
+
res: NextApiResponse<Data>
|
|
11
|
+
) {
|
|
12
|
+
res.status(200).json({ name: 'John Doe' })
|
|
13
|
+
}
|
package/pages/index.tsx
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import Image from 'next/image'
|
|
2
|
+
import { Inter } from 'next/font/google'
|
|
3
|
+
|
|
4
|
+
const inter = Inter({ subsets: ['latin'] })
|
|
5
|
+
|
|
6
|
+
export default function Home() {
|
|
7
|
+
return (
|
|
8
|
+
<main
|
|
9
|
+
className={`flex min-h-screen flex-col items-center justify-between p-24 ${inter.className}`}
|
|
10
|
+
>
|
|
11
|
+
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
|
|
12
|
+
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
|
|
13
|
+
Get started by editing
|
|
14
|
+
<code className="font-mono font-bold">pages/index.tsx</code>
|
|
15
|
+
</p>
|
|
16
|
+
<div className="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:h-auto lg:w-auto lg:bg-none">
|
|
17
|
+
<a
|
|
18
|
+
className="pointer-events-none flex place-items-center gap-2 p-8 lg:pointer-events-auto lg:p-0"
|
|
19
|
+
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
|
|
20
|
+
target="_blank"
|
|
21
|
+
rel="noopener noreferrer"
|
|
22
|
+
>
|
|
23
|
+
By{' '}
|
|
24
|
+
<Image
|
|
25
|
+
src="/vercel.svg"
|
|
26
|
+
alt="Vercel Logo"
|
|
27
|
+
className="dark:invert"
|
|
28
|
+
width={100}
|
|
29
|
+
height={24}
|
|
30
|
+
priority
|
|
31
|
+
/>
|
|
32
|
+
</a>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div className="relative flex place-items-center before:absolute before:h-[300px] before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700/10 after:dark:from-sky-900 after:dark:via-[#0141ff]/40 before:lg:h-[360px]">
|
|
37
|
+
<Image
|
|
38
|
+
className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert"
|
|
39
|
+
src="/next.svg"
|
|
40
|
+
alt="Next.js Logo"
|
|
41
|
+
width={180}
|
|
42
|
+
height={37}
|
|
43
|
+
priority
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div className="mb-32 grid text-center lg:max-w-5xl lg:w-full lg:mb-0 lg:grid-cols-4 lg:text-left">
|
|
48
|
+
<a
|
|
49
|
+
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
|
|
50
|
+
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
|
|
51
|
+
target="_blank"
|
|
52
|
+
rel="noopener noreferrer"
|
|
53
|
+
>
|
|
54
|
+
<h2 className={`mb-3 text-2xl font-semibold`}>
|
|
55
|
+
Docs{' '}
|
|
56
|
+
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
57
|
+
->
|
|
58
|
+
</span>
|
|
59
|
+
</h2>
|
|
60
|
+
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
|
|
61
|
+
Find in-depth information about Next.js features and API.
|
|
62
|
+
</p>
|
|
63
|
+
</a>
|
|
64
|
+
|
|
65
|
+
<a
|
|
66
|
+
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
|
|
67
|
+
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
|
|
68
|
+
target="_blank"
|
|
69
|
+
rel="noopener noreferrer"
|
|
70
|
+
>
|
|
71
|
+
<h2 className={`mb-3 text-2xl font-semibold`}>
|
|
72
|
+
Learn{' '}
|
|
73
|
+
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
74
|
+
->
|
|
75
|
+
</span>
|
|
76
|
+
</h2>
|
|
77
|
+
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
|
|
78
|
+
Learn about Next.js in an interactive course with quizzes!
|
|
79
|
+
</p>
|
|
80
|
+
</a>
|
|
81
|
+
|
|
82
|
+
<a
|
|
83
|
+
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
|
|
84
|
+
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
|
|
85
|
+
target="_blank"
|
|
86
|
+
rel="noopener noreferrer"
|
|
87
|
+
>
|
|
88
|
+
<h2 className={`mb-3 text-2xl font-semibold`}>
|
|
89
|
+
Templates{' '}
|
|
90
|
+
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
91
|
+
->
|
|
92
|
+
</span>
|
|
93
|
+
</h2>
|
|
94
|
+
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
|
|
95
|
+
Discover and deploy boilerplate example Next.js projects.
|
|
96
|
+
</p>
|
|
97
|
+
</a>
|
|
98
|
+
|
|
99
|
+
<a
|
|
100
|
+
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
|
|
101
|
+
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
|
|
102
|
+
target="_blank"
|
|
103
|
+
rel="noopener noreferrer"
|
|
104
|
+
>
|
|
105
|
+
<h2 className={`mb-3 text-2xl font-semibold`}>
|
|
106
|
+
Deploy{' '}
|
|
107
|
+
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
108
|
+
->
|
|
109
|
+
</span>
|
|
110
|
+
</h2>
|
|
111
|
+
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
|
|
112
|
+
Instantly deploy your Next.js site to a shareable URL with Vercel.
|
|
113
|
+
</p>
|
|
114
|
+
</a>
|
|
115
|
+
</div>
|
|
116
|
+
</main>
|
|
117
|
+
)
|
|
118
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IButtonPropsTypes extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
isRound?: boolean;
|
|
4
|
+
borderColor?: string;
|
|
5
|
+
textColor?: string;
|
|
6
|
+
bgColor?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
ref?: any;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: (props: IButtonPropsTypes) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Button;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
const Button = (props) => {
|
|
14
|
+
const { isRound, borderColor, textColor, bgColor, className, ref, children } = props, others = __rest(props, ["isRound", "borderColor", "textColor", "bgColor", "className", "ref", "children"]);
|
|
15
|
+
return (_jsx("button", Object.assign({}, others, { ref: ref, className: className + ' flex items-center justify-center', style: Object.assign(Object.assign(Object.assign(Object.assign({}, (borderColor && { border: '1px solid ' + borderColor })), (bgColor && { backgroundColor: bgColor })), (textColor && { color: textColor })), (isRound && { borderRadius: '9999px' })), children: children })));
|
|
16
|
+
};
|
|
17
|
+
export default Button;
|
package/src/lib/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Button } from './components/Button/Button'
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--foreground-rgb: 0, 0, 0;
|
|
7
|
+
--background-start-rgb: 214, 219, 220;
|
|
8
|
+
--background-end-rgb: 255, 255, 255;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media (prefers-color-scheme: dark) {
|
|
12
|
+
:root {
|
|
13
|
+
--foreground-rgb: 255, 255, 255;
|
|
14
|
+
--background-start-rgb: 0, 0, 0;
|
|
15
|
+
--background-end-rgb: 0, 0, 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
color: rgb(var(--foreground-rgb));
|
|
21
|
+
background: linear-gradient(
|
|
22
|
+
to bottom,
|
|
23
|
+
transparent,
|
|
24
|
+
rgb(var(--background-end-rgb))
|
|
25
|
+
)
|
|
26
|
+
rgb(var(--background-start-rgb));
|
|
27
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
purge: ['./pages/**/*.tsx', './components/**/*.tsx'],
|
|
3
|
+
content: [
|
|
4
|
+
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
|
|
5
|
+
'./components/**/*.{js,ts,jsx,tsx,mdx}',
|
|
6
|
+
'./src/**/*.{js,ts,jsx,tsx,mdx}'
|
|
7
|
+
],
|
|
8
|
+
theme: {
|
|
9
|
+
extend: {
|
|
10
|
+
colors: {
|
|
11
|
+
primary: '#3C50E0',
|
|
12
|
+
mainRed: '#AB0634'
|
|
13
|
+
},
|
|
14
|
+
screens: {
|
|
15
|
+
'4xs': '300px',
|
|
16
|
+
'3xs': '325px',
|
|
17
|
+
'2xs': '400px',
|
|
18
|
+
xs: '480px',
|
|
19
|
+
'2sm': '520px',
|
|
20
|
+
sm: '640px',
|
|
21
|
+
md: '768px',
|
|
22
|
+
md2: '900px',
|
|
23
|
+
lg: '1024px',
|
|
24
|
+
lg2: '1200px',
|
|
25
|
+
xl: '1280px',
|
|
26
|
+
xxl: '1400px',
|
|
27
|
+
'3xl': '1500px',
|
|
28
|
+
|
|
29
|
+
'4xl': '1600px',
|
|
30
|
+
'5xl': '1700px',
|
|
31
|
+
'6xl': '1800px',
|
|
32
|
+
full: '1920px'
|
|
33
|
+
},
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
plugins: []
|
|
37
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5", // 컴파일된 JS 코드의 ECMAScript 버전
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"], // 포함할 라이브러리 목록
|
|
5
|
+
"allowJs": true, // JS 파일 컴파일 허용
|
|
6
|
+
"noEmit": false, // 컴파일러가 출력 파일 생성
|
|
7
|
+
"declaration": true, // .d.ts 선언 파일 생성
|
|
8
|
+
"outDir": "dist", // 컴파일된 파일 저장 디렉토리
|
|
9
|
+
"skipLibCheck": true, // 라이브러리 파일 타입 체크 스킵
|
|
10
|
+
"esModuleInterop": true, // CommonJS 모듈을 ES6처럼 사용
|
|
11
|
+
"allowSyntheticDefaultImports": true, // 디폴트 모듈 import 문법 사용 허용
|
|
12
|
+
"strict": true, // 엄격한 타입 체킹 활성화
|
|
13
|
+
"forceConsistentCasingInFileNames": true, // 파일 이름 대소문자 일관성 강제
|
|
14
|
+
"noFallthroughCasesInSwitch": true, // switch문의 case문 넘어감 방지
|
|
15
|
+
"module": "esnext", // 모듈 시스템 (최신 ECMAScript)
|
|
16
|
+
"moduleResolution": "node", // 모듈 해석 방식 (Node.js)
|
|
17
|
+
"resolveJsonModule": true, // JSON 모듈 가져오기 허용
|
|
18
|
+
"isolatedModules": true, // 파일을 독립적 모듈로 컴파일
|
|
19
|
+
"jsx": "react-jsx" // JSX 코드 처리 방식 (React JSX)
|
|
20
|
+
},
|
|
21
|
+
// 컴파일할 파일 패턴
|
|
22
|
+
"include": ["./src/lib/**/*.tsx", "./src/lib/**/*.ts"]
|
|
23
|
+
}
|
package/custom.d.ts
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|