Skip to content

Commit dcb304f

Browse files
committed
fix(profile): update profile layout and enhance contact details styling
1 parent 6091799 commit dcb304f

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

profile/main.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,15 @@ function handleProfileData(data, plan) {
192192
</div>
193193
</div>
194194
195-
<!-- Profile Image & Name Side by Side -->
195+
<!-- Profile Picture and Name -->
196196
<div class="flex items-center w-full mb-4">
197-
<div class="w-1/3 flex justify-center">
197+
<div class="flex justify-center">
198198
<img src="${escapeHtml(profileData.profilePic)}"
199199
class="w-32 h-32 rounded-full profile-picture"
200200
style="background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);"
201201
alt="${escapeHtml(profileData.name)}'s profile">
202202
</div>
203-
<div class="w-2/3 h-32 flex items-center"
204-
style="background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 0.75rem;">
203+
<div class=" items-center" style="background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 0.75rem;">
205204
<h1 class="text-2xl font-bold text-white w-full text-center">${escapeHtml(profileData.name)}</h1>
206205
</div>
207206
</div>
@@ -375,8 +374,7 @@ async function showContactDetails(contact) {
375374
alt="${escapeHtml(contact.name)}"
376375
onerror="this.src='https://tccards.tn/Assets/default.png'">
377376
</div>
378-
<div class="w-2/3 h-20 flex items-center"
379-
style="background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 0.75rem;">
377+
<div class="w-2/3 h-20 flex items-center">
380378
<h3 class="text-xl font-bold text-white w-full text-center">${escapeHtml(contact.name)}</h3>
381379
</div>
382380
</div>

profile/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ body {
162162

163163
.contact-details-container {
164164
padding: 1.5rem;
165+
display: flex;
166+
flex-direction: column;
167+
align-items: center;
165168
border-radius: 12px;
166169
background: rgba(255, 255, 255, 0.1);
167170
backdrop-filter: blur(10px);

0 commit comments

Comments
 (0)