Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b2d5131

Browse files
improve accessibility, minor refactoring, temporarily disabled anim for fem ss
1 parent a896f09 commit b2d5131

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

‎src/components/newbie/SignUp/Form/Form.css‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.signup-form {
22
transition: all 0.4s ease;
3+
width: 100%;
4+
max-width: calc((346 / 16) * 1rem);
35
}
46

57
/* WRAPPER FOR THE WHOLE INPUT FIELD (INPUT + LABEL) */
@@ -105,8 +107,12 @@
105107
margin-top: calc((15 / 16) * 1rem);
106108
}
107109

108-
.signup-form a {
110+
.signup-form-terms button {
111+
background-color: transparent;
109112
color: white;
113+
text-decoration: underline;
114+
cursor: pointer;
115+
border: transparent;
110116
}
111117

112118
/* ERROR */

‎src/components/newbie/SignUp/Form/Form.jsx‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,7 @@ const Form = ({setIsOpen, setName, setOpenToS}) => {
108108

109109
</>
110110
))}
111-
112111
<input type="submit" value="Claim your free trial" />
113-
114-
<p className='signup-form-terms'>By clicking the button you agree our&nbsp;
115-
<a href="#" onClick={()=> setOpenToS(true)}>terms and services</a>
116-
</p>
117112
</form>
118113
)
119114
}

‎src/components/newbie/SignUp/SignUp.jsx‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ const SignUp = () => {
1414
const [name,setName] = useState("")
1515

1616
useEffect(()=> {
17-
var mediaQuery = window.matchMedia('(prefers-reduced-motion: reduce)');
18-
if(!mediaQuery.matches) {
19-
gsapLandingAnimation();
20-
animateWordChange();
21-
}
17+
// var mediaQuery = window.matchMedia('(prefers-reduced-motion: reduce)');
18+
// if(!mediaQuery.matches) {
19+
// gsapLandingAnimation();
20+
// }
21+
animateWordChange();
2222
}, [])
2323

2424
return (
@@ -45,7 +45,11 @@ const SignUp = () => {
4545
then 20ドル/mo. thereafter
4646
</h2>
4747
<Form setName={setName} setIsOpen={setIsOpen} setOpenToS={setOpenToS} />
48+
<p className='signup-form-terms' id="terms">By clicking the button you agree our&nbsp;
49+
<button aria-labelledby="terms" onClick={()=> setOpenToS(true)}>terms and services</button>
50+
</p>
4851
</div>
52+
</main>
4953
{isOpen && <Modal isOpen={isOpen} name={name} setIsOpen={setIsOpen}>
5054
<h3>
5155
Thank you {name}!
@@ -65,7 +69,6 @@ const SignUp = () => {
6569
If you have any questions or concerns about these Terms, please contact us at <span style={{textDecoration:'underline'}}>support@mastertodesigncode.com. </span>
6670
</p>
6771
</Modal>}
68-
</main>
6972
</div>
7073
)
7174
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /