-
Notifications
You must be signed in to change notification settings - Fork 0
/
day3-functions (1).html
101 lines (88 loc) · 2.12 KB
/
day3-functions (1).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
<html>
<head>
<title>She Codes</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;
}
.btn-wrapper {
text-align: center;
}
.btn {
border-radius: 25px;
transition: all 200ms ease;
text-decoration: none;
color: #885df1;
font-size: 16px;
line-height: 22px;
padding: 16px 24px;
border: none;
border: 1px solid #885df1;
}
.btn: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>
Only 25 spots available!
</strong>
</p>
<br>
<br>
<div class="btn-wrapper">
<a href="https://shecodes.io/apply" class="btn" target=_blank>
Apply Now
</a>
</div>
</section>
<script>
document.querySelector('.btn').addEventListener('click', function(){
let birthYear = prompt('What year were you born?');
birthYear = parseInt(birthYear, 10);
age = (new Date()).getFullYear() - birthYear
if (age < 18) {
alert('You cannot apply to She Codes ☹');
} else {
alert('You can apply to She Codes 😀!');
}
});
</script>
</body>
</html>