Skip to content

Commit d995d58

Browse files
committed
[feature] add Google Link Button
1 parent 4de1a51 commit d995d58

File tree

1 file changed

+46
-32
lines changed

1 file changed

+46
-32
lines changed

frontend/components/mypage/Profile.vue

Lines changed: 46 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,50 @@
11
<template>
2-
<v-row justify="center" class="d-flex align-center">
3-
<v-col cols="1">
4-
<v-avatar v-if="userModel.is_social" size="52px">
5-
<img alt="Avatar" :src="userModel.social_avatar" />
6-
</v-avatar>
7-
<v-avatar
8-
v-else
9-
size="52"
10-
color="#efefef"
11-
style="cursor: pointer"
12-
@click="openEmojiPicker"
13-
>
14-
<span class="white--text text-h5">
15-
{{ userModel.emoji }}
16-
</span>
17-
</v-avatar>
18-
<v-dialog v-model="shownEmoji" max-width="325px">
19-
<v-emoji-picker @select="selectEmoji"></v-emoji-picker>
20-
</v-dialog>
21-
</v-col>
22-
<v-col cols="3">
23-
<v-text-field
24-
v-model="userModel.name"
25-
label="Name"
26-
type="text"
27-
:error-messages="errors.name"
28-
></v-text-field>
29-
</v-col>
30-
<v-col cols="2">
31-
<v-btn small @click="update">Save</v-btn>
32-
</v-col>
33-
</v-row>
2+
<div>
3+
<v-row justify="center" class="d-flex align-center">
4+
<v-col cols="1">
5+
<v-avatar v-if="userModel.is_social" size="52px">
6+
<img alt="Avatar" :src="userModel.social_avatar" />
7+
</v-avatar>
8+
<v-avatar
9+
v-else
10+
size="52"
11+
color="#efefef"
12+
style="cursor: pointer"
13+
@click="openEmojiPicker"
14+
>
15+
<span class="white--text text-h5">
16+
{{ userModel.emoji }}
17+
</span>
18+
</v-avatar>
19+
<v-dialog v-model="shownEmoji" max-width="325px">
20+
<v-emoji-picker @select="selectEmoji"></v-emoji-picker>
21+
</v-dialog>
22+
</v-col>
23+
<v-col cols="3">
24+
<v-text-field
25+
v-model="userModel.name"
26+
label="Name"
27+
type="text"
28+
:error-messages="errors.name"
29+
></v-text-field>
30+
</v-col>
31+
<v-col cols="2">
32+
<v-btn small @click="update">Save</v-btn>
33+
</v-col>
34+
</v-row>
35+
<v-row justify="center" class="d-flex align-center mt-0">
36+
<v-col cols="2">
37+
<v-tooltip bottom>
38+
<template #activator="{ on, attrs }">
39+
<v-btn color="primary" small fab v-bind="attrs" v-on="on"
40+
><v-icon> mdi-google-plus</v-icon></v-btn
41+
>
42+
</template>
43+
<span>Linked Account</span>
44+
</v-tooltip>
45+
</v-col>
46+
</v-row>
47+
</div>
3448
</template>
3549

3650
<script>

0 commit comments

Comments
 (0)