Skip to content

Commit cada15d

Browse files
committed
Changed how the profile picture is presented
1 parent 7f59da1 commit cada15d

File tree

3 files changed

+18
-36
lines changed

3 files changed

+18
-36
lines changed

LinkDotNet.Blog.Web/Shared/Profile.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
<div class="profile-image">
1414
<img src="@appConfiguration.ProfileInformation.ProfilePictureUrl" alt="Profile Picture" />
1515
</div>
16-
<ul class="profile-keypoints">
16+
<ul class="profile-keypoints inverted-colors">
1717
@foreach (var entry in profileInformationEntries)
1818
{
1919
<li>
2020
@if (IsAuthenticated)
2121
{
22-
<button type="button" class="btn btn-default" aria-label="Delete Item" @onclick="() =>
22+
<button type="button" class="btn btn-default" aria-label="Delete Item" @onclick="() =>
2323
ShowDeleteDialog(entry.Content)">
2424
<i class="fas fa-trash-alt" aria-hidden="true"></i>
2525
</button>

LinkDotNet.Blog.Web/Shared/Profile.razor.css

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.profile-name {
99
padding: 20px;
1010
font-size: 1.25em;
11+
line-height: 1.5em;
1112
}
1213

1314
.profile-name:first-child {
@@ -19,53 +20,30 @@
1920
}
2021

2122
.profile-image {
22-
clip-path: polygon(0 9%, 100% 0, 100% 94%, 0% 100%);
23+
padding: 30px;
24+
background: linear-gradient(to bottom , white 50%, var(--header1) 50.1%, var(--header1) 100%);
2325
}
2426

2527
.profile-image img {
2628
width: 100%;
29+
margin: auto;
30+
border-radius: 50vw;
31+
display: block;
2732
}
2833

2934
.profile-keypoints {
35+
background-color: var(--header1);
3036
padding-top: 10px;
37+
padding-left: 2.5em;
38+
padding-right: 1.5em;
3139
list-style: none;
40+
margin-bottom: 0;
3241
}
3342

3443
.profile-keypoints li {
35-
position: relative;
3644
padding-bottom: 0.6em;
37-
38-
}
39-
40-
.profile-keypoints li:before {
41-
border-color: var(--header1);
42-
content: "";
43-
border-left: solid 2px;
44-
height: 100%;
45-
width: 1px;
46-
left: -16px;
47-
position: absolute;
48-
display: block;
49-
}
50-
51-
.profile-keypoints li:after {
52-
content: "";
53-
position: absolute;
54-
left: -19.5px;
55-
top: 8px;
56-
height: 8px;
57-
width: 8px;
58-
border-radius: 50%;
59-
display: inline-block;
60-
background-color: var(--header2);
61-
}
62-
63-
.profile-keypoints li:first-child:before {
64-
top: 8px;
65-
}
66-
67-
.profile-keypoints li:last-child:before {
68-
height: 8px;
45+
color: var(--white);
46+
letter-spacing: 0.05em;
6947
}
7048

7149
/* As the MarkupComponent is a base class we have to use deep */

LinkDotNet.Blog.Web/wwwroot/css/basic.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ a:hover {
8484
color: var(--text-color-inverted) !important;
8585
}
8686

87+
.inverted-colors button {
88+
color: var(--white) !important;
89+
}
90+
8791
h1 {
8892
color: var(--header1);
8993
}

0 commit comments

Comments
 (0)