generated from IvettaGoIT/react_vite
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 4605c16 🚀
- Loading branch information
Showing
31 changed files
with
675 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import{n as r,m as o,c as i,P as s,r as f,j as e,s as a,L as k}from"./index-cb13c4de.js";import{F as P,a as z,c as E,b as c,d as R,E as p}from"./formik.esm-42d560a8.js";import{B as T}from"./BtnSubmit-bbe6c6d1.js";import{B}from"./ButtonIconForInput-61c9cfe7.js";import{s as g}from"./styled-components.browser.esm-2d657647.js";const F=r(P)` | ||
margin-top: 28px; | ||
${o.tablet} { | ||
margin-top: 32px; | ||
width: 364px; | ||
} | ||
`,I=r.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 28px; | ||
margin-bottom: 28px; | ||
${o.tablet} { | ||
gap: 32px; | ||
margin-bottom: 64px; | ||
} | ||
`,x=r.div` | ||
position: relative; | ||
width: 100%; | ||
`,m=r(z)` | ||
height: 42px; | ||
width: 100%; | ||
${o.tablet} { | ||
height: 48px; | ||
} | ||
padding-left: 14px; | ||
padding-right: 14px; | ||
border-radius: 12px; | ||
border: 1px solid ${i.textWhite03}; | ||
font-size: 16px; | ||
font-weight: 400; | ||
line-height: 150%; | ||
outline: none; | ||
color: ${i.textWhite06}; | ||
background-color: transparent; | ||
&:focus-visible { | ||
border: 1px solid ${i.orange}; | ||
} | ||
`,h=r.div` | ||
position: absolute; | ||
${o.smallMobile} { | ||
bottom: -24px; | ||
} | ||
`,u=r.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 4px; | ||
font-size: 12px; | ||
color: ${i.textError}; | ||
`,A=/^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/,W=/^(?=.*[a-zA-Z]{6,})(?=.*\d)[a-zA-Z\d]{7,}$/;function L({nameIsShown:n,btnTitle:l,onSubmit:d}){const[j,b]=f.useState(!1),[w,y]=f.useState("password"),$=t=>t?c().required("Name is required"):null,v=E().shape({name:$(n),email:c().matches(A,{message:"Email must be valid! For example: [email protected]"}).email("Invalid email").required("Email is required"),password:c().matches(W,{message:"Password must contain 6+ letters, 1 number, and 1+ letter or number"}).required("Password is required")}),q=n?{name:"",email:"",password:""}:{email:"",password:""},S=()=>{b(t=>!t),y(t=>{if(t==="password")return"text";if(t==="text")return"password"})};return e.jsx(R,{initialValues:q,onSubmit:d,validationSchema:v,children:e.jsxs(F,{children:[e.jsxs(I,{children:[n&&e.jsxs(x,{children:[e.jsx(m,{id:"name",type:"text",placeholder:"Name",name:"name"}),e.jsx(h,{children:e.jsx(p,{name:"name",children:t=>e.jsxs(u,{children:[e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:a+"#icon-checkbox-circle-fill"})}),t]})})})]}),e.jsxs(x,{children:[e.jsx(m,{id:"email",type:"email",placeholder:"Email",name:"email"}),e.jsx(h,{children:e.jsx(p,{name:"email",children:t=>e.jsxs(u,{children:[e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:a+"#icon-checkbox-circle-fill"})}),t]})})})]}),e.jsxs(x,{children:[e.jsx(m,{id:"password",type:w,placeholder:"Password",name:"password"}),e.jsx(B,{type:"button",right:"16px",onClick:S,children:e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:a+`${j?"#icon-eye-off":"#icon-eye"}`})})}),e.jsx(h,{children:e.jsx(p,{name:"password",children:t=>e.jsxs(u,{children:[e.jsx("svg",{width:"20",height:"20",children:e.jsx("use",{href:a+"#icon-checkbox-circle-fill"})}),t]})})})]})]}),e.jsx(T,{title:l,fontSize:"20px"})]})})}L.propTypes={nameIsShown:s.bool.isRequired,btnTitle:s.string.isRequired,onSubmit:s.func.isRequired};const Z=g.span` | ||
color: ${i.textWhite06}; | ||
font-family: Roboto; | ||
font-size: 12px; | ||
line-height: 150%; | ||
`,C=g(k)` | ||
color: ${i.white}; | ||
font-family: Roboto; | ||
font-size: 12px; | ||
line-height: 150%; | ||
text-decoration-line: underline; | ||
margin-left: 5px; | ||
`,N=g.div` | ||
display: inline-block; | ||
margin-top: 12px; | ||
${o.tablet} { | ||
padding-left: 9px; | ||
} | ||
`,M=({text:n,linkText:l,to:d})=>e.jsxs(N,{children:[e.jsx(Z,{children:n}),e.jsx(C,{to:d,children:l})]});M.propTypes={text:s.string.isRequired,linkText:s.string.isRequired,to:s.string.isRequired};export{L as A,M as B}; |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
assets/ButtonIconForInput-c1047b1d.js → assets/ButtonIconForInput-61c9cfe7.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
import{n as p,c as n,m as i,P as r,j as e}from"./index-cb13c4de.js";const T={top:{desk:116,tab:105,mob:66},bt:{tab:16,mob:14}},x=p.p` | ||
color: ${n.textWhite03}; | ||
font-family: Roboto; | ||
font-size: 14px; | ||
font-style: normal; | ||
line-height: 1.28; | ||
${i.tablet} { | ||
max-width: 496px; | ||
font-size: 16px; | ||
line-height: 1.5; | ||
} | ||
`,l=({text:t})=>e.jsx(x,{children:t});l.propTypes={text:r.string};const g=p.div` | ||
position: absolute; | ||
top: ${t=>t.step==="2"?534:474}px; | ||
left: ${t=>t.step==="2"?154:101}px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 146px; | ||
height: 66px; | ||
background: #303030; | ||
border-radius: 12px; | ||
${i.tablet} { | ||
top: ${t=>t.page==="auth"?526:630}px; | ||
left: ${t=>t.page==="auth"?331:298}px; | ||
width: 206px; | ||
height: 96px; | ||
} | ||
${i.desktop} { | ||
top: ${t=>t.page==="auth"?184:300}px; | ||
left: ${t=>t.page==="auth"?770:674}px; | ||
} | ||
`,c=p.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 30px; | ||
height: 30px; | ||
margin-right: 8px; | ||
background: ${n.orangeSecondary}; | ||
border-radius: 50%; | ||
${i.tablet} { | ||
width: 40px; | ||
height: 40px; | ||
margin-right: 12px; | ||
} | ||
`,d=p.svg` | ||
width: 12px; | ||
height: 12px; | ||
fill: ${n.white}; | ||
${i.tablet} { | ||
width: 20px; | ||
height: 20px; | ||
} | ||
`,b=p.div``,f=p.p` | ||
margin-bottom: 4px; | ||
font-size: 16px; | ||
font-weight: 700; | ||
line-height: 112.5%; | ||
color: ${n.white}; | ||
${i.tablet} { | ||
margin-bottom: 8px; | ||
font-size: 24px; | ||
line-height: 100%; | ||
} | ||
`,m=p.p` | ||
font-size: 12px; | ||
font-weight: 400; | ||
line-height: 133.3%; | ||
color: rgba(239, 237, 232, 0.65); | ||
${i.tablet} { | ||
font-size: 16px; | ||
line-height: 150%; | ||
} | ||
`,u=p.div` | ||
position: absolute; | ||
top: ${t=>t.page==="auth"?570:625}px; | ||
right: ${t=>t.page==="auth"?20:0}px; | ||
width: 119px; | ||
height: 76px; | ||
padding: 14px 18px; | ||
border-radius: 12px; | ||
background: ${n.orangeSecondary}; | ||
${i.tablet} { | ||
top: 782px; | ||
top: ${t=>t.page==="auth"?672:782}px; | ||
right: ${t=>t.page==="auth"?32:0}px; | ||
width: 180px; | ||
height: 110px; | ||
} | ||
${i.desktop} { | ||
top: ${t=>t.page==="auth"?318:434}px; | ||
} | ||
`,$=p.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 20px; | ||
height: 20px; | ||
margin-bottom: 4px; | ||
background-color: #efa082; | ||
border-radius: 50%; | ||
${i.tablet} { | ||
margin-bottom: 8px; | ||
width: 24px; | ||
height: 24px; | ||
} | ||
`,y=p.svg` | ||
width: 12px; | ||
height: 12px; | ||
fill: ${n.white}; | ||
${i.tablet} { | ||
width: 16px; | ||
height: 16px; | ||
} | ||
`,w=p.div` | ||
display: flex; | ||
align-items: baseline; | ||
`,j=p.p` | ||
margin-right: 8px; | ||
font-size: 24px; | ||
font-weight: 700; | ||
line-height: 100%; | ||
letter-spacing: -1px; | ||
text-transform: uppercase; | ||
color: ${n.white}; | ||
${i.tablet} { | ||
margin-right: 11px; | ||
font-size: 48px; | ||
line-height: 104.167%; | ||
} | ||
`,v=p.p` | ||
font-size: 12px; | ||
font-weight: 700; | ||
line-height: 133.33%; | ||
color: rgba(239, 237, 232, 0.65); | ||
${i.tablet} { | ||
font-size: 16px; | ||
line-height: 150%; | ||
} | ||
`,S=({data:t,measure:s,type:a,step:h,page:o})=>{if(a==="grey")return e.jsxs(g,{step:h,page:o,children:[e.jsx(c,{children:e.jsx(d,{viewBox:"0 0 15 18",children:e.jsx("path",{d:"M15 9L0 17.6603L0 0.339746L15 9Z"})})}),e.jsxs(b,{children:[e.jsxs(f,{children:[t,"+"]}),e.jsx(m,{children:"Video tutorial"})]})]});if(a==="orange")return e.jsxs(u,{page:o,children:[e.jsx($,{children:e.jsxs(y,{viewBox:"0 0 32 32",children:[e.jsx("path",{d:"M29.647 9.451c-0.419-0.501-1.166-0.567-1.667-0.149l-3.282 2.757-1.509-3.739c-0.054-0.14-0.135-0.258-0.229-0.362-0.308-0.686-0.844-1.275-1.582-1.617-0.32-0.146-0.652-0.224-0.982-0.262-0.073-0.038-0.139-0.088-0.222-0.114l-5.775-1.61c-0.324-0.088-0.65-0.031-0.917 0.125-0.317 0.107-0.589 0.338-0.719 0.672l-2.175 5.592c-0.236 0.608 0.066 1.294 0.676 1.534 0.607 0.236 1.294-0.068 1.532-0.678l1.837-4.722 2.63 0.731c-0.064 0.104-0.133 0.201-0.185 0.312l-3.372 7.309c-0.049 0.107-0.075 0.217-0.109 0.328l-4.098 6.871-6.859 2.294c-0.776 0.58-0.941 1.674-0.367 2.45 0.577 0.778 1.674 0.943 2.448 0.369l7.018-2.417c0.215-0.156 0.371-0.36 0.489-0.58 0.088-0.094 0.189-0.168 0.256-0.284l2.443-4.096 4.337 3.696-4.641 5.23c-0.639 0.721-0.575 1.832 0.149 2.469 0.723 0.643 1.83 0.575 2.473-0.149l5.791-6.524c0.18-0.201 0.288-0.433 0.36-0.676 0.043-0.132 0.043-0.269 0.054-0.406 0-0.069 0.026-0.132 0.021-0.196-0.016-0.478-0.21-0.943-0.601-1.274l-3.991-3.403c0.288-0.274 0.532-0.6 0.709-0.983l2.585-5.599 0.828 2.206c0.035 0.196 0.1 0.388 0.239 0.549 0.125 0.149 0.284 0.248 0.454 0.317 0.017 0.009 0.038 0.010 0.059 0.016 0.107 0.038 0.216 0.075 0.329 0.080 0.133 0.012 0.269-0.005 0.405-0.043 0.004-0.002 0.005-0.002 0.005-0.002 0.036-0.009 0.073-0.002 0.109-0.017 0.192-0.073 0.34-0.196 0.466-0.34l4.71-3.998c0.501-0.421 0.289-1.166-0.132-1.667z"}),e.jsx("path",{d:"M23.689 6.602c1.823 0 3.301-1.478 3.301-3.301s-1.478-3.301-3.301-3.301c-1.823 0-3.301 1.478-3.301 3.301s1.478 3.301 3.301 3.301z"})]})}),e.jsxs(w,{children:[e.jsx(j,{children:t}),e.jsx(v,{children:s})]})]})};S.propTypes={data:r.number,type:r.string,measure:r.string,step:r.string,page:r.string};export{S as P,l as S,T as m}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.