Skip to content

Commit

Permalink
Update Profile Cover Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinshenoy committed Mar 8, 2019
1 parent 8f3b4cf commit 0bd192c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pages/static/pages/styles/profile.sass
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ $primary-color: #ffc107
align-items: center
justify-content: center
min-height: 60vh
text-shadow: 0.2rem 0.3rem rgba(0,0,0,0.3)

#title-block
display: flex
Expand Down
2 changes: 1 addition & 1 deletion templates/member/profile.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% block content %}
{% if profile %}
<section id="cover"
style="background-image: {% if profile.cover %} linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/{{profile.cover}}'); {% endif %} background-position: center; background-size: cover; background-color: {{profile.accent}};">
style="background-image: {% if profile.cover %} linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('{{profile.cover.url}}'); {% endif %} background-position: center; background-size: cover; background-color: {{profile.accent}};">
%div.name.text-center
<img src="{{profile.avatar.url}}" id="avatar" class="w-100 rounded-circle">
%h1 {{profile.first_name}} {{profile.last_name}}
Expand Down

0 comments on commit 0bd192c

Please sign in to comment.