From 07ca5cf436d237058f930c0c88160196ed1fbbfc Mon Sep 17 00:00:00 2001 From: Reza Date: Sun, 7 Nov 2021 11:28:28 +0330 Subject: [PATCH] reza added light mode --- src/assets/icons/arrow-left-green.png | Bin 0 -> 1243 bytes src/components/Textarea/index.scss | 42 ++++---- src/components/Textarea/index.tsx | 20 +++- src/custom.scss | 75 +++++++++++--- src/views/Auth/Login/index.scss | 10 +- src/views/Auth/Login/index.tsx | 21 +++- src/views/Auth/SignUp/index.scss | 139 ++++++++++++++------------ src/views/Auth/SignUp/index.tsx | 9 +- src/views/Contact/index.scss | 53 ++++++++-- src/views/Contact/index.tsx | 46 +++++++-- 10 files changed, 285 insertions(+), 130 deletions(-) create mode 100644 src/assets/icons/arrow-left-green.png diff --git a/src/assets/icons/arrow-left-green.png b/src/assets/icons/arrow-left-green.png new file mode 100644 index 0000000000000000000000000000000000000000..4d07993ab433b27e7357ceb8d6f28396efa16ec5 GIT binary patch literal 1243 zcmV<11SI>3P)9#~5P)}f*LLCrN}8kwTGWIFA&5}aONEG3K`*FkNl1I^ z0Zu3aRY>H(v5h!#2oe%MA-&K8H(FXGP)_ZkwC7TVDr!g^wSq?ZEyQvByg%%k*m4~w zu@%4Fb?kSt!b?8;cX@oWzx|1q zD{B>q+yC@5#y#FnaCun1SU6lLPpOeldUxNS$-ei0AcmqRS_Og@j7VNjDfXeRju(ha zA@Ri7)_c*kj+qG$O?5?3oV2^DydQcgqyO34^4)VSI|btU1{U;FS}3dG>w-G?y8dS|G(OAs;LyXS{LK<^N{>e@QD`ns@|h4p&T5DPtm8>64T zO+$hG73T_B6K09zD0~y`dS4>aP{|+w@p-s8-u2;D%^3&%Jg$mm(atJZC zd%#e%=c7W&ZRK%Q5G&TLf^ZpxCvn6>GExunv8ix$&Ld)g-+RgM007ieB))CL{I&@g zPJzgVpeIj}9B#zyaz%m2g@B}t)l+eyPKu`$1HuDQH_wB&R583WHEF{TQf0X9JVHZQ z;K2cjpv@Kp>mXJ^P#T3H*|!bQ?qt-9 zCIo9BW(B>-5FB>}f)xTg=q;>M$BlI>o$AWis5oNl5*eD!~t`XVZ07y=~h1nOyC}?V|?;bHL$Z3Y~sn_0M zuBoAOh z$Ol8^7Gpbz*B6vHR%kr?G0r#$S7BHIp<(3KAGSTi8VC*JKS_=+OMEf2g;@*}t02~Z z@r$ZQzV>4sSWl*P5cyzW!H1ivF!BqR(S)iH>t+{cdc0{EPIyEb)atib=BibvKxiP@ zFicjf&VkS{W&}Ma5o!w)am`e5<|K$h)|66@se)J`S_P2?Q9WmgRBMkqaC&R3`v_26 zQ|g#2Cwc0GehezPMImi0-KqfB#=7?eDc)C37A&={snhv`&rXD~M-P`;csa?Va{kv; z2hYv%o(_UhV>u~bDqS-jJX)ak3XvcmRN5(heJVf662G0__b`#^@*9kPwoB#q2TDb{ zEacSkku#AWr?jrC`aab!l&xhkiA^e*5Q(Q>?tL(sc^{E0PlZX7T!w>NwW~)bPqjfZ za{8U`XS3&?x8wKfUmu5RiE4Pmq-m4j-MU@ynK)05>NO!(v2|OYuS}fWQ4hR<3%VTw zqJ~HkQoY1w@oxcufk~e9xTJA{*^5O<<}b9~TUg67uK-8SQq7mv8}k4F002ovPDHLk FV1n3?LplHe literal 0 HcmV?d00001 diff --git a/src/components/Textarea/index.scss b/src/components/Textarea/index.scss index cfe6820..5d4858b 100644 --- a/src/components/Textarea/index.scss +++ b/src/components/Textarea/index.scss @@ -1,55 +1,63 @@ -.custom-textarea{ +.custom-textarea { width: 100%; padding: 10px 12px; - color: white; border-radius: 10px; - border: 1px solid $gray2; - background-color: black; + margin-top: 10px; - &::placeholder{ + &-light { + border: 1px solid $green; + background-color: white; + color: $gray5; + } + &-dark { + border: 1px solid $gray2; + background-color: black; + color: white; + } + &::placeholder { color: #a2a2a2; } - &:focus{ + &:focus { border: 1px solid $green1; outline: none; - &::placeholder{ + &::placeholder { color: $green1; } } } -@media screen and (min-width: 1441px){ - .custom-textarea{ +@media screen and (min-width: 1441px) { + .custom-textarea { font-size: 16px; - &::placeholder{ + &::placeholder { font-size: 16px; } } } @media screen and (min-width: 1008px) and (max-width: 1440px) { - .custom-textarea{ + .custom-textarea { font-size: calc(100vw / 110); - &::placeholder{ + &::placeholder { font-size: calc(100vw / 110); } } } @media screen and (min-width: 641px) and (max-width: 1007px) { - .custom-textarea{ + .custom-textarea { font-size: calc(100vw / 40); - &::placeholder{ + &::placeholder { font-size: calc(100vw / 40); } } } @media screen and (max-width: 640px) { - .custom-textarea{ + .custom-textarea { font-size: calc(100vw / 30); - &::placeholder{ + &::placeholder { font-size: calc(100vw / 30); } } -} \ No newline at end of file +} diff --git a/src/components/Textarea/index.tsx b/src/components/Textarea/index.tsx index d6a1212..d208b4d 100644 --- a/src/components/Textarea/index.tsx +++ b/src/components/Textarea/index.tsx @@ -1,9 +1,21 @@ -import React from 'react'; +import React from "react"; +import _ from "lodash"; -export default function Textarea({placeholder} : any) { +export default function Textarea({ placeholder, theme }: any) { + const light = theme === "light"; return ( <> -