You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.8 KiB

4 years ago
4 years ago
4 years ago
  1. {% extends "bootstrap/base.html" %}
  2. {% block title %}Technical Incompetence - Home{% endblock %}
  3. {% block styles %}
  4. {{super()}}
  5. <link rel="stylesheet" href="{{url_for('.static', filename='style.css')}}">
  6. {% endblock %}
  7. {% block navbar %}
  8. <nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
  9. <div class="navbar-brand">Technical Incompetence</div>
  10. <form class="form-inline ml-auto">
  11. {% if account_url is defined and account_url != '' %}
  12. <a class="btn btn-primary" href="{{ account_url }}" role="button">My Account</a>
  13. {% endif %}
  14. </form>
  15. </nav>
  16. {% endblock %}
  17. {% block content %}
  18. <div class="container" style="margin-top: 15px">
  19. {% if search['active'] == True %}
  20. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
  21. <input type="text" class="form-control" id="search-box" placeholder="Search">
  22. </div>
  23. <br><br>
  24. {% endif %}
  25. <p>It turns out dCloud's amazingness is just too great for this lame internet - we need a new one to maximize our full potential. Welcome to the Technical Incompetence internet. Population - US.</p>
  26. <div class="row">
  27. {% for app in apps %}
  28. {% include "card.j2" %}
  29. {% endfor %}
  30. </div>
  31. </div>
  32. {% endblock %}
  33. {% block scripts %}
  34. {{ super () }}
  35. <script>
  36. $("#search-box").keyup(function(event) {
  37. if (event.keyCode === 13) {
  38. window.location = '{{ search['search_url'] }}' + $('#search-box').val();
  39. }
  40. });
  41. $( ".card" ).hover(
  42. function() {
  43. $(this).addClass('shadow-lg').css('cursor', 'pointer');
  44. $(this).addClass('card-hover');
  45. }, function() {
  46. $(this).removeClass('shadow-lg');
  47. $(this).removeClass('card-hover');
  48. });
  49. function goToLink(link) {
  50. window.location = link;
  51. }
  52. </script>
  53. {% endblock %}