-
Notifications
You must be signed in to change notification settings - Fork 1
/
template2.html
78 lines (75 loc) · 2.72 KB
/
template2.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
<!DOCTYPE html>
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet">
<link href="https://unpkg.com/vuetify/dist/vuetify.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
</head>
<body>
<div id="app">
<v-app>
<template>
<v-container>
<v-layout>
<v-flex xs3 class="mr-3" v-for="item in items" wrap>
<v-card color="blue-grey lighten-4">
<v-card-title primary-title class="primary" style="color:white">
<div>
<h3 class="headline mb-0" style="align:center">{{item.title}}</h3>
</div>
<div v-if="item.imageLink !=''"> <img v-bind:src="item.imageLink" width="40" height="32" style="float:left; border:none" /></div>
</v-card-title>
<v-card-text>
<ul style="list-style-type:none">
<li v-for="list in item.description">{{list}}</li>
</ul>
</v-card-text>
<v-card-actions>
<v-btn round color="info" style="align:center">{{item.price}}</v-btn>
</v-card-actions>
</v-card>
</v-flex>
</v-layout>
</v-container>
</template>
</v-app>
</div>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vuetify/dist/vuetify.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script>
new Vue({
el: '#app',
data:{
items:[
{
title:'Basic',
description:["Statement 1","Statement 2","Statement 3","Statement 4"],
price:'$10',
imageLink:''
},
{
title:'Standard',
description:["Statement 1","Statement 2","Statement 3","Statement 4"],
price:'$20',
imageLink:''
},
{
title:'Premium',
description:["Statement 1","Statement 2","Statement 3","Statement 4"],
price:'$30',
imageLink:''
},
{
title:'Enterprise',
description:["Statement 1","Statement 2","Statement 3","Statement 4"],
price:'Contact',
imageLink:'https://d30y9cdsu7xlg0.cloudfront.net/png/1199-200.png'
}
]
}
})
</script>
</body>
</html>