Skip to content

Commit

Permalink
Merge pull request #326 from themoment-team/develop
Browse files Browse the repository at this point in the history
Release v231017.0
  • Loading branch information
hyeongrok7874 committed Oct 17, 2023
2 parents f037363 + cd6d0ce commit fa45472
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ const ApplicationPage: NextPage<{
<tbody>
<tr>
<S.Subject rowSpan={2}>학년</S.Subject>
<S.Subject colSpan={6}>출결상황</S.Subject>
<S.Subject colSpan={6}>미인정 출결 현황</S.Subject>
<S.Subject colSpan={2}>봉사활동</S.Subject>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ const CalculatorPage: NextPage<CalculatorPageProps> = ({ score, userId }) => {
<tbody>
<tr>
<S.Grade rowSpan={2}>학년</S.Grade>
<S.Attendance colSpan={4}>출결상황</S.Attendance>
<S.Attendance colSpan={4}>미인정 출결 현황</S.Attendance>
<S.Attendance rowSpan={2}>봉사활동(시간)</S.Attendance>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ const CalculatorPage: NextPage = () => {
<tbody>
<tr>
<S.Grade rowSpan={2}>학년</S.Grade>
<S.Attendance colSpan={4}>출결상황</S.Attendance>
<S.Attendance colSpan={4}>미인정 출결 현황</S.Attendance>
<S.Attendance rowSpan={2}>봉사활동(시간)</S.Attendance>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ const ApplicationPage: NextPage<ApplicationDataType> = ({ data }) => {
<tbody>
<tr>
<S.Subject rowSpan={2}>학년</S.Subject>
<S.Subject colSpan={6}>출결상황</S.Subject>
<S.Subject colSpan={6}>미인정 출결 현황</S.Subject>
<S.Subject colSpan={2}>봉사활동</S.Subject>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ const CalculatorPage: NextPage<CalculatorPageProps> = ({
<tbody>
<tr>
<S.Grade rowSpan={2}>학년</S.Grade>
<S.Attendance colSpan={4}>출결상황</S.Attendance>
<S.Attendance colSpan={4}>미인정 출결 현황</S.Attendance>
<S.Attendance rowSpan={2}>봉사활동(시간)</S.Attendance>
</tr>
<tr>
Expand Down
12 changes: 2 additions & 10 deletions packages/hello-gsm/src/PageContainer/MypagePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ const MyPage: NextPage<ApplicationIdentityType> = ({
);

const isSubmitted = () => (
<S.ButtonBox
css={css`
width: 30rem;
`}
>
<S.ButtonBox>
<LinkButton href="/application" color={theme.color.primary.sky}>
🖨️ 원서 출력
</LinkButton>
Expand All @@ -79,11 +75,7 @@ const MyPage: NextPage<ApplicationIdentityType> = ({
height: 13.125rem;
`}
>
<S.ButtonBox
css={css`
width: 55.25rem;
`}
>
<S.ButtonBox>
<LinkButton
color={theme.color.sub.orange}
onClick={() => showModal('delete')}
Expand Down
3 changes: 1 addition & 2 deletions packages/hello-gsm/src/PageContainer/MypagePage/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ export const Name = styled.p`
`;

export const ButtonBox = styled.div`
width: 100%;
display: flex;
justify-content: space-between;
gap: 12px;
`;

export const Button = styled.button`
Expand Down
6 changes: 5 additions & 1 deletion packages/hello-gsm/src/PageContainer/SchoolPage/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const Line = styled.div`
height: 0.1875rem;
position: absolute;
top: 33.3438rem;
z-index: -1;
z-index: 0;
background: #9a9a9a;
`;

Expand Down Expand Up @@ -212,6 +212,7 @@ export const Dot = styled.div`
border-radius: 50%;
background: #c4c4c4;
margin: 1.25rem 0 1.0625rem;
z-index: 1;
`;

export const TotalWrapper = styled.div`
Expand Down Expand Up @@ -292,6 +293,7 @@ export const GreenBall = styled(Ball)`
export const BlueBall = styled(Ball)`
width: 6.875rem;
height: 6.875rem;
z-index: -1;
background: linear-gradient(
220deg,
#7be8ff 10.2%,
Expand All @@ -300,6 +302,7 @@ export const BlueBall = styled(Ball)`
);
top: 50.25rem;
left: 82%;
@media ${device.tablet} {
display: none;
}
Expand Down Expand Up @@ -366,6 +369,7 @@ export const BigGreenBall = styled(Ball)`
box-shadow: 0.25rem 0.25rem 1.9375rem 0rem rgba(0, 0, 0, 0.25);
top: 111.625rem;
left: 75%;
z-index: -2;
@media ${device.tablet} {
display: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ const TestCalculatorPage: NextPage = () => {
<tbody>
<tr>
<S.Grade rowSpan={2}>학년</S.Grade>
<S.Attendance colSpan={4}>출결상황</S.Attendance>
<S.Attendance colSpan={4}>미인정 출결 현황</S.Attendance>
<S.Attendance rowSpan={2}>봉사활동(시간)</S.Attendance>
</tr>
<tr>
Expand Down
15 changes: 13 additions & 2 deletions packages/hello-gsm/src/components/Common/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,28 @@ import { css } from '@emotion/react';
import auth from 'Api/auth';
import Link from 'next/link';
import { useRouter } from 'next/router';
import React from 'react';
import React, { useState } from 'react';
import useStore from 'Stores/StoreContainer';
import * as S from './style';
import * as I from 'Assets/svg';
import { SideBar } from 'components';
import { toast } from 'react-toastify';

const Header: React.FC = () => {
const { pathname } = useRouter();
const [isLogoutClicked, setIsLogoutClicked] = useState<boolean>(false);

const { logged, setShowSideBar } = useStore();

const handleLogoutClick = (e: React.MouseEvent<HTMLAnchorElement>) => {
if (isLogoutClicked) {
toast.error('로그아웃 중입니다. 잠시만 기다려주세요.');
return e.preventDefault();
}

return setIsLogoutClicked(true);
};

const select = (navPath: string) =>
navPath === pathname &&
css`
Expand Down Expand Up @@ -57,7 +68,7 @@ const Header: React.FC = () => {
<Link href="/mypage" passHref>
<S.NavContent css={select('/mypage')}>마이페이지</S.NavContent>
</Link>
<a href={auth.logout()}>
<a href={auth.logout()} onClick={handleLogoutClick}>
<S.AuthButton>로그아웃</S.AuthButton>
</a>
</S.MemberBox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import useStore from 'Stores/StoreContainer';
import { css } from '@emotion/react';
import application from 'Api/application';
import { useRouter } from 'next/router';

import Link from 'next/link';
const MypageModal: React.FC = () => {
const { setShowMypageModal, mypageModalContent, setShowMypageSuccessModal } =
useStore();
Expand Down Expand Up @@ -96,6 +96,9 @@ const MypageModal: React.FC = () => {
<I.Questioner />
</S.ExplanationBox>
<S.ButtonBox>
<Link href="/application">
<S.CancelButton>원서 미리보기</S.CancelButton>
</Link>
<S.CancelButton onClick={setShowMypageModal}>취소</S.CancelButton>
<S.AllowButton
css={css`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export const RedHighlighting = styled.span`
`;

export const ButtonBox = styled.div`
width: 310px;
display: flex;
justify-content: space-between;
gap: 10px;
`;

const Button = styled.div`
Expand Down

3 comments on commit fa45472

@vercel
Copy link

@vercel vercel bot commented on fa45472 Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

admin-hello-gsm – ./packages/hello-gsm-admin

admin-hello-gsm-git-main-the-moment.vercel.app
admin-hello-gsm-the-moment.vercel.app
admin.hellogsm.kr
admin-hello-gsm.vercel.app

@vercel
Copy link

@vercel vercel bot commented on fa45472 Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hello-gsm – ./packages/hello-gsm

hello-gsm-the-moment.vercel.app
hellogsm.kr
hello-gsm-git-main-the-moment.vercel.app
www.hellogsm.kr

@vercel
Copy link

@vercel vercel bot commented on fa45472 Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-hello-gsm – ./packages/hello-gsm

test-hello-gsm-git-main-the-moment.vercel.app
test-hello-gsm-the-moment.vercel.app
hello-gsm-test.vercel.app
test.hellogsm.kr

Please sign in to comment.