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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:5173/admin/login",
"webRoot": "${workspaceFolder}"
}
]
}
Binary file added AWSCLIV2.pkg
Binary file not shown.
54 changes: 54 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"homepage": "/admin",
"name": "festimate-web",
"version": "0.1.0",
"private": true,
"dependencies": {
"cra-template": "1.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^7.6.0",
"react-scripts": "5.0.1",
"web-vitals": "^4.2.4"
},
Expand Down
32 changes: 5 additions & 27 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,17 @@
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<!-- ✅ Kakao SDK 추가 -->
<script src="https://developers.kakao.com/sdk/js/kakao.js"></script>

<title>FestiMate</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
30 changes: 12 additions & 18 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
import logo from './logo.svg';
import './App.css';
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import LoginPage from './pages/LoginPage';
import FestivalListPage from './pages/FestivalListPage';
import FestivalDetailPage from './pages/FestivalDetailPage';

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
<Router basename="/admin">
<Routes>
<Route path="/login" element={<LoginPage />} />
<Route path="/festivals" element={<FestivalListPage />} />
<Route path="/festivals/:festivalId" element={<FestivalDetailPage />} />
</Routes>
</Router>
);
}

Expand Down
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* src/index.css */
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
Expand Down
3 changes: 0 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ root.render(
</React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
168 changes: 168 additions & 0 deletions src/pages/FestivalDetailPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
.festival-detail-wrapper {
padding: 20px;
font-family: 'Noto Sans KR', sans-serif;
}

.header {
display: flex;
align-items: center;
gap: 12px;
background-color: #f15a5a;
color: white;
padding: 12px 24px;
font-size: 16px;
border-radius: 6px;
margin-bottom: 20px;
}

.status-badge {
padding: 2px 8px;
background-color: white;
color: #f15a5a;
font-weight: bold;
border-radius: 999px;
font-size: 12px;
}

.status-school {
background-color: #fff;
color: #f15a5a;
}

.festival-title {
font-weight: bold;
font-size: 18px;
}

.invite-code,
.festival-date {
margin-left: auto;
font-size: 14px;
}

.logout {
color: white;
font-size: 14px;
margin-left: 10px;
cursor: pointer;
}

.search-box {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
}

.search-box input {
padding: 6px 8px;
border: 1px solid #ccc;
border-radius: 4px;
}

.search-box button {
background-color: #f15a5a;
color: white;
border: none;
padding: 6px 14px;
border-radius: 4px;
cursor: pointer;
}

.result-section {
display: flex;
gap: 16px;
}

.user-list-box,
.point-history-box {
flex: 1;
border: 1px solid #ccc;
padding: 12px;
border-radius: 4px;
background-color: #fafafa;
}

.section-title {
font-weight: bold;
margin-bottom: 8px;
}

table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}

th, td {
padding: 6px;
border-bottom: 1px solid #ddd;
text-align: left;
}

.bold {
font-weight: bold;
}

.user-row {
cursor: pointer;
}

.point-action {
display: flex;
align-items: center;
gap: 8px;
margin-top: 10px;
}

.point-action input {
width: 80px;
padding: 4px;
}

.point-action button {
padding: 4px 12px;
background-color: #ccc;
border: none;
color: #fff;
border-radius: 4px;
cursor: not-allowed;
}

.point-chip {
padding: 2px 8px;
border-radius: 12px;
font-size: 12px;
font-weight: bold;
color: white;
}

.point-chip.plus {
background-color: #f15a5a;
}

.point-chip.minus {
background-color: #5a79f1;
}

.point-total {
text-align: right;
margin-top: 10px;
font-weight: bold;
}

.footer {
margin-top: 24px;
text-align: right;
}

.end-button {
background-color: #f15a5a;
color: white;
border: none;
padding: 8px 20px;
font-size: 14px;
border-radius: 4px;
cursor: pointer;
}

Loading