summaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 1440676b301145f66ae362ea309b48f987e84181 (plain)
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <link rel="icon" type="image/png" href="assets/img/favicon.ico">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    
    <title>Hipster as F*** Cards by Creative Tim</title>

    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
    <meta name="viewport" content="width=device-width" />
    
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="assets/css/hipster_cards.css" rel="stylesheet"/> 
        
    <!--     Fonts and icons     -->
    <link href="assets/css/pe-icon-7-stroke.css" rel="stylesheet" />
    <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" />  
    <link href='http://fonts.googleapis.com/css?family=Playfair+Display|Raleway:700,100,400|Roboto:400,700|Playfair+Display+SC:400,700' rel='stylesheet' type='text/css'>
    
    <style>
        .card{
            margin-bottom: 70px;
        }
    </style>
</head>
<body>

<div class="wrapper">       
    <div class="container">        

        <div class="container">
            <h1>Minion Lives Matter</h1>


            <div class="card-box col-md-4 col-sm-6">
                <div class="card card-with-border card-just-text" data-background="color" data-color="black" >
                    <div class="content">
                        <h4 class="title">"{{ sql_val("SELECT COUNT(*) FROM match WHERE created_at > NOW() - '1 day'::INTERVAL") }} matches are taken into account."</h4>
                        <p class="description">Using VainSocial.com players' data in last 24 hours.</p>
                    </div>
                </div> <!-- end card -->
            </div>           

            <div class="card-box col-md-4 col-sm-6">
                <div class="card card-just-text card-with-border" data-background="image" data-src="assets/img/music-3.jpg">
                    <div class="content">
                        <div class="filter filter-red"></div>
                        <h4 class="title title-modern">"Minions Lives Matter."</h4>
                        <p class="description">Shutterfly@vaisocial</p>
                    </div>
                    
                    <div class="filter"></div>
                </div> <!-- end card -->    
            </div>


            <div class="card-box col-md-4 col-sm-6">
                <div class="card card-with-border card-just-text" data-background="color" data-color="black" >
                    <div class="content">
                        <h4 class="title">"Since you opened this page"</h4>
                        <p class="description">- Hipster Quote</p>
                    </div>
                </div> <!-- end card -->
            </div>           
        </div>
        


