-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
avatar.vue
54 lines (51 loc) · 1.58 KB
/
avatar.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
<template>
<div class="q-layout-padding avatar-page">
<p>Basic</p>
<div>
<q-avatar color="red" text-color="white" icon="directions" />
<q-avatar color="primary" text-color="white">
J
</q-avatar>
<q-avatar size="100px" font-size="52px" color="teal" text-color="white" icon="fas fa-address-book" />
<q-avatar size="24px" color="orange">
J
</q-avatar>
<q-avatar>
<img src="https://cdn.quasar.dev/img/boy-avatar.png">
</q-avatar>
</div>
<p>Square</p>
<div>
<q-avatar square color="red" text-color="white" icon="directions" />
<q-avatar square color="primary" text-color="white">
J
</q-avatar>
<q-avatar square size="100px" font-size="82px" color="teal" text-color="white" icon="directions" />
<q-avatar square size="24px" color="orange">
J
</q-avatar>
<q-avatar square>
<img src="https://cdn.quasar.dev/img/boy-avatar.png">
</q-avatar>
</div>
<p>Rounded</p>
<div>
<q-avatar rounded color="red" text-color="white" icon="directions" />
<q-avatar rounded color="primary" text-color="white">
J
</q-avatar>
<q-avatar rounded size="100px" font-size="82px" color="teal" text-color="white" icon="directions" />
<q-avatar rounded size="24px" color="orange">
J
</q-avatar>
<q-avatar rounded>
<img src="https://cdn.quasar.dev/img/boy-avatar.png">
</q-avatar>
</div>
</div>
</template>
<style lang="sass">
.avatar-page .q-avatar
margin: 4px
// box-shadow: $shadow-4
</style>