Skip to content

Commit

Permalink
Merge pull request #95 from Duri-Salon/hotfix/salon
Browse files Browse the repository at this point in the history
�[hotfix] auth페이지  수정
  • Loading branch information
seungboshim authored Dec 20, 2024
2 parents 0f3efa5 + c0d402e commit 7961b82
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 23 deletions.
33 changes: 28 additions & 5 deletions apps/duri/src/pages/Auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useEffect } from 'react';
import { useNavigate, useSearchParams } from 'react-router-dom';

import {
Doori,
DuriDog,
Flex,
MobileLayout,
Expand Down Expand Up @@ -34,11 +35,11 @@ const AuthPage = () => {
}, [data, error]);

return (
<MobileLayout>
<RelativeMobileLayout>
<Container direction="column">
{/** 로고 */}
<DuriDog width={169} height={143} />
<Flex direction="column" margin="24px 0 0 0">
<Flex direction="column">
<Text typo="Heading">두리묭실로</Text>
<Text typo="Heading">쉽고 빠르게 예약해요!</Text>
<Text
Expand Down Expand Up @@ -68,25 +69,47 @@ const AuthPage = () => {
</Text>
</Contact>
</Container>
</MobileLayout>
<AuthWrapper>
<Doori color={theme.palette.White} height={40} />
<Text typo="Body1" colorCode={theme.palette.White}>
두리묭실 입장 중...
</Text>
</AuthWrapper>
</RelativeMobileLayout>
);
};

const RelativeMobileLayout = styled(MobileLayout)`
position: relative;
`;

const AuthWrapper = styled(Flex)`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
flex-direction: column;
gap: 16px;
`;

const Container = styled(Flex)`
flex-grow: 1;
position: relative;
`;

const LoginButton = styled.button`
const LoginButton = styled.div`
width: 60px;
height: 60px;
margin-top: 20px;
`;

const Contact = styled(Flex)`
const Contact = styled.div`
position: absolute;
bottom: 50px;
height: fit-content;
text-decoration: none;
`;

export default AuthPage;
44 changes: 35 additions & 9 deletions apps/salon/src/pages/Auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { useEffect } from 'react';
import { useNavigate, useSearchParams } from 'react-router-dom';

import {
Doori,
DuriDog,
Flex,
MobileLayout,
NaverLogo,
Expand Down Expand Up @@ -33,14 +35,18 @@ const AuthPage = () => {
}, [data, error]);

return (
<MobileLayout>
<RelativeMobileLayout>
<Container direction="column">
{/** 로고 */}
<Logo src="/images/logo.png" />
<Flex direction="column" margin="24px 0 0 0">
<DuriDog width={169} height={143} />
<Flex direction="column">
<Text typo="Heading">두리묭실로</Text>
<Text typo="Heading">쉽고 빠르게 예약해요!</Text>
<Text typo="Body3" colorCode={theme.palette.Gray300}>
<Text
typo="Body3"
colorCode={theme.palette.Gray300}
margin="8px 0 0 0"
>
최저가 예약부터 근처 미용샵까지
</Text>
</Flex>
Expand All @@ -63,27 +69,47 @@ const AuthPage = () => {
</Text>
</Contact>
</Container>
</MobileLayout>
<AuthWrapper>
<Doori color={theme.palette.White} height={40} />
<Text typo="Body1" colorCode={theme.palette.White}>
두리묭실 입장 중...
</Text>
</AuthWrapper>
</RelativeMobileLayout>
);
};

const RelativeMobileLayout = styled(MobileLayout)`
position: relative;
`;

const AuthWrapper = styled(Flex)`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
flex-direction: column;
gap: 16px;
`;

const Container = styled(Flex)`
flex-grow: 1;
position: relative;
`;

const Logo = styled.img``;

const LoginButton = styled.button`
const LoginButton = styled.div`
width: 60px;
height: 60px;
margin-top: 20px;
`;

const Contact = styled(Flex)`
const Contact = styled.div`
position: absolute;
bottom: 50px;
height: fit-content;
text-decoration: none;
`;

export default AuthPage;
9 changes: 0 additions & 9 deletions apps/salon/src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ import {
useGetGroomersList,
useGetHomeQuotationRequest,
useGetHomeShopInfo,
useGetRecentDaysIncome,
useModal,
usePutGroomingComplete,
usePutGroomingNoshow,
} from '@duri-fe/utils';
import styled from '@emotion/styled';
import { RadioButton } from '@salon/components/home/RadioButton';
import { RecentIncomeStatistic } from '@salon/components/income/RecentIncomeStatistic';
import { DetailRequest } from '@salon/components/quotation/DetailRequest';
import useGroomerStore from '@salon/stores/groomerStore';

Expand Down Expand Up @@ -69,7 +67,6 @@ const Home = () => {
useGetDailySchedule();
const { data: quotationRequestData, isPending: quotationRequestPending } =
useGetHomeQuotationRequest();
const { data: recentDaysIncomeData } = useGetRecentDaysIncome({});
const { mutateAsync: putGroomingComplete } = usePutGroomingComplete();
const { mutateAsync: putGroomingNoshow } = usePutGroomingNoshow();

Expand Down Expand Up @@ -304,12 +301,6 @@ const Home = () => {
)}
</NewRequestWrapper>

{recentDaysIncomeData && (
<RecentIncomeStatistic
incomeMonthList={recentDaysIncomeData.incomeMonthList}
/>
)}

<SalonNavbar />

<BottomSheet {...bottomSheetProps}>
Expand Down

0 comments on commit 7961b82

Please sign in to comment.