-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.htm
222 lines (193 loc) · 5.98 KB
/
index.htm
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hacktoberfest!</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css?family=Germania+One&display=swap"
rel="stylesheet"
/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jdenticon@2.2.0" async></script>
<style>
/* Remove the navbar's default margin-bottom and rounded borders */
.navbar {
margin-bottom: 0;
border-radius: 0;
}
.jumbotron {
background-image: url("hf.png");
width: 200vh;
height: 100vh;
}
.avatars {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-left: 50px;
margin-right: 50px;
}
.avatar {
background-image: url("card.svg");
background-size: 100%;
width: 200px;
height: 246px;
display: grid;
flex-direction: column;
align-items: center;
justify-content: center;
grid-template-columns: 100fr;
grid-template-rows: 165px 100px;
justify-items: center;
margin: 20px;
}
.avatar img,
svg {
margin-top: 15px;
width: 130px;
height: 130px;
}
.avatar img {
border-radius: 10%;
}
.name {
color: white;
margin-bottom: 50px;
font-family: "Germania One", cursive;
}
.game-container {
display: flex;
justify-content: center;
margin-top: 150px;
margin-bottom: 100px;
}
.game {
border: solid gold;
width: 450px;
height: 350px;
display: grid;
grid-template-columns: 100fr;
grid-template-rows: 250px 1fr;
justify-items: center;
}
.winner {
flex-grow: 1;
}
.button {
align-self: flex-end;
width: 80%;
margin-bottom: 15px;
}
/* Set black background color, white text and some padding */
footer {
background-color: #555;
color: white;
padding: 15px;
}
/* Media Queries */
@media screen and (max-width: 767px) {
}
</style>
</head>
<body>
<nav class="navbar navbar-light bg-light">
<div>
<a class="navbar-brand" href="https://www.twostoryrobot.com/">
<img width="73px" src="tsr.svg" alt=""
/></a>
<a class="navbar-brand" href="https://ossn.club/clubs/21">
<img width="40px" src="osc.png" alt="" />
</a>
</div>
</nav>
<div class="jumbotron">
<div class="container"></div>
</div>
<div class="avatars" id="avatars"></div>
<script>
// todo: Add your information to this array
const hackers = [
{ name: "Oamar", githubUserName: "okanji" },
{ name: "Alex", githubUserName: "footballalex2000" },
{ name: "Tom", githubUserName: "" },
{name: "Dipak", githubUserName: ""},
];
hackers.forEach((o) => {
const node = document.createElement("DIV");
node.setAttribute("class", "hacker");
if (o.githubUserName !== "") {
node.innerHTML = `<div class=\"avatar\"><div><img width=\"130\" height=\"130\" src=\"https://avatars.githubusercontent.com/${o.githubUserName}\" alt=\"\"/></div><h3 class=\"name\">${o.name}</h3></div>`;
} else {
node.innerHTML = `<div class=\"avatar\"><div><svg data-jdenticon-value=/"${o.name}/"></svg></div><h3 class=\"name\">${o.name}</h3></div>`;
}
document
.getElementById("avatars")
.insertAdjacentElement("beforeend", node);
});
</script>
<script>
function setRandomWinner() {
// todo: Complete this function, you should not have to alter anything outside the function body
// tip: random int between 0 and max -> const randomIndex = Math.floor(Math.random() * max + 1) - 1;
}
</script>
<div class="game-container">
<div class="game">
<div class="winner" id="random-winner">
<div>
</div>
</div>
<button
onClick="setRandomWinner()"
type="button"
class="button btn btn-outline-info"
>
Get Random Winner
</button>
</div>
</div>
<ul>
<li>Fork the repository to your github account</li>
<li>Copy the forked repository URL</li>
<li>
In your teminal/ command prompt, clone the repository using: git clone
(paste the url here)
</li>
<li>
Use 'git status' to check what branch you are on (you should be in the
master branch)
</li>
<li>
Create a new branch called 'my-avatar' by typing: git checkout -b
my-avatar
</li>
<li>Open the code in a code editor and make the changes</li>
<li>Use 'git status' to see your changes</li>
<li>Use 'git add .' to add all your changes</li>
<li>
Commit your changes with a commit message: git commit -m "Added my
Avatar"
</li>
<li>Push your branch to your repo: git push origin my-avatar</li>
<li>
Log into your github account and find the branch that you pushed, there
should be a 'create pull request'
</li>
<li>Create the pull request</li>
</ul>
<footer class="container-fluid text-center">
<a
href="https://help.github.com/en/articles/set-up-git#next-steps-authenticating-with-github-from-git"
>Set up Git</a
>
</footer>
</body>
</html>