Skip to content

Commit

Permalink
Merge pull request #7 from GitHub-Practice-Together/차크라-ui를-이용해서-box-…
Browse files Browse the repository at this point in the history
…layout-적용

차크라 UI를 이용해서 box layout 적용
  • Loading branch information
jkea1 authored Sep 30, 2023
2 parents 9468f4c + e27f586 commit a681efd
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 72 deletions.
3 changes: 1 addition & 2 deletions vite-project/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
"trailingComma": "none",
"endOfLine": "auto",
"bracketSameLine": false,
"semi": true,
"plugins": ["prettier-plugin-tailwindcss"]
"semi": true
}
74 changes: 7 additions & 67 deletions vite-project/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vite-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^20.8.0",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
Expand Down
13 changes: 10 additions & 3 deletions vite-project/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import Button from '@/components/Button';
import { Box } from '@chakra-ui/react';
function App() {

return (
<>
<div>프로젝트 초기 세팅 완료</div>
<Box bg="tomato" w="100%" p={4} color="white">
This is the Box
</Box>
<Button />
<h1>아무거나 쓰기</h1>
<div>프로젝트 초기 세팅 완료!!!!!!!!우히히</div>
</>
)
);
}

export default App
export default App;
7 changes: 7 additions & 0 deletions vite-project/src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const Button = () => {
return (
<button>버튼</button>
)
}

export default Button
5 changes: 5 additions & 0 deletions vite-project/src/pages/temp.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Box } from '@chakra-ui/react'

<Box bg='tomato' w='100%' p={4} color='white'>
This is the Box
</Box>
6 changes: 6 additions & 0 deletions vite-project/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"compilerOptions": {
// alias
"baseUrl": "./src",
"paths": {
"@/*": ["*"]
},

"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
Expand Down
4 changes: 4 additions & 0 deletions vite-project/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }]
},
})

0 comments on commit a681efd

Please sign in to comment.