From f5af6823dc546eb1adda2113f1cde8d767ba3c7a Mon Sep 17 00:00:00 2001 From: gyeongza Date: Wed, 20 Sep 2023 11:30:19 +0900 Subject: [PATCH 1/8] =?UTF-8?q?design:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B0=98=EC=9D=91=ED=98=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/LoginPage.tsx | 50 +++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/frontend/src/pages/LoginPage.tsx b/frontend/src/pages/LoginPage.tsx index 2ce89ea35..7dc9d7269 100644 --- a/frontend/src/pages/LoginPage.tsx +++ b/frontend/src/pages/LoginPage.tsx @@ -35,7 +35,7 @@ const S = { align-items: center; justify-content: center; flex-direction: column; - gap: 30px; + gap: 45px; height: calc(100vh - 80px); min-height: 570px; @@ -44,10 +44,13 @@ const S = { `, Logo: styled.img` - width: 300px; - height: 80px; + height: 45px; cursor: pointer; + + @media (max-width: 768px) { + height: 35px; + } `, LoginBoxContainer: styled.div` @@ -57,27 +60,41 @@ const S = { gap: 37px; width: 450px; - min-height: 400px; padding: 35px; border-radius: 10px; - border: 1px solid var(--gray-700); + box-shadow: 1px 1px 3px #333333; + + @media (max-width: 768px) { + width: 340px; + + padding: 35px 20px; + } `, LoginBoxText: styled.div` font-weight: 700; font-size: 18px; + + @media (max-width: 768px) { + font-size: 15px; + } `, LoginBoxGithubIcon: styled.img` width: 180px; height: 180px; + + @media (max-width: 768px) { + width: 120px; + height: 120px; + } `, LoginButton: styled.a` display: flex; - justify-content: space-between; + justify-content: center; align-items: center; - gap: 6px; + gap: 12px; width: 370px; height: 60px; @@ -91,15 +108,26 @@ const S = { font-size: 14px; cursor: pointer; + + @media (max-width: 768px) { + width: 260px; + height: 55px; + + padding: 0 20px; + } `, LoginButtonIcon: styled.img` - width: 35px; - height: 35px; + width: 30px; + height: 30px; + + @media (max-width: 768px) { + width: 20px; + height: 20px; + } `, LoginButtonText: styled.div` - font-size: 19px; - margin-right: 40px; + font-size: 18px; `, }; From 9cd6818d26a24432bd036634302db0498e80bafa Mon Sep 17 00:00:00 2001 From: gyeongza Date: Wed, 20 Sep 2023 11:30:53 +0900 Subject: [PATCH 2/8] =?UTF-8?q?design:=20=EB=A9=94=EC=9D=B8=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EB=B0=98?= =?UTF-8?q?=EC=9D=91=ED=98=95=20=EB=94=94=EC=9E=90=EC=9D=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/RunnerPost/RunnerPostItem/RunnerPostItem.tsx | 2 +- frontend/src/pages/MainPage.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/RunnerPost/RunnerPostItem/RunnerPostItem.tsx b/frontend/src/components/RunnerPost/RunnerPostItem/RunnerPostItem.tsx index fbdc022e0..74d698d63 100644 --- a/frontend/src/components/RunnerPost/RunnerPostItem/RunnerPostItem.tsx +++ b/frontend/src/components/RunnerPost/RunnerPostItem/RunnerPostItem.tsx @@ -74,7 +74,7 @@ const S = { display: flex; justify-content: space-between; - min-width: 360px; + min-width: 340px; width: 100%; height: max-content; padding: 35px 40px; diff --git a/frontend/src/pages/MainPage.tsx b/frontend/src/pages/MainPage.tsx index 6c8d47e95..aca475a3f 100644 --- a/frontend/src/pages/MainPage.tsx +++ b/frontend/src/pages/MainPage.tsx @@ -231,7 +231,7 @@ const S = { margin-bottom: 20px; @media (max-width: 768px) { - min-width: 360px; + min-width: 340px; } `, From e1602e5a5079a549fc4f7fc88f9682bc4e315509 Mon Sep 17 00:00:00 2001 From: gyeongza Date: Wed, 20 Sep 2023 11:31:09 +0900 Subject: [PATCH 3/8] =?UTF-8?q?design:=20=EC=83=81=EC=84=B8=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EB=B2=84=ED=8A=BC=20=EB=B0=98=EC=9D=91?= =?UTF-8?q?=ED=98=95=20=EB=94=94=EC=9E=90=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/RunnerPostDetailPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/RunnerPostDetailPage.tsx b/frontend/src/pages/RunnerPostDetailPage.tsx index d42227725..15bce1e99 100644 --- a/frontend/src/pages/RunnerPostDetailPage.tsx +++ b/frontend/src/pages/RunnerPostDetailPage.tsx @@ -196,7 +196,7 @@ const RunnerPostPage = () => { From 15f97503a7426f9cbe4a3c9c90fbd08a1b67fc82 Mon Sep 17 00:00:00 2001 From: gyeongza Date: Wed, 20 Sep 2023 12:14:16 +0900 Subject: [PATCH 8/8] =?UTF-8?q?design:=20=EB=A1=9C=EB=94=A9=20=EC=8A=A4?= =?UTF-8?q?=ED=94=BC=EB=84=88=20=EB=AC=B8=EC=9E=90=EB=A5=BC=20css=EB=A1=9C?= =?UTF-8?q?=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/Spinner/Spinner.tsx | 123 +++++++++++------- 1 file changed, 76 insertions(+), 47 deletions(-) diff --git a/frontend/src/components/common/Spinner/Spinner.tsx b/frontend/src/components/common/Spinner/Spinner.tsx index a5facf6d4..0c4a6cc2a 100644 --- a/frontend/src/components/common/Spinner/Spinner.tsx +++ b/frontend/src/components/common/Spinner/Spinner.tsx @@ -1,59 +1,88 @@ import React from 'react'; import styled from 'styled-components'; - const Spinner = () => { return ( - -
- / -
-
+ + + + + ); }; - export default Spinner; - -const S = { - SpinnerWrapper: styled.div` - div { - color: var(--baton-red); - font-family: Consolas, Menlo, Monaco, monospace; - font-weight: 900; - font-size: 120px; - opacity: 0.9; - - @media (max-width: 768px) { - font-size: 78px; - } +const SpinnerContainer = styled.div` + display: flex; + align-items: center; +`; +const LessThan = styled.div` + position: relative; + width: 45px; + height: 35px; + &::before { + content: ' '; + position: absolute; + width: 27px; + height: 12px; + border-radius: 1.5px; + background-color: var(--baton-red); + transform: skew(0, -33deg); + @media (min-width: 768px) { + width: 42px; + height: 15px; } - div:before { - content: '<'; - display: inline-block; - animation: pulse 0.6s alternate infinite ease-in-out; + } + &::after { + content: ' '; + position: absolute; + top: 21px; + width: 27px; + height: 12px; + border-radius: 1.5px; + background-color: var(--baton-red); + transform: skew(0, 33deg); + @media (min-width: 768px) { + top: 29px; + width: 42px; + height: 14px; } - div:after { - content: '>'; - display: inline-block; - animation: pulse 0.6s 0.3s alternate infinite ease-in-out; + } + animation: pulseLess 0.6s alternate infinite ease-in-out; + @keyframes pulseLess { + to { + opacity: 0.7; + transform: scale(1.2); } - - span { - font-size: 112px; - font-weight: 900; - - margin: 0 8px; - animation: pulse 0.6s 0.3s alternate infinite ease-in-out; - - @media (max-width: 768px) { - font-size: 74px; - } + } + @media (min-width: 768px) { + width: 65px; + height: 40px; + } +`; +const GreaterThan = styled(LessThan)` + transform: scaleX(-1); + animation: pulseGreater 0.6s 0.3s alternate infinite ease-in-out; + @keyframes pulseGreater { + to { + opacity: 0.7; + transform: scaleX(-1) scale(1.2); } - - @keyframes pulse { - to { - transform: scale(1.2); - opacity: 0.8; - } + } +`; +const Slash = styled.div` + width: 9.5px; + height: 65px; + border-radius: 1.5px; + background-color: var(--gray-800); + transform: skew(-18deg); + animation: pulseSlash 0.6s 0.3s alternate infinite ease-in-out; + @keyframes pulseSlash { + to { + opacity: 0.7; + transform: skew(-18deg); } - `, -}; + } + @media (min-width: 768px) { + width: 13px; + height: 93px; + } +`;