<!-- Stormcaller started here -->
        <div class="masonry-container">
            
            <div class="card-box col-md-4 col-sm-6">      
                <div class="card text-center" data-background="image" data-src="assets/img/city-2.png">
                    <h4 class="title title-modern">Minion Died</h4>
                    
                    <div class="content">
                        <div class="price">
                            <h6></h6>
                            <h4 id="minions-killed-now">0</h4>
                        </div>
                        <p class="description">why do we have to be so cruel? Why? Why? Why?</p>      
                    </div> 
                    <div class="filter"></div>
                </div> <!-- end card -->    
            </div>


            <div class="card-box col-md-4 col-sm-6">      
                <div class="card text-center" data-background="image" data-src="assets/img/city-1.jpg">
                    <h4 class="title title-modern">Fountains</h4>
                    
                    <div class="content">
                        <div class="price">
                            <h6></h6>
                            <h4 id="minions-killed-now">{{ sql_val("SELECT COUNT((item_grants->>'*1045_Item_FountainOfRenewal*')::INT)-COUNT((item_uses->>'*1045_Item_FountainOfRenewal*')::INT) FROM participant WHERE created_at > NOW() - '1 day'::INTERVAL") }}</h4>
                        </div>
                        <p class="description">bought for the looks</p>      
                    </div> 
                    <div class="filter"></div>
                </div> <!-- end card -->    
            </div>














            <div class="card-box col-md-4 col-sm-6">
                <div class="card">                                            
                    <div class="content">
                        <h6 class="category">Best stories</h6>
                        <h4 class="title"><a href="#">This is a plain Hipster Card, see for yourself</a></h4>
                        <p class="description">When selling products it's always a good idea to go with commanding fonts that are good at showing authority and security. I feel like Raleway and Roboto do just that.</p>
                    </div>                                           
                </div> <!-- end card -->
            </div>
                
                
            <div class="card-box col-md-4 col-sm-6">  
                <div class="card">                            
                    <div class="header">
                        <img src="assets/img/beard-1.jpg" />
                        
                        <div class="social-line social-line-visible" data-buttons="4">
                            <button class="btn btn-social btn-facebook">
                                <i class="fa fa-facebook"></i>
                            </button>
                            <button class="btn btn-social btn-twitter">
                                <i class="fa fa-twitter"></i>
                            </button>
                            <button class="btn btn-social btn-pinterest">
                                <i class="fa fa-pinterest"></i>
                            </button>
                            <button class="btn btn-social btn-google">
                                <i class="fa fa-google-plus"></i>
                            </button>
                        </div>
                    </div>
                    
                    <div class="content">
                        <h6 class="category">News</h6>
                        <h4 class="title">Use this card and see what you can achive</h4>
                        <p class="description">When selling products it's always a good idea to go with commanding fonts that are good at showing authority and security. I feel like Raleway and Roboto do just that.</p>
                    </div>  
                </div> <!-- end card -->
            </div>
             
            
            
            <div class="card-box col-md-4 col-sm-6">
                <div class="card" data-background="image" data-src="assets/img/lifestyle-2.jpg">
                    <div class="header">
                        <div class="category">
                            <h6 class="label label-warning">Trending Post</h6>    
                        </div>
                        
                        <div class="social-line" data-buttons="3">
                            <button class="btn btn-social btn-facebook">
                                <i class="fa fa-facebook-square"></i> Share
                            </button>
                            <button class="btn btn-social btn-twitter">
                                <i class="fa fa-twitter"></i> Tweet
                            </button>
                            <button class="btn btn-social btn-pinterest">
                                <i class="fa fa-pinterest"></i> Pin
                            </button>
                        </div> 
                    </div>
                    
                    <div class="content">
                        <h4 class="title">Tobias Van Schneider is a German designer raised in Austria...</h4>
                        <p class="description">When selling products it's always a good idea to go with commanding fonts that are good at showing authority and security.</p>
                    </div>                            
                    <div class="filter"></div>
                </div> <!-- end card -->    
            </div>
                 
            
            
            
             
            <div class="card-box col-md-4 col-sm-6">               
                <div class="card card-with-border" data-background="image" data-src="assets/img/fashion-1.jpg">
                    <div class="header">
                    </div>
                    
                    <div class="content text-center">
                        <p class="description">When selling products it's always a good idea to go with commanding fonts that are good at showing authority and security. I feel like Raleway and Roboto do just that.</p>
                    </div>                            
                    <div class="footer text-center">
                         <a href="#" class="btn btn-danger btn-fill btn-round">Read article</a>
                    </div>
                    <div class="filter"></div>
                </div> <!-- end card -->
            </div>
           
           
           
            <div class="card-box col-md-4 col-sm-6">  
                <div class="card card-just-text card-with-border" data-background="image" data-src="assets/img/lifestyle-9.jpg">
                    <div class="content">
                        <h4 class="title title-modern">"I liked nutella, triangles and outerspace way before hipsters."</h4>
                        <p class="description">- Not A Hipster</p>
                    </div>
                    <div class="filter"></div>
                </div> <!-- end card -->                
            </div>
            
            
            <div class="card-box col-md-4 col-sm-6">               
                <div class="card card-with-border" data-background="color" data-color="azure">
                    <div class="header">
                        <div class="icon">
                            <i class="pe-7s-radio"></i>
                        </div>
                    </div>
                    <div class="content text-center">
                        <h4 class="title title-modern">Nicecream.fm</h4>
                        <p class="description">Best vibes in the marketplace. Listen to the best music from '89. I feel like Nicecream and .fm do just that.</p>
                    </div>                      
                    <div class="footer text-center">
                        <button class="btn btn-neutral btn-round btn-fill btn-modern">Listen Now!</button>
                    </div>    
                </div> <!-- end card -->
            </div>





            <div class="card-box col-md-4 col-sm-6">   
                <div class="card card-with-border" data-background="color" data-color="orange">
                    <div class="content">
                        <h6 class="category">Hot Article</h6>
                        <h4 class="title">
                            <a href="#"> Try the new hairstyle from this Barber Shop</a>
                        </h4>
                        <p class="description">When selling products it's always a good idea to go with commanding fonts that are good at showing authority and security. I feel like Raleway and Roboto do just that.</p>
                    </div>                          
                </div> <!-- end card -->
            </div>

            
            
            <div class="card-box col-md-4 col-sm-6">      
                <div class="card text-center" data-background="image" data-src="assets/img/city-2.png">
                    <h4 class="title title-modern">Hipster Vacation</h4>
                    
                    <div class="content">
                        <div class="price">
                            <h6>From</h6>
                            <h4>2.799<b class="currency">$</b></h4>
                        </div>
                        <p class="description">When selling products it's always a good idea to go with commanding fonts that are good at showing authority and security.</p>      
                    </div> 
                    <div class="filter"></div>
                    <div class="footer btn-center">
                        <button class="btn btn-neutral btn-round btn-fill">Book Now!</button> 
                    </div>                            
                </div> <!-- end card -->    
            </div>
            
            
            

            <div class="card-box col-md-4 col-sm-6">
                <div class="card card-with-border">
                    <div class="header">
                        <div class="icon">
                            <i class="pe-7s-glasses"></i>
                        </div>
                    </div>
                    <div class="content text-center">
                        <h4 class="title text-center">Hipster Glasses App</h4>
                        <p class="description">Here can be a description about the application that is for download. I feel like this app is what I need.</p>                               
                    </div>
                    <div class="footer btn-center">
                        <button class="btn btn-default btn-round btn-fill btn-info btn-modern">Download</button> 
                    </div>                           
                </div> <!-- end card -->
            </div>
            
            
            
            
            
                
            <div class="card-box col-md-4 col-sm-6">
                <div class="card card-just-text card-with-border" data-background="image" data-src="assets/img/music-3.jpg">
                    <div class="content">
                        <div class="filter filter-red"></div>
                        <h4 class="title title-modern">"I like the way you work it
