From d6610d2d456a309a387e9fefa7a1aeb2a5e5344e Mon Sep 17 00:00:00 2001 From: kosssshhhh Date: Thu, 8 May 2025 09:23:02 +0900 Subject: [PATCH 1/7] =?UTF-8?q?=F0=9F=8E=A8=20Style:=20LoadingSpinner=20?= =?UTF-8?q?=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=EC=9D=98=20CSS=20=EC=86=8D?= =?UTF-8?q?=EC=84=B1=20=EC=A0=95=EB=A6=AC=20=EB=B0=8F=20=EC=9D=BC=EA=B4=80?= =?UTF-8?q?=EC=84=B1=20=EC=9E=88=EB=8A=94=20=ED=8F=AC=EB=A7=B7=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/shared/LoadingSpinner.jsx | 65 ++++++++++++------------ 1 file changed, 32 insertions(+), 33 deletions(-) diff --git a/src/components/shared/LoadingSpinner.jsx b/src/components/shared/LoadingSpinner.jsx index e52d0095..3cef9ee2 100644 --- a/src/components/shared/LoadingSpinner.jsx +++ b/src/components/shared/LoadingSpinner.jsx @@ -8,49 +8,48 @@ const spin = keyframes` `; const SpinnerContainer = styled.div` - width: 300px; - height: 200px; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); - border-radius: 12px; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - margin: 16px; + width: 300px; + height: 200px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + border-radius: 12px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + margin: 16px; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); `; const Spinner = styled.div` - width: 30px; - height: 30px; - margin-bottom: 8px; - border: 4px solid #ccc; /* 회색 테두리 */ - border-top-color: #3AAF85; /* 파란색 강조 */ - border-radius: 50%; - animation: ${spin} 1s linear infinite; - display:flex; - justify-content:center; - align-items:center; - + width: 30px; + height: 30px; + margin-bottom: 8px; + border: 4px solid #ccc; + border-top-color: #3aaf85; + border-radius: 50%; + animation: ${spin} 1s linear infinite; + display: flex; + justify-content: center; + align-items: center; `; const Message = styled.p` - font-size: 16px; - color: #555; - font-family:'Regular'; + font-size: 16px; + color: #555; + font-family: 'Regular'; `; function LoadingSpinner({ message }) { - return ( - - - {message && {message}} - - ); + return ( + + + {message && {message}} + + ); } export default LoadingSpinner; From e28b2c673f7a3719099768b8113c536f4dac347f Mon Sep 17 00:00:00 2001 From: kosssshhhh Date: Thu, 8 May 2025 09:23:18 +0900 Subject: [PATCH 2/7] =?UTF-8?q?=E2=9C=A8=20Feat:=20LoadingSpinner=20?= =?UTF-8?q?=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=EB=A5=BC=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=ED=95=98=EC=97=AC=20=EB=A1=9C=EB=94=A9=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=20=ED=91=9C=EC=8B=9C=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/AppRoutes.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/routes/AppRoutes.js b/src/routes/AppRoutes.js index 3a5ec6c9..b71d6ddf 100644 --- a/src/routes/AppRoutes.js +++ b/src/routes/AppRoutes.js @@ -6,6 +6,7 @@ import Header from '@components/Header'; import Footer from '@components/Footer'; import PageFooter from '@components/PageFooter'; import useGA4 from '@hooks/useGA4'; +import LoadingSpinner from '@components/shared/LoadingSpinner'; import { setupApiInterceptors } from '@/Axios'; import { getAllRoutes } from './index'; @@ -15,11 +16,6 @@ import { shouldShowPageFooter, shouldHideHeader, shouldHideHeaderFooter } from ' const isMaintenanceMode = process.env.REACT_APP_MAINTENANCE_MODE === 'true'; const maintenancePath = '/serviceMaintenence'; -// Loading fallback component -const LoadingFallback = () => ( -
로딩 중...
-); - const MainContent = styled.div` flex: 1; display: flex; @@ -78,7 +74,7 @@ const AppRoutes = () => { <> {!hideHeader && !hideHeaderFooter &&
} - }>{routes} + }>{routes} {showPageFooter ? : !hideHeaderFooter &&