diff --git a/src/assets/global.css b/src/assets/global.css index ca0ad13..a31e444 100644 --- a/src/assets/global.css +++ b/src/assets/global.css @@ -1,23 +1,3 @@ @import 'tailwindcss/base'; @import 'tailwindcss/components'; @import 'tailwindcss/utilities'; - -.logo { - float: left; - height: 36px; - margin: 16px 24px 16px 0; - background: rgba(255, 255, 255, 0.3); -} - -.reservation-highlight { - color: rgba(255, 255, 255, 1); - background-color: rgba(255, 0, 0, 0.6); -} - -#error-page { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - width: 100%; -} diff --git a/src/views/App.jsx b/src/views/App.jsx index 2acfb41..82e14b4 100644 --- a/src/views/App.jsx +++ b/src/views/App.jsx @@ -14,7 +14,7 @@ import ErrorBoundary from '@/components/ErrorBoundary' import { BUILD_VERSION, } from '@/config'; import useNoticeStore from '@/stores/Notice'; import useAuthStore from '@/stores/Auth' -import { fetchUserDetail} from '@/stores/Auth' +import { useThemeContext } from '@/stores/ThemeContext' import { usingStorage } from '@/hooks/usingStorage' import { PERM_ACCOUNT_MANAGEMENT, PERM_ROLE_NEW, PERM_OVERSEA, PERM_AIR_TICKET } from '@/config' @@ -24,7 +24,9 @@ const { Title } = Typography; function App() { - const { t, i18n } = useTranslation(); + const { t, i18n } = useTranslation() + + const { colorPrimary } = useThemeContext() const [password, setPassword] = useState('') @@ -76,7 +78,7 @@ function App() { @@ -105,11 +107,11 @@ function App() { style={{ minHeight: '100vh', }}> -
+
- App logo + App logo @@ -26,10 +29,10 @@ function Standlone() { style={{ minHeight: '100vh', }}> -
+
- App logo + App logo Global Highlights Hub diff --git a/src/views/reservation/Newest.jsx b/src/views/reservation/Newest.jsx index 9c35592..2e37c5e 100644 --- a/src/views/reservation/Newest.jsx +++ b/src/views/reservation/Newest.jsx @@ -21,7 +21,7 @@ function Newest() { const lastDayjs = dayjs().subtract(1, 'day'); const arrivalDatejs = dayjs(record.arrivalDate); const requiredHighlight = (arrivalDatejs.isAfter(lastDayjs) && arrivalDatejs.isBefore(after3Dayjs, 'day')) && isEmpty(record.guide); - const linkClassName = requiredHighlight ? 'reservation-highlight' : ''; + const linkClassName = requiredHighlight ? 'text-white bg-red-500' : ''; return ( {text} )