Skip to content

Commit

Permalink
1816 Moved the congrats box to right column
Browse files Browse the repository at this point in the history
Work for #1816 additionally, I removed the avatar and center column for the layout. Remaining work: inspiration button needs to change once the native inspiration gallery upload feature is added ( #1815 )
  • Loading branch information
James-Robe committed Apr 25, 2018
1 parent 7391c58 commit 7393e13
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
9 changes: 1 addition & 8 deletions challenges/templates/challenges/edp/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,13 @@ <h1>{{ challenge.name }}</h1>
</header>
{% endblock %}

{% block congrats_panel %}{% endblock %}

<div class="row">

<div class="col-md-5">
<div class="col-md-6">
{% block left_panel %}
{% endblock %}
</div>

<div class="col-md-1">
{% block middle_panel %}
{% endblock %}
</div>

<div class="col-md-6">
{% block right_panel %}
{% endblock %}
Expand Down
3 changes: 0 additions & 3 deletions challenges/templates/challenges/edp/progress/reflect.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ <h2><small>We're improving this challenge. You can keep working on it, but keep
{% endblock %}

{% block middle_panel %}
<div class="avatar-container">
{% include "_avatar.html" with user=progress.owner width=50 height=50 crop='fill' %}
</div>
{% endblock %}

{% block comments %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
<div class="panel white congratulations-panel">
<div class="panel-body text-center">
<div class="row">
<div class="col-md-6 col-md-offset-3 congratulations-panel-content">
<div class="congratulations-panel-content">
<h2>Congratulations!</h2>
<p>
You just completed a design challenge! Now you can post a picture of your project to the Inspiration Gallery
to share with the community.
</p>
<div class="button-wrapper">
<a href="{% url "challenges:examples" challenge_id=challenge.id %}" class="btn btn-primary">Go to the Inspiration Gallery</a>
<a href="{% url 'profiles:home' %}" class="btn btn-primary">Return to Dashboard</a>
</div>
</div>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions challenges/templates/challenges/edp/reflect.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@ <h3 class="question"></h3>
{% endif %}
{% endblock %}

{% block congrats_panel %}{% endblock %}

{% block comments %}{% endblock %}
{% endblock %}
2 changes: 1 addition & 1 deletion curiositymachine/static/css/base.css

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions curiositymachine/static/less/pages/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,10 @@ margin-left: auto;
}

.congratulations-panel {
min-height: 350px;
padding-top: 60px;
min-height: 200px;
padding-top: 0px;
padding-left: 26px;
padding-right: 26px;
background:
url(../images/examples/balloon-left-animated.gif) top left no-repeat,
url(../images/examples/balloon-right-animated.gif) top right no-repeat;
Expand Down

0 comments on commit 7393e13

Please sign in to comment.