-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_js.html
107 lines (93 loc) · 2.6 KB
/
index_js.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!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 onclick="applyNow()">
Apply Now
</button>
</section>
<script>
function applyNow() {
// Prompt for first name
var firstName = prompt("Enter your first name:");
// Prompt for age
var age = prompt("Enter your age:");
// Select the h1 element
var h1Element = document.querySelector("h1");
// Check age and update h1 text
if (age >= 18) {
h1Element.textContent = "Hi, " + firstName + "! Welcome to SheCodes!";
} else {
h1Element.textContent = "Sorry, " + firstName + "! You cannot join SheCodes";
}
}
</script>
</body>
</html>