No diggity, I gotta bag it up."</h4>
                        <p class="description">- Chet Faker</p>                    
                    </div>
                    
                    <div class="filter"></div>
                </div> <!-- end card -->    
            </div>
            
            
            
            <div class="card-box col-md-4 col-sm-6">       
                <div class="card card-with-border" data-background="color" data-color="green">
                    <div class="header">
                        <div class="icon">
                            <i class="pe-7s-gift"></i>
                        </div>
                        
                        <div class="social-line" data-buttons="3">
                            <button class="btn btn-social btn-facebook">
                                <i class="fa fa-facebook"></i>
                            </button>
                            <button class="btn btn-social btn-twitter">
                                <i class="fa fa-twitter"></i>
                            </button>
                            <button class="btn btn-social btn-pinterest">
                                <i class="fa fa-pinterest"></i>
                            </button>
                        </div>
                        
                    </div>
                    <div class="content text-center">
                        <p class="description">Your friend <b>Michael Osborn</b> has sent you a hipster gift card.</p><br>                               
                    </div>
                    <div class="footer btn-center">
                        <button class="btn btn-neutral btn-fill btn-modern">View Gift Details</button> 
                    </div>                           
                </div> <!-- end card -->            
            </div>    
            
            
            
            <div class="card-box col-md-4 col-sm-6">
                <div class="card" data-background="color" data-color="black">                            
                    <div class="header">
                        <img src="assets/img/home-1.jpg"/>
                       
                        <div class="social-line" data-buttons="2">
                            <button class="btn btn-social">
                                <i class="fa fa-facebook-square"></i> Share
                            </button>
                            <button class="btn btn-social">
                                <i class="fa fa-twitter"></i> Tweet
                            </button>
                        </div>
                    </div>
                    
                    <div class="content">
                        <h6 class="category">Interior Design</h6>
                        <h4 class="title"><a href="#">Hipster Apartment sold for $1.2 mil.</a></h4>
                        <p class="description">When selling products it's always a good idea to go with commanding fonts that are good at showing authority and security. I feel like Raleway and Roboto do just that.</p>
                    </div>                                           
                </div> <!-- end card -->      
            </div> 
                
                
             
            <div class="card-box col-md-4 col-sm-6">  
                <div class="card text-center" data-background="image" data-src="assets/img/city-1.jpg">
                    <h4 class="title title-modern">Hipster City</h4>
                    
                    <div class="content">
                           <div class="price">
                            <h6>From</h6>
                            <h4>1.499<b class="currency">$</b></h4>
                        </div>      
                    </div> 
                    
                    <div class="footer btn-center">
                        <button class="btn btn-neutral btn-round btn-modern">Buy Ticket</button> 
                    </div>    
                    
                    <div class="filter filter-blue"></div>                       
                </div> <!-- end card -->             
            </div>
            
                              
        </div>
        
    </div> 
</div> <!-- end wrapper -->

</body>

    <script src="assets/js/jquery-1.10.2.js" type="text/javascript"></script>
    <script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="assets/js/hipster-cards.js"></script>
    

    <script type="text/javascript">
        var minions_per_second = {{ sql_val("SELECT SUM(minion_kills)/SUM(match.duration)::FLOAT FROM participant JOIN roster ON participant.roster_api_id=roster.api_id JOIN match ON roster.match_api_id=match.api_id WHERE participant.created_at > NOW() - '1 day'::INTERVAL") }};
        var minions = 0;
        // sum(minions killed) / sum(game lengh s)
        setInterval(() => {
            minions += minions_per_second;
            $("#minions-killed-now").text(Math.floor(minions));
        }, 1000);
    </script>


    <script type="text/javascript">
        var minions_per_second = {{ sql_val("SELECT SUM(minion_kills)/SUM(match.duration)::FLOAT FROM participant JOIN roster ON participant.roster_api_id=roster.api_id JOIN match ON roster.match_api_id=match.api_id WHERE participant.created_at > NOW() - '1 day'::INTERVAL") }};
        var minions = 0;
        // sum(minions killed) / sum(game lengh s)
        setInterval(() => {
            minions += minions_per_second;
            $("#minions-killed-now").text(Math.floor(minions));
        }, 1000);
    </script>


    <!--  Just for demo  -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/masonry/3.3.1/masonry.pkgd.min.js"></script>
    
    <script>
        
        $().ready(function(){
            
            var $container = $('.masonry-container');

            doc_width = $(document).width();
            
            if (doc_width >= 768){
                $container.masonry({
                    itemSelector        : '.card-box',
                    columnWidth         : '.card-box',
                    transitionDuration  : 0
                });   
            } else {
                $('.mas-container').removeClass('mas-container').addClass('row');
            }            
        });
    </script>
    
</html>