Skip to content
Open
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
138 changes: 138 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"preview": "vite preview"
},
"dependencies": {
"axios": "^1.7.9",
"bootstrap": "^5.3.3",
"jwt-decode": "^3.1.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
Expand Down
42 changes: 0 additions & 42 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,42 +0,0 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}

.card {
padding: 2em;
}

.read-the-docs {
color: #888;
}
28 changes: 4 additions & 24 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,13 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
import MyPage from './components/MyPage'


function App() {
const [count, setCount] = useState(0)


return (
<>
<div>
<a href="https://vite.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.jsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
<MyPage />
</>
)
}
Expand Down
62 changes: 62 additions & 0 deletions src/MyPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/* 전체 배경색 */
body {
background-color: #FEFAE0;
font-family: Arial, sans-serif;
}

/* 카드 스타일 */
.card {
border: 1px solid #B99470;
background-color: #FEFAE0;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 버튼 스타일 */
.btn-custom-primary {
background-color: #C0C78C;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
transition: background-color 0.3s;
}

.btn-custom-primary:hover {
background-color: #A6B37D;
}

.btn-custom-secondary {
background-color: #A6B37D;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
transition: background-color 0.3s;
}

.btn-custom-secondary:hover {
background-color: #C0C78C;
}

.btn-custom-danger {
background-color: #B99470;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
transition: background-color 0.3s;
}

.btn-custom-danger:hover {
background-color: #A6B37D;
}

/* 입력 필드 스타일 */
.form-control {
border: 1px solid #B99470;
border-radius: 5px;
}

1 change: 0 additions & 1 deletion src/assets/react.svg

This file was deleted.

Loading