-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
412 lines (399 loc) · 14.3 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="A Dashboard for Laravel Queue with database driver">
<meta property="og:title" content="DashQ | A Dashboard for Laravel Queue with database driver" />
<meta property="og:url" content="https://tonywei92.github.io/laraveldashq/"/>
<meta property="og:description" content="A Dashboard for Laravel Queue with database driver">
<meta property="og:image" content="//tonywei92.github.io/laraveldashq/resources/assets/preview.png">
<meta name="theme-color" content="#3c222b" />
<title>DashQ | A Dashboard for Laravel Queue with database driver</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap-grid.min.css">
<link rel="stylesheet" href="resources/assets/icons.css">
<style>
body{
background: linear-gradient(25deg,#6c3f35,#e3d5c3);
overflow-x: hidden;
border-top: 0.5rem solid #3c222b;
font-family: 'Roboto', serif;
color: #3c222b;
}
a{
text-decoration: none;
text-transform: uppercase;
border-bottom: 1px dashed #000;
color: #3c222b;
}
.container {
padding-top: 20px;
}
.text-center{
text-align: center;
}
.btn{
display: inline-block;
text-decoration: none;
background-color: #3c222b;
color: white;
padding: 20px 40px;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.btn.btn-primary{
font-size: 1.4rem;
}
.btn.btn-primary:hover{
background-color: #74394d;
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
img.logo{
width: 200px;
}
@media (min-width: 560px){
img.logo{
width: 300px;
}
}
.code{
background-color: #000;
padding: 10px;
margin-bottom: 10px;
font-size: 1.2rem;
font-family: monospace;
border-radius: 4px;
line-height: 1.9rem;
}
.logo{
padding-top: 30px;
padding-bottom: 40px;
}
.preview{
max-width: 100%;
}
.title{
line-height: 3rem;
font-weight: 300;
font-size: 1.8rem;
padding: 0;
}
.subtitle{
line-height: 1.8rem;
font-weight: 300;
padding: 10px 0 10px 0;
}
.row__preview{
padding-top: 40px;
}
.dark{
border-top: 0.5rem solid #3c222b;
color: #eee;
background-color: #714040;
padding-top: 50px;
padding-bottom: 80px;
}
.features{
padding-top: 80px;
padding-bottom: 80px;
color: #fff;
}
.features__title{
padding-bottom: 40px;
line-height: 1.6rem;
}
.features i{
font-size: 3rem;
}
.features__item{
padding-left: 30px;
padding-bottom: 1.5rem;
}
.features h5{
font-size: 1.2rem;
line-height: 1.8rem;
font-weight: normal;
margin-top: 1rem;
margin-bottom: 0.8rem;
}
.features p{
line-height: 1.8rem;
font-weight: 300;
margin-top: 1rem;
margin-bottom: 0.8rem;
}
footer{
color: #fff;
font-weight: 300;
line-height: 2.8rem;
background-color: #411a1a;
padding-top: 2rem;
padding-bottom: 4.2rem;
}
footer a{
color: #fff;
border-bottom: 1px dashed #fff;
}
.nav__footer{
list-style: none;
margin:0;
padding: 0;
display: flex;
justify-content: center;
}
.nav__footer li{
padding-left: 8px;
padding-right: 8px;
}
.documentation{
padding-top: 1.8rem;
padding-bottom: 2rem;
}
#container{
position: absolute;
}
#blurCanvasTop{
left:0%;
top:0%;
position:absolute;
}
#blurCanvasBottom{
position:absolute;
}
.blur {
position:absolute;
overflow:hidden;
}
</style>
</head>
<body>
<canvas class="container" id="container" role="main"></canvas>
<div class="container text-center">
<div class="row">
<div class="col-12">
<img class="logo" src="resources/assets/logo.png" alt="laravel dashq logo">
</div>
</div>
<div class="row">
<div class="col-12">
<h1 class='title'>Dashboard for Laravel Queue with 'database' driver</h1>
<h4 class='subtitle'>Inspired by Laravel Horizon, bring more features in the future.</h4>
</div>
</div>
<div class="row documentation">
<div class="col-12">
<!--
<p>
<a href="#">What is Queue?</a>
</p>
-->
<a href="https://github.com/tonywei92/laraveldashq" class="btn btn-primary">
Documentation
</a>
</div>
</div>
<div class="row row__preview">
<div class="col-12">
<img class="preview" src="resources/assets/preview.png" alt="preview">
</div>
</div>
</div>
<div class="quickstart dark">
<div class="container">
<div class="row text-center">
<div class="col-12">
<h2>Installation</h2>
<p>Quickstart:</p>
<div class="code">
$ composer require tonysong/dashq
</div>
<div class="code">
$ php artisan vendor:publish --tag=dashq.assets
</div>
<p>
Visit yourweb.com/<strong>dashq</strong>
</p>
</div>
</div>
</div>
</div>
<div class="container features">
<div class="row">
<div class="col-12 text-center features__title">
<h4>HERE'S A PEEK AT SOME OF THE FEATURES.</h4>
</div>
<div class="col-6 col-sm-4 features__item">
<i class="icon-sql"></i>
<h5>Work with Queue with 'database' driver</h5>
<p>
Monitoring Queue with database driver queue, no more using Redis.
</p>
</div>
<div class="col-6 col-sm-4 features__item">
<i class="icon-repeat" aria-hidden="true"></i>
<h5>Retry one or more Jobs</h5>
<p>
Retry failed jobs based on selection and ability to retry all.
</p>
</div>
<div class="col-6 col-sm-4 features__item">
<i class="icon-icon" aria-hidden="true"></i>
<h5>Delete one or more Jobs</h5>
<p>
Delete jobs in few clicks.
</p>
</div>
<div class="col-6 col-sm-4 features__item">
<i class="icon-wipe"></i>
<h5>Emptying Jobs Table</h5>
<p>
Delete any jobs in few clicks.
</p>
</div>
<div class="col-6 col-sm-4 features__item">
<i class="icon-find"></i>
<h5>Search anything</h5>
<p>Search queue, payload and exceptions.</p>
</div>
<div class="col-6 col-sm-4 features__item">
<i class="icon-responsive"></i>
<h5>Responsive Design</h5>
<p>Enjoy the view at any screen sizes</p>
</div>
</div>
</div>
<footer>
<div class="container text-center">
<div class="row">
<div class="col-12">
<ul class='nav__footer'>
<li>
<a href="https://laravel.com/">Laravel</a>
</li>
<li>
<a href="https://horizon.laravel.com/">Laravel Horizon</a>
</li>
</ul>
</div>
<div class="col-12">
Copyright © 2018 <a href="mailto:[email protected]">Tony Song</a>
</div>
</div>
</div>
</footer>
<div class="blur blurTop"><canvas class="canvas"id="blurCanvasTop"></canvas></div>
<div class="blur blurBottom"><canvas class="canvas" id="blurCanvasBottom"></canvas></div>
</body>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>
var canvas = document.getElementById('container');
var clone = document.getElementById('blurCanvasBottom');
var cloneCtx = clone.getContext('2d');
var ctx = canvas.getContext('2d');
var w = $('#blurCanvasTop').width();
var h = $('#blurCanvasTop').height();
var ww = $(window).width();
var wh = $(window).height();
canvas.width = ww;
canvas.height= wh;
var partCount = 100;
var particles = [];
function particle(){
this.color = 'rgba(255,255,255,'+ Math.random()+')';
console.log(this.color);
this.x = randomInt(0,ww);
this.y = randomInt(0,wh);
this.direction = {
"x": -1 + Math.random() * 2,
"y": -1 + Math.random() * 2
};
this.vx = 0.3 * Math.random();
this.vy = 0.3 * Math.random();
this.radius = randomInt(2,3);
this.float = function(){
this.x += this.vx * this.direction.x;
this.y += this.vy * this.direction.y;
};
this.changeDirection = function (axis) {
this.direction[axis] *= -1;
};
this.boundaryCheck = function () {
if (this.x >= ww) {
this.x = ww;
this.changeDirection("x");
} else if (this.x <= 0) {
this.x = 0;
this.changeDirection("x");
}
if (this.y >= wh) {
this.y = wh;
this.changeDirection("y");
} else if (this.y <= 0) {
this.y = 0;
this.changeDirection("y");
}
};
this.draw = function () {
ctx.beginPath();
ctx.fillStyle = this.color;
ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false);
ctx.fill();
};
}
function clearCanvas() {
cloneCtx.clearRect(0, 0, ww, wh);
ctx.clearRect(0, 0, ww, wh);
}
function createParticles(){
for (i=0;i<partCount;i++){
var p = new particle();
particles.push(p);
}
}
function drawParticles() {
for (i=0;i<particles.length;i++) {
p = particles[i];
p.draw();
}
}
function updateParticles() {
for (var i = particles.length - 1; i >= 0; i--) {
p = particles[i];
p.float();
p.boundaryCheck();
}
}
createParticles();
drawParticles();
function animateParticles() {
clearCanvas();
drawParticles();
updateParticles();
cloneCtx.drawImage(canvas, 0, 0);
requestAnimationFrame(animateParticles);
}
requestAnimationFrame(animateParticles);
cloneCtx.drawImage(canvas, 0, 0);
$(window).on('resize',function(){
ww = $(window).width();
wh = $(window).height();
canvas.width = ww;
canvas.height= wh;
clearCanvas();
particles = [];
createParticles();
drawParticles();
});
function randomInt(min,max)
{
return Math.floor(Math.random()*(max-min+1)+min);
}
function velocityInt(min,max)
{
return Math.random()*(max-min+1)+min;
}
</script>
</html>