Skip to content

Commit

Permalink
frontend: user card
Browse files Browse the repository at this point in the history
ui design update
  • Loading branch information
rkshaon committed Jul 23, 2024
1 parent 4948569 commit 1d7ba61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
11 changes: 1 addition & 10 deletions frontend/src/components/admin/page/AdminProfilePage.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
<template>
<div class="container mt-5">
<AdminProfileCardComponent :profileData="profileData" />
<!-- <h2 v-if="profileData.name">{{ profileData.name }}</h2>
<h2 v-else>Update your profile to set name.</h2>
<img v-if="profileData.picture" :src="`${API_BASE_URL}${profileData.picture}`" :alt="profileData.name"
height="250" />
<img v-else src="@/assets/loading.gif" alt="Static Photo" height="250">
<p>Email: {{ profileData.email }}</p>
<p>Username: {{ profileData.username }}</p>
<button class="btn btn-warning">Change Password</button>
<button class="btn btn-info">Edit Profile</button> -->
<AdminProfileCardComponent :profileData="profileData" class="mb-3" />
<button class="btn btn-warning">Change Password</button>
<button class="btn btn-info">Edit Profile</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
class="card-img-top" height="250" width="250" />
<img v-else src="@/assets/loading.gif" alt="Static Photo" class="card-img-top" height="250" width="250">
<h5 class="card-title">{{ profileData.name }}</h5>
<h6 class="card-title">{{ profileData.role }}</h6>
<div class="card-body">
<p class="card-text">
<font-awesome-icon :icon="['fas', 'envelope']" size="lg" />
Expand All @@ -13,10 +14,6 @@
<font-awesome-icon :icon="['fas', 'envelope']" size="lg" />
{{ profileData.username }}
</p>
<p class="card-text">
<font-awesome-icon :icon="['fas', 'envelope']" size="lg" />
{{ profileData.role }}
</p>
</div>
</div>
</template>
Expand Down

0 comments on commit 1d7ba61

Please sign in to comment.