This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.ecr
146 lines (141 loc) · 4.16 KB
/
site.ecr
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
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MUNCS Elections - Fall 2020</title>
<meta name="author" content="Jack Arthur Harrhy">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="favicon.png">
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<link href="https://unpkg.com/nes.css/css/nes.css" rel="stylesheet" />
<style>
html, body, pre, code, kbd, samp {
font-family: "Press Start 2P";
}
body {
margin-bottom: 4rem;
}
header {
text-align: center;
padding: 0.5rem 2rem;
}
.entry {
margin: 3rem 1.5rem;
max-width: 80rem;
}
#entry-container {
width: 100%;
display: flex;
align-items: center;
flex-direction: column;
}
.entry .nes-container {
margin: 3rem 0 0 0;
}
p {
white-space: pre-wrap;
}
.title {
font-size: 1.75rem;
font-weight: 600;
margin-bottom: 1.5rem;
}
img {
display: flex;
margin: 0 auto;
border: 2px solid black;
}
.photo {
height: 25rem;
}
.role-entry {
margin: 0.5rem;
width: 10rem;
text-align: center;
}
.role-entry img {
height: 10rem;
}
h1 {
margin: 2rem 2rem 1rem 2rem;
text-align: center;
}
.role {
margin: 0.5rem 0;
background-color: white;
color: black;
}
.role-photos {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.roles h2 {
text-align: center;
}
.roles h3 {
text-align: center;
}
</style>
</head>
<body>
<header>
<h1>Memorial University's Computer Science Societies Fall 2020 Election</h1>
<p>This semester we're looking for new faces to help us create a community for students that is interactive, enjoyable, and familiar; vote for those faces below!.<p><a href="https://forms.gle/s1RtQiW68w7QE4Sr7"><button class="nes-btn is-primary">Vote here!</button></a>
</header>
<div id="entry-container">
<div class="nes-container is-dark roles">
<h2>Roles</h2>
<%- roles.each do |key, value| -%>
<div class="nes-container role">
<h3><%= key %></h3>
<div class="role-photos">
<%- value.each_with_index do |entry, index| -%>
<div class="role-entry">
<%- if photo = entry.photo-%>
<img src="./images/<%= photo %>" alt="Photograph of self sent in by <%= entry.name %>."/>
<%- end -%>
<a href="#<%= entry.name %>"><p><%= entry.name %></p></a>
</div>
<%- end -%>
</div>
</div>
<%- end -%>
</div>
<%- entries.each_with_index do |entry, index| -%>
<div class="nes-container entry" id="<%= entry.name %>">
<a href="#<%= entry.name %>"><h2><%= index + 1 %>. <%= entry.name %></h2></a>
<p><%= entry.email %></p>
<%- if photo = entry.photo-%>
<img class="photo" src="./images/<%= photo %>" alt="Photograph of self sent in by <%= entry.name %>."/>
<%- end -%>
<div class="nes-container with-title is-rounded">
<p class="title">Why are you interested in becoming an executive? / What would make you a good executive?</p>
<p><%= entry.paragraph_1 %></p>
</div>
<div class="nes-container with-title is-rounded">
<p class="title">How long have you been in CS for? / What about CS interest you?</p>
<p><%= entry.paragraph_2 %></p>
</div>
<div class="nes-container with-title is-rounded">
<p class="title">Which position(s) are you interested in?</p>
<div class="lists">
<ul class="nes-list is-disc">
<%- entry.roles.each do |role| -%>
<li><%= role %></li>
<%- end -%>
</ul>
</div>
</div>
<br />
<a href="https://forms.gle/s1RtQiW68w7QE4Sr7"><button class="nes-btn is-primary">Vote here!</button></a>
</div>
<%- end -%>
<a href="https://github.com/MUNComputerScienceSociety/election-fall-2020">
<div class="nes-container">
<p>Checkout this site on GitHub!</p>
</div>
</a>
</div>
</body>
</html>