forked from mityalebedev/The-Shell
/
index.hbs
executable file
·221 lines (191 loc) · 5.82 KB
/
index.hbs
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
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
{{! The big featured header on the homepage, with the site logo and description }}
<header id="site-head" {{#if @blog.cover_image}}style="background-image: url({{@blog.cover_image}})"{{/if}}>
<style>
.me {
display: block;
margin: 2em auto;
margin-bottom: 3em;
width: 150px;
height: 150px;
border-radius: 50%;
position: relative;
z-index: 2;
}
.social {
text-align: center;
font-size: 2.5em;
color: #555;
overflow: hidden;
}
.social a {
color: inherit;
text-decoration: none;
}
.social i {
margin: .3em;
cursor: pointer;
transition: color 300ms ease, margin-top 300ms ease;
transform: translateZ(0);
}
.social i#twitter:hover {
color: #77DDF6;
}
.social i#github:hover {
color: black;
}
.social i#linkedin:hover {
color: #ff4500;
}
.social i#code:hover {
color: #29A329;
}
.social i#stack:hover {
color: #ED780E;
}
.social i#plus:hover {
color: #009cde;
}
.social i#mail:hover {
color: black;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
<div class="vertical animated bounceInDown">
<div id="site-head-content" class="inner">
{{#if @blog.logo}}<a id="blog-logo" href="https://judge2020.com/"><img src="https://www.gravatar.com/avatar/3c4d7e127f55bf91ae9bf8f02ca55388?s=100" alt="Judge2020 blog Logo" /></a>{{/if}}
<h1 class="blog-title">{{@blog.title}}</h1>
<div class="social">
<a href="https://twitter.com/judge2020_" target="_parent"><i id="twitter" class="fa fa-twitter"></i></a>
<a href="https://github.com/judge2020" target="_parent"><i id="github" class="fa fa-github"></i></a>
<a href="http://stackexchange.com/users/4802762/judge2020" target="_parent"><i id="stack" class="fa fa-stack-overflow"></i></a>
<a href="https://www.reddit.com/u/judge2020" target="_parent"><i id="linkedin" class="fa fa-reddit"></i></a>
<a href="https://twitter.com/GM4_MC" target="_parent"><i id="code" class="icon-code"></i></a>
<a href="https://www.paypal.me/judge2020" target="_parent"><i id="plus" class="fa fa-paypal"></i></a>
<a href="https://steamcommunity.com/id/judge2020" target="_parent"><i id="mail" class="fa fa-steam"></i> </a>
</div>
<script type="text/javascript">
$(window).load(function() {
$('i').show();
var twitterPos = $('#twitter').position();
var githubPos = $('#github').position();
var stackPos = $('#stack').position();
var linkedinPos = $('#linkedin').position();
var codePos = $('#code').position();
var plusPos = $('#plus').position();
var mailPos = $('#mail').position();
var imgPos = $('.me').position();
$('i').css({
position: 'absolute',
zIndex: '1',
top: imgPos.top + 100,
left: '47%'
});
setTimeout(function() {
$('#twitter').animate({
top: twitterPos.top + 10,
left: twitterPos.left - 10
}, 500);
}, 250);
setTimeout(function() {
$('#twitter').animate({
top: twitterPos.top,
left: twitterPos.left
}, 250);
$('#github').animate({
top: githubPos.top + 10,
left: githubPos.left - 6
}, 500);
}, 500);
setTimeout(function() {
$('#github').animate({
top: githubPos.top,
left: githubPos.left
}, 250);
$('#stack').animate({
top: stackPos.top + 10,
left: stackPos.left - 3
}, 500);
}, 750);
setTimeout(function() {
$('#stack').animate({
top: stackPos.top,
left: stackPos.left
}, 250);
$('#linkedin').animate({
top: linkedinPos.top + 10,
left: linkedinPos.left
}, 500);
}, 1000);
setTimeout(function() {
$('#linkedin').animate({
top: linkedinPos.top,
left: linkedinPos.left
}, 250);
$('#code').animate({
top: codePos.top + 10,
left: codePos.left + 3
}, 500);
}, 1250);
setTimeout(function() {
$('#code').animate({
top: codePos.top,
left: codePos.left
}, 250);
$('#plus').animate({
top: plusPos.top + 10,
left: plusPos.left + 6
}, 500);
}, 1500);
setTimeout(function() {
$('#plus').animate({
top: plusPos.top,
left: plusPos.left
}, 250);
$('#mail').animate({
top: mailPos.top + 10,
left: mailPos.left + 10
}, 500);
}, 1750);
setTimeout(function() {
$('#mail').animate({
top: mailPos.top,
left: mailPos.left
}, 250);
}, 2000);
})
</script>
</div>
</div>
</header>
{{! The main content area on the homepage }}
<main class="content" role="main">
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="{{post_class}}">
<header class="post-header">
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{#if tags}}on {{tags}}{{/if}}</span>
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
<!--<a href="{{url}}#disqus_thread"></a>-->
</header>
<section class="post-excerpt">
<p>{{excerpt}}…</p>
</section>
</article>
{{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}
<script type="text/javascript">
var disqus_shortname = d_id;
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</main>