-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
134 lines (111 loc) · 2.87 KB
/
index.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html>
<head>
<title>Anarchist Workforce Registry</title>
<style>
body {
font-size: 4.44vmin;
color: white;
background-color: black;
font-family: ebrima;
padding: 0vmin;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
display: none;
}
h1 {
color: red;
font-weight: bold;
font-size: 5.55vmin;
margin: auto;
margin-top: 6.66vmin;
margin-bottom: 6.66vmin;
display: block;
text-align: center;
}
p {
display: block;
padding-left: 4.44vmin;
padding-right: 4.44vmin;
margin-block-start: 0;
margin-block-end: 0;
}
.analytics {
display: flex;
justify-content: space-evenly;
margin-top: 7.77vmin;
}
.analytic {
}
.counter-holder {
width: 17.77vmin;
height: 17.77vmin;
display: flex;
margin: auto;
border-style: solid;
border-color: red;
border-width: 1.11vmin;
border-radius: 50%;
justify-content: center;
}
.counter {
margin: auto;
font-size: 5vmin;
font-weight: bold;
}
.counter-title {
margin: auto;
margin-top: 1.66vmin;
font-size: 5vmin;
font-weight: bold;
}
.button {
height: 13.33vmin;
background-color: red;
margin-left: 4.44vmin;
margin-right: 4.44vmin;
display: flex;
}
.button-text {
margin: auto;
font-size: 5vmin;
font-weight: bold;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>
<h1>Anarchist Workforce Registry</h1>
<p>List your areas of expertise and mark yourself as available to join teams and collectives that want to make a change.</p>
<br/>
<p>The purpose of this registry is to make it possible to form teams of like minded people and move a step closer to coordinate and create greater impacts.</p>
<br/>
<p>You don't need to be an Anarchist to register. It is important to understand though that an Anarchist team has a flat structure. We will decide to cooperate because we have similar concerns.</p>
<div class="analytics">
<div class="analytic">
<div class="counter-holder"><span id="registration-count" class="counter">..</span></div>
<span class="counter-title">Registrations</span>
</div>
<div class="analytic"></div>
<div class="analytic">
<div class="counter-holder"><span id="profession-count" class="counter">..</span></div>
<span class="counter-title">Professions</span>
</div>
<div class="analytic"></div>
</div>
<div class="button" onClick="window.open('/register','_self')" style="margin-top:7.77vmin; margin-bottom: 3.33vmin;">
<span class="button-text">REGISTER</span>
</div>
<div class="button" onClick="window.open('/browse','_self')" style="margin-bottom: 4.44vmin;">
<span class="button-text">BROWSE</span>
</div>
<script>
axios.get('/analytics').then(response => {
document.getElementById('registration-count').innerHTML = response.data.registration_count;
document.getElementById('profession-count').innerHTML = response.data.prefession_count;
});
</script>
</body>
</html>