commit | author | age
|
14370b
|
1 |
<!DOCTYPE html> |
CM |
2 |
<html lang="en"> |
|
3 |
<head> |
|
4 |
<meta charset="UTF-8" /> |
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|
6 |
<title>Vue Basics</title> |
|
7 |
<link |
|
8 |
href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap" |
|
9 |
rel="stylesheet" |
|
10 |
/> |
|
11 |
<link rel="stylesheet" href="styles.css" /> |
4a01d9
|
12 |
<script src="https://unpkg.com/vue@3.4.9/dist/vue.global.js"></script> |
14370b
|
13 |
<script src="app.js" defer></script> |
CM |
14 |
</head> |
|
15 |
<body> |
|
16 |
<header> |
|
17 |
<h1>Monster Slayer</h1> |
|
18 |
</header> |
|
19 |
<div id="game"> |
|
20 |
<section id="monster" class="container"> |
|
21 |
<h2>Monster Health</h2> |
|
22 |
<div class="healthbar"> |
8c672a
|
23 |
<div |
CM |
24 |
class="healthbar__value" |
|
25 |
:style="monsterBarStyle" |
|
26 |
></div> |
14370b
|
27 |
</div> |
CM |
28 |
</section> |
|
29 |
<section id="player" class="container"> |
|
30 |
<h2>Your Health</h2> |
|
31 |
<div class="healthbar"> |
8c672a
|
32 |
<div |
CM |
33 |
class="healthbar__value" |
|
34 |
:style="playerBarStyle" |
|
35 |
></div> |
14370b
|
36 |
</div> |
CM |
37 |
</section> |
|
38 |
<section id="controls"> |
8c672a
|
39 |
<button @click="attackMonster">ATTACK</button> |
14370b
|
40 |
<button>SPECIAL ATTACK</button> |
CM |
41 |
<button>HEAL</button> |
|
42 |
<button>SURRENDER</button> |
|
43 |
</section> |
|
44 |
<section id="log" class="container"> |
|
45 |
<h2>Battle Log</h2> |
|
46 |
<ul></ul> |
|
47 |
</section> |
|
48 |
</div> |
|
49 |
</body> |
|
50 |
</html> |