feat: default avatar

This commit is contained in:
JOYCEQL
2024-11-20 22:52:00 +08:00
parent 5b506d252a
commit d02d497d9a
3 changed files with 18 additions and 10 deletions
+10
View File
@@ -0,0 +1,10 @@
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<!-- 背景圆圈 -->
<circle cx="100" cy="100" r="100" fill="#FAF5FF"/>
<!-- 头部 -->
<circle cx="100" cy="85" r="35" fill="#9F7AEA"/>
<!-- 身体 -->
<path d="M100 125c25 0 45 20 45 45v30H55v-30c0-25 20-45 45-45z" fill="#9F7AEA"/>
</svg>

After

Width:  |  Height:  |  Size: 322 B

@@ -73,15 +73,13 @@ const PhotoSelector: React.FC<Props> = ({ className, theme }) => {
</div>
</div>
{basic.photo && (
<div className="mt-2 relative overflow-hidden">
<img
src={basic.photo}
alt="Selected"
className="w-[48px] h-[48px] object-cover rounded"
/>
</div>
)}
<div className="mt-2 relative overflow-hidden">
<img
src={basic.photo}
alt="Selected"
className="w-[48px] h-[48px] object-cover rounded"
/>
</div>
<PhotoConfigDrawer
isOpen={showConfig}
+1 -1
View File
@@ -68,7 +68,7 @@ const initialState = {
photoConfig: DEFAULT_CONFIG,
customFields: [],
employementStatus: "",
photo: "https://talencat.s3.amazonaws.com/app/avatar/builtin/cat001.png"
photo: "avatar.svg"
},
education: [
{