Skip to content

Commit

Permalink
add survey
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtmiller committed Jan 14, 2020
1 parent 2e42d75 commit 937d6df
Show file tree
Hide file tree
Showing 15 changed files with 79 additions and 24 deletions.
27 changes: 27 additions & 0 deletions _includes/survey.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!-- Survey -->
<div class="col-md-4">
<div class="text-center my-5">
<h4>Looking for something more?</h4>
<p class="lead">Tell us what to build next!</p>
<button type="button" class="btn btn-primary btn-xl shadow" data-toggle="modal" data-target="#surveyModal">
Send Feedback
</button>
</div>
</div>

<!-- Surveay Modal -->
<div class="modal fade" id="surveyModal" tabindex="-1" role="dialog" aria-labelledby="surveyModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="surveyModalLabel">What should we build next?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLScFGsPcVInQYLN4Nnu2tgzApQPQsl7wsJpKr6fldpk2MX7fIg/viewform?embedded=true" width="100%" height="1000" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
</div>
</div>
</div>
</div>
2 changes: 2 additions & 0 deletions _layouts/loop-snippets.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions _layouts/loop-templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
50 changes: 26 additions & 24 deletions _layouts/loop-themes.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,35 @@

<div class="container">

<!-- Show paginated posts for the specificed collection -->
<div class="row">

{% assign sorted = site.themes | sort: "rank" %}
{% for theme in sorted %}

<div class="col-md-4">
<div class="item-preview mb-5">
<a class="item-preview-img box-shadow-lg d-block mb-3" href="{{ theme.src }}">
<img class="lazy img-fluid" data-src="{{ theme.img-thumbnail }}" alt="{{ theme.img-desc }}">
</a>
<div class="item-preview-title d-flex align-items-center">
{{ theme.title }}
{% if theme.pro %}
<span class='badge badge-warning ml-auto small badge-pill'>Pro</span>
{% else %}
<span class='badge badge-success ml-auto small badge-pill'>Free</span>
{% endif %}
<!-- Show paginated posts for the specificed collection -->
<div class="row">

{% assign sorted = site.themes | sort: "rank" %}
{% for theme in sorted %}

<div class="col-md-4">
<div class="item-preview mb-5">
<a class="item-preview-img box-shadow-lg d-block mb-3" href="{{ theme.src }}">
<img class="lazy img-fluid" data-src="{{ theme.img-thumbnail }}" alt="{{ theme.img-desc }}">
</a>
<div class="item-preview-title d-flex align-items-center">
{{ theme.title }}
{% if theme.pro %}
<span class='badge badge-warning ml-auto small badge-pill'>Pro</span>
{% else %}
<span class='badge badge-success ml-auto small badge-pill'>Free</span>
{% endif %}
</div>
<div class="item-preview-description">{{ theme.bump }}</div>
</div>
</div>
<div class="item-preview-description">{{ theme.bump }}</div>
</div>
</div>

{% endfor %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->
</div>
<!-- /.row -->

</div>
<!-- /.container -->
Expand Down
2 changes: 2 additions & 0 deletions templates/admin-dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions templates/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions templates/ecommerce.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions templates/general.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions templates/landing-pages.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions templates/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions themes/admin-dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions themes/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions themes/business-corporate.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions themes/landing-pages.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down
2 changes: 2 additions & 0 deletions themes/portfolio-resume.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
{% endif %}
{% endfor %}

{% include survey.html %}

</div>
<!-- /.row -->

Expand Down

0 comments on commit 937d6df

Please sign in to comment.