Skip to content

Commit 713ea1f

Browse files
authored
Merge pull request #9 from realvishalrana/bugfix/ui_issue
Fix: ui issue after login
2 parents e9880e9 + 3538d93 commit 713ea1f

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/components/profile.jsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function Profile() {
3131
}
3232
}
3333
return (
34-
<div className="text-center">
34+
<div className="text-center flex-cen">
3535
{userDetails ? (
3636
<>
3737
<div style={{ display: "flex", justifyContent: "center" }}>
@@ -43,7 +43,11 @@ function Profile() {
4343
</div>
4444
<h3>Welcome, {userDetails.firstName} 🤗!</h3>
4545
<div>
46-
<p>Email: {userDetails.email}</p>
46+
<p>Email: {userDetails.email}</p>
47+
<p>
48+
We're excited to have you here again. Let's continue your learning
49+
journey
50+
</p>
4751
</div>
4852
<button className="btn" onClick={handleLogout}>
4953
<i className="fa-solid fa-right-from-bracket"></i> Logout
@@ -57,4 +61,4 @@ function Profile() {
5761
</div>
5862
);
5963
}
60-
export default Profile;
64+
export default Profile;

src/index.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
1+
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
2+
3+
.flex-cen{
4+
height: 90vh;
5+
display: flex;
6+
flex-direction: column;
7+
justify-content: center;
8+
align-items: center;
9+
}

0 commit comments

Comments
 (0)