22 <div class =" popup w-full p-5" >
33 <!-- Header and Close button -->
44 <header class =" flex flex-row justify-between mb-2" >
5- <h2 class =" font-bold text-xl" >Edit Profile </h2 >
5+ <h2 class =" font-bold text-xl" >Edit your profile </h2 >
66 <button class =" rounded-full bg-gray1 p-1" @click =" $emit(`close`)" ><CloseIcon /></button >
77 </header >
88 <!-- Change avatar -->
9- <div class =" flex justify-center w-full mb-2 " >
9+ <div class =" flex justify-center w-full mb-5 " >
1010 <button class =" focus:outline-none" @click =" handleImageClick" >
11- <Avatar :authorID =" $store.state.session.id" :avatar =" profilePic" :noClick =" true" :size =" `w-24 h-24`" />
11+ <span class =" absolute inline-flex" >
12+ <Avatar :authorID =" $store.state.session.id" :avatar =" profilePic" :noClick =" true" :size =" `w-24 h-24`" />
13+ </span >
14+ <span
15+ class ="
16+ h-24
17+ w-24
18+ bg-lightOnSurfaceText
19+ text-lightOnPrimaryText
20+ relative
21+ inline-flex
22+ rounded-lg
23+ flex
24+ items-center
25+ justify-center
26+ bg-opacity-25
27+ "
28+ >
29+ <PencilIcon class =" w-5 h-5 fill-current" />
30+ </span >
1231 </button >
1332 <input
1433 id =" file-input"
85104 />
86105 </div >
87106 <!-- Preferred Node -->
88- <div class =" flex flex-row mb-2" >
107+ <!-- < div class="flex flex-row mb-2">
89108 <label for="nodeURL" class="w-32">OrbitDB URL</label>
90109 <input
91110 id="nodeURL"
94113 :placeholder="$store.state.nodeURL"
95114 class="text-black placeholder-black px-2 py-1 bg-gray1 rounded-lg flex-grow"
96115 />
97- </div >
116+ </div> -->
98117 <!-- Socials -->
99- <div class =" flex flex-row mb-2" >
118+ <!-- < div class="flex flex-row mb-2">
100119 <label class="w-32">Socials</label>
101- </div >
120+ </div> -->
102121
103122 <!-- Submit button -->
104123 <div class =" flex justify-end" >
@@ -119,6 +138,7 @@ import BrandedButton from '@/components/BrandedButton.vue'
119138import { MutationType , getProfileFromSession , namespace as sessionStoreNamespace } from ' ~/store/session'
120139import { getProfile , setProfile } from ' @/backend/profile'
121140import { addPhotoToIPFS , getPhotoFromIPFS , preUploadPhoto } from ' @/backend/photos'
141+ import PencilIcon from ' @/components/icons/Pencil.vue'
122142
123143interface IData {
124144 newName: string
@@ -137,6 +157,7 @@ export default Vue.extend({
137157 CloseIcon ,
138158 Avatar ,
139159 BrandedButton ,
160+ PencilIcon ,
140161 // ColorMode,
141162 },
142163 data(): IData {
0 commit comments