Merge pull request 'profile followers, following ui' (#24) from PostController into master
Reviewed-on: #24pull/26/head
commit
cca4452721
@ -0,0 +1,76 @@
|
|||||||
|
.profile-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 70%;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 10px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 1rem;
|
||||||
|
margin: 5px;
|
||||||
|
background-color: white;
|
||||||
|
|
||||||
|
.profile-user {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: rows;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.profile-name {
|
||||||
|
font-size: 2em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-size: 2em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-around;
|
||||||
|
|
||||||
|
.profile-info-element {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile-card img {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile-card a {
|
||||||
|
display: block;
|
||||||
|
margin-top: 10px;
|
||||||
|
text-decoration: none;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile-card a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
color: white;
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: black;
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
<a href="{{ path('profil_show', {id: profil.id}) }}">
|
||||||
|
<div class="profile-card">
|
||||||
|
<div class="profile-user">
|
||||||
|
<img src="https://api.dicebear.com/8.x/big-smile/svg?translateY=-5&seed={{ profil.name }}" alt="Profile Image">
|
||||||
|
<span class="profile-name">{{ profil.name }}</span>
|
||||||
|
|
||||||
|
<div class="profile-info-element">
|
||||||
|
<span>{{ profil.posts|length }}</span>
|
||||||
|
<span>Posts</span>
|
||||||
|
</div>
|
||||||
|
<div class="profile-info-element">
|
||||||
|
<span>{{ profil.followers|length }}</span>
|
||||||
|
<span>Followers</span>
|
||||||
|
</div>
|
||||||
|
<div class="profile-info-element">
|
||||||
|
<span>{{ profil.following|length }}</span>
|
||||||
|
<span>Following</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
Binary file not shown.
Loading…
Reference in new issue