-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
147 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/************************************************** | ||
* TAGS | ||
**************************************************/ | ||
|
||
.tags { | ||
.tag { | ||
float: left; | ||
|
||
display: flex; | ||
flex-flow: row nowrap; | ||
align-items: center; | ||
|
||
white-space: nowrap; | ||
|
||
margin-right: .5em; | ||
margin-bottom: .5rem; | ||
padding: .5em 1em; | ||
font-size: rem(10px); | ||
|
||
color: $color_action; | ||
background-color: lighten($color_action, 50); | ||
border-radius: 2em; | ||
|
||
button { | ||
position: relative; | ||
@include button-reset; | ||
margin-left: .5em; | ||
|
||
width: 1em; | ||
height: 1em; | ||
border: 1px solid $color_action; | ||
border-radius: .5em; | ||
|
||
&::before, | ||
&::after { | ||
content: ''; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
width: 80%; | ||
height: 0; | ||
border-top: 1px solid $color_action; | ||
} | ||
|
||
&::before { | ||
transform: translate(-50%, -50%) rotate(45deg); | ||
} | ||
|
||
&::after { | ||
transform: translate(-50%, -50%) rotate(-45deg); | ||
} | ||
} | ||
} | ||
} | ||
|
||
ul.tags { | ||
@include clearulli(true); | ||
@include clearfloat; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,66 @@ | ||
{% set classes = ['user', 'user__profile'] %} | ||
<div class="{{ classes|join(' ') }}" style="--color: {{ user.name|color }}"> | ||
<div class="user-title"> | ||
{% include 'contents/user/partials/user--avatar.html.twig' with{'user':user, 'filter':'profile'} %} | ||
|
||
<div> | ||
<h1 class="h2 user--name">{{ user.name }}</h1> | ||
|
||
{% set location = [] %} | ||
{% if user.city is not empty %}{% set location = location|merge([user.city]) %}{% endif %} | ||
{% if user.country is not empty %}{% set location = location|merge([user.country|countryName]) %}{% endif %} | ||
{% if location is not empty %} | ||
<div class="user--location">{{ location|join(', ') }}</div> | ||
{% endif %} | ||
|
||
{% if user.site is not empty %} | ||
<div class="user--site">{{ user.site.name }}</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="user--presentation">{{ user.presentation }}</div> | ||
<div class="user-infos"> | ||
<div class="user-title"> | ||
{% include 'contents/user/partials/user--avatar.html.twig' with{'user':user, 'filter':'profile'} %} | ||
|
||
<div> | ||
<h1 class="h2 user--name">{{ user.name }}</h1> | ||
|
||
{% if user.skills is not empty %} | ||
<div class="user--skills"> | ||
<h2 class="h3">{{ 'pages.member.profile.skills.title'|trans }} :</h2> | ||
{% set location = [] %} | ||
{% if user.city is not empty %}{% set location = location|merge([user.city]) %}{% endif %} | ||
{% if user.country is not empty %}{% set location = location|merge([user.country|countryName]) %}{% endif %} | ||
{% if location is not empty %} | ||
<div class="user--location">{{ location|join(', ') }}</div> | ||
{% endif %} | ||
|
||
<ul> | ||
{% for skill in user.skills %} | ||
<li>{{ skill.slug|trans({}, 'skills') }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% if user.site is not empty %} | ||
<div class="user--site">{{ user.site.name }}</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div class="user--presentation">{{ user.presentation }}</div> | ||
|
||
{% if user.bio is not empty %} | ||
<div class="user--bio"> | ||
<h2 class="h3">{{ 'pages.member.profile.bio.title'|trans }} :</h2> | ||
{% if user.skills is not empty %} | ||
<div class="user--skills"> | ||
<h2 class="h3">{{ 'pages.member.profile.skills.title'|trans }} :</h2> | ||
|
||
<p>{{ user.bio|nl2br }}</p> | ||
</div> | ||
{% endif %} | ||
<ul class="tags"> | ||
{% for skill in user.skills %} | ||
<li class="tag">{{ skill.slug|trans({}, 'skills') }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
|
||
{% if user.bio is not empty %} | ||
<div class="user--bio"> | ||
<h2 class="h3">{{ 'pages.member.profile.bio.title'|trans }} :</h2> | ||
|
||
<p>{{ user.bio|nl2br }}</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
{% if user.usergroupmemberships is not empty %} | ||
<div class="user--groups"> | ||
<h2 class="h3">{{ 'pages.member.profile.groups.title'|trans }} :</h2> | ||
|
||
<ul> | ||
{% for membership in user.usergroupmemberships %} | ||
{% if user_group_relation.isMember(user, membership.usergroup) %} | ||
<li><a href="{{ path('group_index', {'groupSlug':membership.usergroup.slug}) }}">{{ membership.usergroup.name }}</a></li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
<div class="groups-list"> | ||
<ul> | ||
{% for membership in user.usergroupmemberships %} | ||
{% if user_group_relation.isMember(user, membership.usergroup) %} | ||
<li> | ||
{% include 'contents/group/group--teaser.html.twig' with {'group':membership.usergroup} %} | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
<div class="user--contact"> | ||
<a class="cta" href="mailto:{{ user.email }}" target="_blank">{{ 'pages.user.profile.contact'|trans }}</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters