-
Notifications
You must be signed in to change notification settings - Fork 0
/
c2.html
85 lines (83 loc) · 2.1 KB
/
c2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>SheCodes</title>
<style>
body {
font-family: Cerebri Sans, Helvetica, Arial, sans-serif;
}
section {
margin: 120px 0;
}
h1,
h2 {
font-weight: 900;
font-size: 34px;
line-height: 48px;
margin: 0;
}
h1 {
color: #272044;
text-align: center;
}
h2 {
text-align: center;
color: #885df1;
padding: 0 0 24px;
}
p {
font-size: 18px;
line-height: 28px;
font-family: PT Mono, monospace;
text-align: center;
}
button {
border-radius: 25px;
margin: 0 auto;
display: block;
background-color: #fff;
border: 1px solid #885df1;
color: #885df1;
font-size: 16px;
line-height: 22px;
padding: 16px 24px;
text-decoration: none;
transition: all 200ms ease;
}
button:hover {
color: #fff;
background: #885df1;
}
</style>
</head>
<body>
<section>
<h1>👩💻 She Codes is a Coding Workshop for Women</h1>
<h2>Access a new career in Technology</h2>
<p>
She Codes teaches coding, design and management skills to women
<br />
<strong> Limited amount of spots! </strong>
</p>
<br />
<button>Apply Now</button>
</section>
<script>
function toapply() {
let name = prompt("What is your first name?");
let age = prompt("What is your age?");
let h1 = document.querySelector("h1");
if (age < 18) {
h1.innerHTML = "Sorry," + name + "! You cannot join SheCodes ";
} else {
h1.innerHTML = "Hi," + name + "! Welcome to SheCodes !";
}
}
let button = document.querySelector("button");
button.addEventListener("dblclick", toapply);
</script>
</body>
</html>