-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (40 loc) · 1.62 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Vue.js Components Course</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css">
</head>
<body>
<div id="app">
<h1>Vue.JS Components</h1>
<plan-picker></plan-picker>
</div>
<script type="text/x-template" id="plan-picker-template">
<div class="plans">
<plan-picker-item v-for="plan in plans" :name="plan" v-bind:key="plan.id" @select="selectPlan" :selected-plan="selectedPlan"></plan-picker-item>
</div>
</script>
<script type="text/x-template" id="plan-picker-item-template">
<div @click="select" class="plan ui card" :class="{'active-plan': isSelected}">
<div class="description ui content">
<div class="title">
<h3>{{name}}</h3>
</div>
<div v-if="description" class="description">
<p>{{description}}</p>
</div>
<div v-if="price" class="price">
<p>€{{price}}</p>
</div>
</div>
</div>
</script>
<script src="https://unpkg.com/vue"></script>
<script src="app.js"></script>
</body>
</html>