-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
174 lines (159 loc) · 6.83 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
<!DOCTYPE html>
<html>
<head>
<title>Game Store</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/app.css">
<!-- TODO: Insert needed tags here -->
</head>
<body>
<!-- Navigation bar -->
<header class="navbar navbar-fixed-top">
<div class="navbar-inner">
<section class="container">
<a class="brand" href="#/welcome">Game Store</a>
<ul class="nav">
<li><a href="#/games">Games</a></li>
</ul>
</section>
</div>
</header>
<!-- Main part -->
<section class="container">
<!-- TODO: Insert your components here and comment the templates below -->
<h1>Game</h1>
<!-- GAME_TEMPLATE BEGIN -->
<div class="game">
<img src="img/games/darts.jpg" alt="Game picture" class="span2">
<div>
<h3>DARTS
<button class="btn btn-danger"><i class="icon-trash icon-white"></i></button>
<a href="#/games/1" class="btn btn-info"><i class="icon-edit icon-white"></i></a>
</h3>
<p><b>Genre:</b> Pub game</p>
<p><b>Description:</b> Darts is a form of throwing game in which small missiles are thrown at a circular target (dartboard) fixed to a wall. Though various boards and rules have been used in the past, the term "darts" usually now refers to a standardised game involving a specific board design and set of rules.</p>
<p><b>Rating:</b> <span id="rating">★★★</span></p>
</div>
</div>
<!-- GAME_TEMPLATE END -->
<hr />
<!-- GAMES_TEMPLATE BEGIN -->
<header class="page-header">
<h1>Game store <small>3 games</small>
<a href="#/games/new" class="btn btn-primary">Add a game</a>
</h1>
</header>
<section class="well form-inline">
<input type="text" placeholder="Search" class="span5">
<section class="pull-right">
<!-- TODO: On click, alternate between icon-th-list and icon-th classes -->
<button class="btn btn-success"><i class="icon-white icon-th-list"></i></button>
<button class="btn btn-info">Sort by name</button>
<button class="btn btn-info">Sort by rating</button>
</section>
</section>
<!-- GAMES_TEMPLATE_DETAILED BEGIN -->
<div class="games">
<div class="game">
<img src="img/games/chess.jpg" alt="Game picture" class="span2">
<div>
<h3>CHESS
<button class="btn btn-danger"><i class="icon-trash icon-white"></i></button>
<a href="#/games/2" class="btn btn-info"><i class="icon-edit icon-white"></i></a>
</h3>
<p><b>Genre:</b> Board game</p>
<p><b>Description:</b> Chess is a two-player strategy board game played on a chessboard, a checkered gameboard with 64 squares arranged in an eight-by-eight grid. It is one of the world's most popular games, played by millions of people worldwide at home, in clubs, online, by correspondence, and in tournaments.</p>
<p><b>Rating:</b> <span id="rating">★★</span></p>
</div>
</div>
<div class="game">
<img src="img/games/darts.jpg" alt="Game picture" class="span2">
<div>
<h3>DARTS
<button class="btn btn-danger"><i class="icon-trash icon-white"></i></button>
<a href="#/games/1" class="btn btn-info"><i class="icon-edit icon-white"></i></a>
</h3>
<p><b>Genre:</b> Pub game</p>
<p><b>Description:</b> Darts is a form of throwing game in which small missiles are thrown at a circular target (dartboard) fixed to a wall. Though various boards and rules have been used in the past, the term "darts" usually now refers to a standardised game involving a specific board design and set of rules.</p>
<p><b>Rating:</b> <span id="rating">★★★</span></p>
</div>
</div>
<div class="game">
<img src="img/games/dice.jpg" alt="Game picture" class="span2">
<div>
<h3>DICES
<button class="btn btn-danger"><i class="icon-trash icon-white"></i></button>
<a href="#/games/3" class="btn btn-info"><i class="icon-edit icon-white"></i></a>
</h3>
<p><b>Genre:</b> Random game</p>
<p><b>Description:</b> Dice are small throwable objects with multiple resting positions, used for generating random numbers. This makes dice suitable as gambling devices for games like craps, or for use in non-gambling tabletop games.</p>
<p><b>Rating:</b> <span id="rating">★★★★</span></p>
</div>
</div>
</div>
<!-- GAMES_TEMPLATE_DETAILED END -->
<!-- GAMES_TEMPLATE_COMPACT BEGIN -->
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Genre</th>
<th>Rating</th>
</tr>
</thead>
<tbody>
<tr>
<td>Chess</td>
<td>Board game</td>
<td>★★</td>
</tr>
<tr>
<td>Darts</td>
<td>Pub game</td>
<td>★★★</td>
</tr>
<tr>
<td>Dices</td>
<td>Random game</td>
<td>★★★★</td>
</tr>
</tbody>
</table>
<!-- GAMES_TEMPLATE_COMPACT END -->
<!-- GAMES_TEMPLATE END -->
<hr/>
<!-- GAME_EDIT_TEMPLATE BEGIN -->
<header class="page-header">
<h1>Game edit</h1>
</header>
<div class="form-horizontal">
<div class="control-group">
<label class="control-label">Name: </label>
<input type="text" value="DARTS">
</div>
<div class="control-group">
<label class="control-label">Genre: </label>
<input type="text" value="Pub game">
</div>
<div class="control-group">
<label class="control-label">Image: </label>
<input type="text" value="chess.jpg">
</div>
<div class="control-group">
<label class="control-label">Description: </label>
<textarea>Dart is ...</textarea>
</div>
<div class="control-group">
<label class="control-label">Rating: </label>
<input type="number" value="3" placeholder="from 1 to 5" min="1" max="5">
</div>
<footer class="form-actions">
<a href="#/games" class="btn btn-danger btn-small">Cancel</a>
<a href="#/games" class="btn btn-success">Save</a>
</footer>
</div>
<!-- GAME_EDIT_TEMPLATE END -->
</section>
</body>
</html>