-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.vue
82 lines (82 loc) · 1.53 KB
/
App.vue
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
<template>
<div>
<div class="container">
<h1>vue-jazzicon</h1>
<div class="container--header">
<div class="header--icon">
<Jazzicon
:diameter="diameter"
:address="input" />
</div>
<div class="header--control">
<input
v-model="input"
type="text"
max="10"
placeholder="Type something here"
>
<input
v-model.number="diameter"
type="number"
placeholder="Type number here"
>
</div>
</div>
<div class="container--body">
<div
v-for="i in 20"
:key="i">
<Jazzicon
:diameter="100"
:seed="i" />
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'App',
data() {
return {
input: '0x14e8d820996b84347a8a553a643c2953aa73be7b',
diameter: 100
};
}
};
</script>
<style lang="scss">
.container {
max-width: 1000px;
width: 100%;
margin: auto;
padding: 2rem;
&--header {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid grey;
padding: 2rem 0;
}
&--body {
justify-content: center;
display: flex;
flex-wrap: wrap;
div {
margin: 1rem 0.5rem;
}
}
}
.header {
&--icon {
flex: 1;
max-width: 300px;
}
&--control {
flex: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
}
}
</style>