Skip to content

Commit 222d8e4

Browse files
author
yolandahp
committed
scoreboard
1 parent d025757 commit 222d8e4

File tree

15 files changed

+84
-2
lines changed

15 files changed

+84
-2
lines changed

public/images/0.png

18.1 KB
Loading

public/images/1.png

4.84 KB
Loading

public/images/2.png

15.1 KB
Loading

public/images/3.png

15.8 KB
Loading

public/images/4.png

12.3 KB
Loading

public/images/5.png

14.3 KB
Loading

public/images/6.png

18.4 KB
Loading

public/images/7.png

11.9 KB
Loading

public/images/8.png

20.2 KB
Loading

public/images/9.png

18.9 KB
Loading

public/images/bg6.jpg

907 KB
Loading

resources/views/room/showroom.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function progress(timeleft, timetotal, $element) {
177177
178178
$('#kotak-time-bar div').animate(
179179
{ width: progressBarWidth + 'px'},
180-
timeleft == timetotal ? 0 : 1000, 'linear').html(timeleft);
180+
timeleft == timetotal ? 0 : 1000, 'linear');
181181
if(timeleft > 0) {
182182
183183
setTimeout(function() {

resources/views/scoreboard.blade.php

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
@extends('master')
2+
3+
@section('css')
4+
<style>
5+
html, body {
6+
background-color: #fff;
7+
height: 100vh;
8+
font-family: 'Roboto+Condensed', sans-serif;
9+
background: url('/images/bg6.jpg');
10+
background-size: cover;
11+
background-repeat: no-repeat;
12+
background-position: center center;
13+
}
14+
15+
.main {
16+
min-height: 100%;
17+
display: flex;
18+
align-items: center;
19+
}
20+
21+
.scoreboard {
22+
width: 50%;
23+
margin: auto;
24+
padding: 20px 50px;
25+
background: #FFFFFF;
26+
border-radius: 12px;
27+
}
28+
29+
.scoreboard table span {
30+
width: 100px;
31+
}
32+
33+
</style>
34+
@endsection
35+
36+
@section('body')
37+
<div class="main">
38+
<div class="container">
39+
<div class="scoreboard shadow p-3 mb-5">
40+
<table class="table table-sm table-borderless text-center">
41+
<tbody>
42+
<tr>
43+
<th scope="row"><h2>Titut</h2></th>
44+
<td><h2><span class="badge badge-secondary">200</span></h2></td>
45+
</tr>
46+
<tr>
47+
<th scope="row"><h2>Dandy</h2></th>
48+
<td><h2><span class="badge badge-secondary">100</span></h2></td>
49+
</tr>
50+
<tr>
51+
<th scope="row"><h2>Yoshi</h2></th>
52+
<td><h2><span class="badge badge-secondary">90</span></h2></td>
53+
</tr>
54+
<tr>
55+
<th scope="row"><h2>Randi</h2></th>
56+
<td><h2><span class="badge badge-secondary">80</span></h2></td>
57+
</tr>
58+
<tr>
59+
<th scope="row"><h2>Syauqi</h2></th>
60+
<td><h2><span class="badge badge-secondary">70</span></h2></td>
61+
</tr>
62+
</tbody>
63+
</table>
64+
</div>
65+
</div>
66+
67+
</div>
68+
69+
70+
@endsection
71+
72+
@section('js')
73+
74+
@endsection
75+

resources/views/waiting.blade.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
.row.dot {
2121
width: 20%;
2222
margin: auto;
23-
margin-top: 40vh;
23+
margin-top: 10vh;
2424
}
2525
2626
.pinkBg {
@@ -141,6 +141,9 @@
141141
@section('body')
142142
<div class="main">
143143
<div class="container text-center">
144+
<div class="num-player">
145+
<img src="{{URL::asset('/images/0.png')}}" />
146+
</div>
144147

145148
<div class="row dot">
146149

routes/web.php

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
return view('room.showroom');
2727
})->name('showroom');
2828

29+
Route::get('/scoreboard', function () {
30+
return view('scoreboard');
31+
})->name('scoreboard');
32+
2933
Route::prefix('/room')->group(function () {
3034
Route::get('/create', 'RoomController@create')->name('room.create');
3135
Route::post('/create', 'RoomController@store')->name('room.store');

0 commit comments

Comments
 (0)