Skip to content

Commit

Permalink
Modal Design Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed Belal committed May 9, 2019
1 parent c7f2a22 commit 8a5792d
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 13 deletions.
2 changes: 1 addition & 1 deletion courses/templates/partials/metadata-tiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{% if course.current_price %}
<li>
<span class="title">PRICE</span>
<span class="text">${{ course.current_price }}</span>
<span class="text">${{ course.current_price|floatformat:"0" }}</span>
</li>
{% endif %}
</ul>
Expand Down
24 changes: 17 additions & 7 deletions courses/templates/partials/testimonial-carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,28 @@ <h2>{{ testimonial.value.name }}, {{ testimonial.value.title }}</h2>
</div>
</div>
{% for testimonial in testimonials.items %}
<div class="modal fade" id="testimonial-{{ forloop.counter }}" role="dialog">
<div class="modal fade" id="testimonial-{{ forloop.counter }}" role="dialog">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
{% image testimonial.value.image fill-150x150 class="rounded-circle align-self-center" %}
<h2 class="p-3 align-self-center">{{ testimonial.value.name }}, {{ testimonial.value.title }}</h2>
</div>
<div class="modal-body">
<p>{{ testimonial.value.quote }}</p>
<div class="container no-gutters px-0">
<div class="d-flex flex-row-reverse">
<a class="text-dark" href="testimonial-{{ forloop.counter }}" data-dismiss="modal"><span class="icon-close-outline" aria-hidden="true"></span></a>
</div>
</div>
<div class="container px-4">
<div class="row py-2">
{% image testimonial.value.image fill-100x100 class="border rounded-circle headshot-image" %}
</div>
<div class="row mb-4">
<h2 class="modal-title text-uppercase">{{ testimonial.value.name }}, {{ testimonial.value.title }}</h2>
</div>
<div class="row quote-container">
<p>{{ testimonial.value.quote }}</p>
</div>
</div>
</div>
</div>

</div>
</div>
{% endfor %}
Expand Down
Binary file modified static/fonts/icomoon.eot
Binary file not shown.
3 changes: 2 additions & 1 deletion static/fonts/icomoon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/fonts/icomoon.ttf
Binary file not shown.
Binary file modified static/fonts/icomoon.woff
Binary file not shown.
23 changes: 19 additions & 4 deletions static/scss/detail/testimonial-carousel.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// sass-lint:disable mixins-before-declarations
.learners-block {
width: 100%;
padding: 100px 0 50px;
background: #fff url("#{$static-path}/images/testimonial-carousel-bg.jpg") no-repeat 50% 0;
background: white url("#{$static-path}/images/testimonial-carousel-bg.jpg") no-repeat 50% 0;
min-height: 400px;
overflow: hidden;
position: relative;
Expand Down Expand Up @@ -33,7 +32,7 @@
}

h1 {
color: $red;
color: $primary;
margin: 0 0 10px;
text-transform: uppercase;

Expand Down Expand Up @@ -95,7 +94,7 @@
font-size: 18px;
line-height: 25px;
font-weight: 600;
color: #8a8b8c;
color: $light-gray;
min-height: 50px;
}

Expand Down Expand Up @@ -130,3 +129,19 @@
}
}
}

.headshot-image {
box-shadow: 0em 0.05em 0.5em rgba(0, 0, 0, 0.35);
border-width: 3px !important;
}

.modal-title {
font-size: 16px;
font-weight: 600;
color: $light-gray;
}

.quote-container {
max-height: 50vh;
overflow: auto;
}
4 changes: 4 additions & 0 deletions static/scss/icomoon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

}

.icon-close-outline:before {
content: "\e906";
}

.icon-arrow-circle-down:before {
content: "\e904";
}
Expand Down

0 comments on commit 8a5792d

Please sign in to comment.