From 55b3c13e67c186085bfb30c21607cf0326f6206d Mon Sep 17 00:00:00 2001
From: rivertw777 <105557972+rivertw777@users.noreply.github.com>
Date: Sat, 21 Dec 2024 19:02:36 +0900
Subject: [PATCH] =?UTF-8?q?[feat]=20=EB=8C=80=EA=B8=B0=EC=97=B4=20?=
=?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EB=AA=A8=EB=8B=AC=20=EA=B5=AC=ED=98=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ticketping/src/App.js | 2 +
ticketping/src/component/AppLayout.js | 10 ++--
ticketping/src/component/EnterQueue.js | 36 +++++++++++
ticketping/src/component/Logout.js | 20 +++----
ticketping/src/component/QueueInfoModal.js | 70 ++++++++++++++++++++++
ticketping/src/pages/MyPage.js | 2 +-
ticketping/src/pages/PerformanceDetail.js | 56 ++++++++++++-----
ticketping/src/pages/SelectSchedule.js | 5 ++
ticketping/src/style/AppLayout.css | 2 +-
ticketping/src/style/Login.css | 2 +-
ticketping/src/style/QueueInfoModal.css | 48 +++++++++++++++
11 files changed, 220 insertions(+), 33 deletions(-)
create mode 100644 ticketping/src/component/EnterQueue.js
create mode 100644 ticketping/src/component/QueueInfoModal.js
create mode 100644 ticketping/src/pages/SelectSchedule.js
create mode 100644 ticketping/src/style/QueueInfoModal.css
diff --git a/ticketping/src/App.js b/ticketping/src/App.js
index bc82916..1aebc8a 100644
--- a/ticketping/src/App.js
+++ b/ticketping/src/App.js
@@ -8,6 +8,7 @@ import Login from './pages/Login';
import VerificationInfo from './pages/Join';
import MyPage from './pages/MyPage';
import NotFound from './pages/NotFound';
+import SelectSchedule from './pages/SelectSchedule';
function App() {
return (
@@ -18,6 +19,7 @@ function App() {
} />
}>
}>
+ } />
}>
diff --git a/ticketping/src/component/AppLayout.js b/ticketping/src/component/AppLayout.js
index 67f17b2..b21fc0c 100644
--- a/ticketping/src/component/AppLayout.js
+++ b/ticketping/src/component/AppLayout.js
@@ -2,16 +2,14 @@ import React from "react";
import { useNavigate } from "react-router-dom";
import { useAppContext } from "../store";
import { Button } from "antd";
-import { Logout } from "./Logout";
+import { useLogout } from "./Logout";
import "../style/AppLayout.css";
function AppLayout({ children }) {
const navigate = useNavigate();
- const {
- store: { isAuthenticated },
- } = useAppContext();
+ const {store: { isAuthenticated } } = useAppContext();
- const { handleLogout } = Logout();
+ const { logout } = useLogout();
return (
@@ -35,7 +33,7 @@ function AppLayout({ children }) {
MyPage
{isAuthenticated ? (
-
);
diff --git a/ticketping/src/pages/SelectSchedule.js b/ticketping/src/pages/SelectSchedule.js
new file mode 100644
index 0000000..1a7569f
--- /dev/null
+++ b/ticketping/src/pages/SelectSchedule.js
@@ -0,0 +1,5 @@
+import React from "react";
+
+export default function SelectSchedule() {
+ return 일정 선택 페이지
;
+}
diff --git a/ticketping/src/style/AppLayout.css b/ticketping/src/style/AppLayout.css
index 8959f26..c8545da 100644
--- a/ticketping/src/style/AppLayout.css
+++ b/ticketping/src/style/AppLayout.css
@@ -8,7 +8,7 @@
.header {
background-color: #4A90E2;
- padding: 32px 128px 0px 64px;
+ padding: 12px 128px 0px 64px;
display: flex;
justify-content: space-between;
align-items: center;
diff --git a/ticketping/src/style/Login.css b/ticketping/src/style/Login.css
index 5c349a9..b33f212 100644
--- a/ticketping/src/style/Login.css
+++ b/ticketping/src/style/Login.css
@@ -32,7 +32,7 @@
}
.button-container {
- margin-top: 48px;
+ margin-top: 24px;
display: flex;
flex-direction: column;
}
diff --git a/ticketping/src/style/QueueInfoModal.css b/ticketping/src/style/QueueInfoModal.css
new file mode 100644
index 0000000..b3c227d
--- /dev/null
+++ b/ticketping/src/style/QueueInfoModal.css
@@ -0,0 +1,48 @@
+.queue-entry-modal-content {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ padding: 20px;
+ color: #000000;
+ font-family: 'Arial', sans-serif;
+}
+
+.queue-entry-modal-content p {
+ margin: 3px 0;
+ color: #555555;
+}
+
+.waiting-message {
+ font-size: 24px;
+ margin-bottom: 10px;
+ color: #555555;
+}
+
+.queue-number {
+ font-size: 40px;
+ background-color: rgba(255, 255, 255, 0.2);
+ padding: 10px;
+ border-radius: 5px;
+}
+
+.progress-bar {
+ height: 8px;
+ background-color: #4caf50;
+ border-radius: 5px;
+ margin: 10px 0;
+ transition: width 0.3s ease;
+ margin-bottom: 30px;
+}
+
+.modal-divider {
+ width: 100%;
+ height: 1px;
+ background-color: #000;
+ margin: 10px 0;
+}
+
+.ant-btn {
+ margin-top: 25px;
+ width: auto;
+}
+
\ No newline at end of file