From fe2b50fc624e036254fa59d113e0b03ab4c345ed Mon Sep 17 00:00:00 2001 From: irenee-14 Date: Fri, 6 Sep 2024 12:05:11 +0900 Subject: [PATCH 01/14] =?UTF-8?q?Fix:=20=EC=A7=84=ED=96=89=EC=99=84?= =?UTF-8?q?=EB=A3=8C=20=EC=95=84=EC=A0=A0=EB=8B=A4=20=EB=B3=B4=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EC=98=A4=EB=A5=98=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/agenda/index.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/agenda/index.tsx b/pages/agenda/index.tsx index b7e59c827..9da685f1b 100644 --- a/pages/agenda/index.tsx +++ b/pages/agenda/index.tsx @@ -15,6 +15,8 @@ const Agenda: NextPage = () => { const { PagaNationElementProps, content: historyData } = usePageNation({ url: '/history', + size: 10, + isReady: showCurrent === 'history', }); const { data: currentData } = useFetchGet({ @@ -22,6 +24,7 @@ const Agenda: NextPage = () => { }); const { data: openData } = useFetchGet({ url: '/open' }); + console.log('historyData', historyData); return (
@@ -30,7 +33,7 @@ const Agenda: NextPage = () => {

AGENDA LIST

{' | '} {' | '} ); diff --git a/pages/agenda/index.tsx b/pages/agenda/index.tsx index 1abb8dc6e..393b0e712 100644 --- a/pages/agenda/index.tsx +++ b/pages/agenda/index.tsx @@ -1,6 +1,7 @@ import React, { useState } from 'react'; import { AgendaDataProps } from 'types/agenda/agendaDetail/agendaTypes'; import type { NextPage } from 'next'; +import { AgendaStatus } from 'constants/agenda/agenda'; import AgendaList from 'components/agenda/Home/AgendaList'; import AgendaTitle from 'components/agenda/Home/AgendaTitle'; import PageNation from 'components/Pagination'; @@ -23,7 +24,6 @@ const Agenda: NextPage = () => { url: '/confirm', }); const { data: openData } = useFetchGet({ url: '/open' }); - return (
@@ -65,10 +65,16 @@ const Agenda: NextPage = () => { agendaList={ showCurrent === 'open' ? openData || [] : currentData || [] } + status={ + showCurrent === 'open' ? AgendaStatus.OPEN : AgendaStatus.CONFIRM + } /> ) : ( <> - + )} diff --git a/styles/agenda/Home/AgendaDeadLine.module.scss b/styles/agenda/Home/AgendaDeadLine.module.scss index 35f74d960..0c8122143 100644 --- a/styles/agenda/Home/AgendaDeadLine.module.scss +++ b/styles/agenda/Home/AgendaDeadLine.module.scss @@ -8,7 +8,7 @@ width: 4rem; height: 4rem; flex-direction: column; - background: $bg-color-deadline-red; + background-color: $bg-color-deadline-open; border-radius: $radius-circle; justify-content: center; gap: 0.2rem; @@ -23,3 +23,15 @@ color: var(--color-text-reverse); } } + +.confirm { + background-color: $bg-color-deadline-confirm !important; +} + +.finished { + background-color: $bg-color-deadline-finish !important; +} + +.cancel { + background-color: $bg-color-deadline-cancel !important; +} diff --git a/styles/agenda/common.scss b/styles/agenda/common.scss index 0d987b143..667906cbb 100644 --- a/styles/agenda/common.scss +++ b/styles/agenda/common.scss @@ -31,7 +31,11 @@ $color-tag-end: #717171; $color-placeholder: #b4a5b5; // deadline bg color -$bg-color-deadline-red: rgba(255, 75, 75, 0.8); +$bg-color-deadline-open: rgba(255, 75, 75, 0.8); +$bg-color-deadline-confirm: rgba(170, 41, 235, 0.8); +$bg-color-deadline-finish: rgba(102, 58, 142, 0.8); +$bg-color-deadline-cancel: rgba(18, 18, 18, 0.8); + $agenda-list-bg: linear-gradient(180deg, #fff 65px, rgba(0, 0, 0, 0) 100%), url('/image/agenda/42.jpg') lightgray 50% / cover no-repeat; From f46f89b06195c87e14cf1ecd568ae4c92fd361cc Mon Sep 17 00:00:00 2001 From: Kimmy Haecho <118002501+siwolee@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:25:27 +0900 Subject: [PATCH 10/14] =?UTF-8?q?fix:=20safari:=20=EB=A1=9C=EA=B3=A0=20?= =?UTF-8?q?=EC=84=A0=ED=83=9D=EC=A7=80=20=EB=84=93=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/agenda/Layout/Header.module.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/styles/agenda/Layout/Header.module.scss b/styles/agenda/Layout/Header.module.scss index 61c249a8b..f7a29a649 100644 --- a/styles/agenda/Layout/Header.module.scss +++ b/styles/agenda/Layout/Header.module.scss @@ -25,6 +25,7 @@ .logo { width: 7rem; height: min-content; + max-height: 3.5rem; padding: 0; margin: 0; fill: var(--color-text); From b1fcfd6659fdcc53692282be9696ba135c04089d Mon Sep 17 00:00:00 2001 From: Kimmy Haecho <118002501+siwolee@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:25:54 +0900 Subject: [PATCH 11/14] =?UTF-8?q?fix:=20safari:=20=EC=95=84=EC=A0=A0?= =?UTF-8?q?=EB=8B=A4=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EA=B9=A8=EC=A7=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/agenda/Home/Agenda.module.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/styles/agenda/Home/Agenda.module.scss b/styles/agenda/Home/Agenda.module.scss index 508f0f6d5..226baf57c 100644 --- a/styles/agenda/Home/Agenda.module.scss +++ b/styles/agenda/Home/Agenda.module.scss @@ -16,6 +16,7 @@ top: -1rem; display: flex !important; width: 100%; + min-width: fit-content; flex-direction: column; padding: 1rem 0; margin: 0; From 8f9db4a57a1f8afaad3d8450407f9256ad3b8662 Mon Sep 17 00:00:00 2001 From: Kimmy Haecho <118002501+siwolee@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:42:05 +0900 Subject: [PATCH 12/14] =?UTF-8?q?fix:=20safari:=20=EB=B3=BC=EB=93=9C?= =?UTF-8?q?=EC=B2=B4=20=EC=9D=B4=EC=83=81=ED=95=98=EA=B2=8C=20=EB=93=A4?= =?UTF-8?q?=EC=96=B4=EA=B0=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/agenda/Layout/Layout.module.scss | 7 +++---- styles/agenda/Layout/MenuBar.module.scss | 1 + styles/agenda/common.scss | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/styles/agenda/Layout/Layout.module.scss b/styles/agenda/Layout/Layout.module.scss index 64246b756..ba0d5c09f 100644 --- a/styles/agenda/Layout/Layout.module.scss +++ b/styles/agenda/Layout/Layout.module.scss @@ -3,18 +3,17 @@ .background { position: fixed; top: 0; - z-index: -1; + left: 0; + z-index: -1001; display: flex; width: 150vw; min-width: 380px; - height: 150vh; + height: 100%; flex-direction: column; background: var(--color-bg); background-attachment: fixed; background-position: center; - background-size: cover; } - .app { @include app; } diff --git a/styles/agenda/Layout/MenuBar.module.scss b/styles/agenda/Layout/MenuBar.module.scss index c869b7155..8a5c24370 100644 --- a/styles/agenda/Layout/MenuBar.module.scss +++ b/styles/agenda/Layout/MenuBar.module.scss @@ -23,6 +23,7 @@ .bg { position: fixed; + top: 0; z-index: 1998; width: 100vw; height: 100vh; diff --git a/styles/agenda/common.scss b/styles/agenda/common.scss index 667906cbb..5787e4643 100644 --- a/styles/agenda/common.scss +++ b/styles/agenda/common.scss @@ -101,7 +101,6 @@ $font-size-xs: 0.8rem; // $small-font @mixin logoText($size, $color) { font-family: $font-logo; font-size: $size; - font-weight: 500; color: $color; text-align: center; letter-spacing: 0.1rem; @@ -142,18 +141,15 @@ $font-size-xs: 0.8rem; // $small-font // 인원수 표시하는 부분 font-family: $font-inter; font-size: $font-size-xxl; - font-weight: 100; text-align: center; } @else if ($type == 'main-menu') { // navbar 메뉴 font-family: $font-menu; font-size: $font-size-xl; - font-weight: 400; } @else if ($type == 'sub-menu') { // navbar 서브메뉴 font-family: $font-menu; font-size: $font-size-l; - font-weight: 300; } @else if ($type == 'title') { // 아젠다,팀 타이틀 font-family: $font-text-bold; From 4f2505a13fa7fbaa10b1687199f29946414fa32e Mon Sep 17 00:00:00 2001 From: Kimmy Haecho <118002501+siwolee@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:50:45 +0900 Subject: [PATCH 13/14] fix: safari: text weight and color --- styles/color-theme.css | 8 ++++---- styles/globals.css | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/styles/color-theme.css b/styles/color-theme.css index 3c4422d1a..ad9565aee 100644 --- a/styles/color-theme.css +++ b/styles/color-theme.css @@ -43,8 +43,8 @@ html[data-theme='light'] { --color-bg: var(--bg-light); --color-header: var(--header-bg-light); - --color-text: var(--text-light); - --color-text-reverse: var(--text-dark); + --color-text: var(--color-light); + --color-text-reverse: var(--color-dark); --default-border: var(--border-light); --highlight-border: var(--border-highlight-light); --default-box-shadow: var(--box-shadow-light); @@ -60,8 +60,8 @@ html[data-theme='light'] { html[data-theme='dark'] { --color-bg: var(--bg-dark); --color-header: var(--header-bg-dark); - --color-text: var(--text-dark); - --color-text-reverse: var(--text-light); + --color-text: var(--color-dark); + --color-text-reverse: var(--color-light); --default-border: var(--border-dark); --highlight-border: var(--border-highlight-dark); --default-box-shadow: var(--box-shadow-dark); diff --git a/styles/globals.css b/styles/globals.css index bf8fbc230..0492a5524 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -18,6 +18,34 @@ input { Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; font-weight: 500; } +/* safari */ +h2, +h1, +h3 { + font-weight: normal; +} +button { + background-color: var(--color-text-reverse); +} +a, +p, +h1, +h2, +h3, +h4, +h5, +h6, +span, +div, +li, +ul, +ol, +input, +textarea, +button { + color: var(--color-text); +} + /* @media all and (max-width: 379px) { html { From 6a20be248151570bd39dce4374454ab5b4f65908 Mon Sep 17 00:00:00 2001 From: siwolee Date: Sat, 7 Sep 2024 13:14:54 +0900 Subject: [PATCH 14/14] =?UTF-8?q?fix:=20console.log=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/admin/takgu/party/PartyTemplate.tsx | 4 ---- components/agenda/Home/AgendaList.tsx | 1 - components/agenda/Layout/MenuBarContent.tsx | 2 +- components/agenda/modal/testModal.tsx | 4 ++-- components/error/AgendaError.tsx | 2 +- components/takgu/modal/admin/AdminTemplateModal.tsx | 1 - components/takgu/modal/tournament/TournamentRegistryModal.tsx | 4 +--- hooks/useAxiosGet.ts | 4 ++-- pages/takgu/_api/pingpong/admin/announcement/index.tsx | 4 ++-- pages/takgu/_api/pingpong/admin/coinpolicy/index.ts | 1 - pages/takgu/_api/pingpong/admin/feedback/index.ts | 2 +- 11 files changed, 10 insertions(+), 19 deletions(-) diff --git a/components/admin/takgu/party/PartyTemplate.tsx b/components/admin/takgu/party/PartyTemplate.tsx index c4826f3ef..296c4b7c9 100644 --- a/components/admin/takgu/party/PartyTemplate.tsx +++ b/components/admin/takgu/party/PartyTemplate.tsx @@ -35,10 +35,6 @@ export default function PartyTemplate() { const setModal = useSetRecoilState(modalState); const [selectedCategory, setSelectedCategory] = useState('all'); - useEffect(() => { - console.log('Render'); - }, [templates]); - const handleEditTemplate = (template?: PartyGameTemplate) => { setModal({ modalName: 'ADMIN-PARTY_TEMPLATE', template }); }; diff --git a/components/agenda/Home/AgendaList.tsx b/components/agenda/Home/AgendaList.tsx index 9e0b2fbe4..e54a3e78a 100644 --- a/components/agenda/Home/AgendaList.tsx +++ b/components/agenda/Home/AgendaList.tsx @@ -65,7 +65,6 @@ const AgendaListItem = ({ }) => { const router = useRouter(); const href = `/agenda/detail?agenda_key=${agendaInfo.agendaKey}`; - console.log(agendaInfo.agendaStatus); return (