home_page.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div class="homepage">
  4. <div class="container-fluid hero">
  5. {{ image(page.image, "fill-1920x600", class="hero-image", alt="") }}
  6. <div class="hero-gradient-mask"></div>
  7. <div class="container">
  8. <div class="row">
  9. <div class="col-md-6 col-md-offset-1 col-lg-5 home-hero">
  10. <h1>{{ page.title }}</h1>
  11. <p class="lead">{{ page.hero_text }}</p>
  12. {% if page.hero_cta_link %}
  13. <a href="{{ pageurl(page.hero_cta_link) }}" class="hero-cta-link">
  14. {{ page.hero_cta }}
  15. </a>
  16. {% else %}
  17. {{ page.hero_cta }}
  18. {% endif %}
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="container">
  24. <div class="row promo-row">
  25. <div class="featured-cards col-sm-5 col-sm-offset-1">
  26. {% if page.featured_section_1 %}
  27. <h2 class="featured-cards__title">{{ page.featured_section_1_title }}</h2>
  28. <ul class="featured-cards__list">
  29. {% for page in page.featured_section_1.specific.children()[:3] %}
  30. <li>
  31. {% include "includes/card/listing-card.html" %}
  32. </li>
  33. {% endfor %}
  34. </ul>
  35. <a class="featured-cards__link" href="/breads">
  36. <span>View more of our breads</span>
  37. {% set class="featured-cards__chevron-icon" %}
  38. {% include "includes/chevron-icon.html" %}
  39. </a>
  40. {% endif %}
  41. </div>
  42. <div class="col-sm-6 promo">
  43. {% if page.promo_image or page.promo_title or page.promo_text %}
  44. <div class="col-lg-10 promo-text">
  45. {% if page.promo_title %}
  46. <h2>{{ page.promo_title }}</h2>
  47. {% endif %}
  48. {{ page.promo_text|richtext if page.promo_text }}
  49. </div>
  50. {% endif %}
  51. {% if page.promo_image %}
  52. <figure>{{ image(page.promo_image, "fill-590x413-c100") }}</figure>
  53. {% endif %}
  54. </div>
  55. </div>
  56. </div>
  57. {% if page.body %}
  58. <div class="container-fluid streamfield">
  59. <div class="row">
  60. <div class="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 streamfield-column">
  61. {{ page.body }}
  62. </div>
  63. </div>
  64. </div>
  65. {% endif %}
  66. <div class="container">
  67. <div class="row">
  68. <div class="col-md-12 locations-section">
  69. {% if page.featured_section_2 %}
  70. <h2 class="locations-section__title">{{ page.featured_section_2_title }}</h2>
  71. {% for page in page.featured_section_2.specific.children()[:3] %}
  72. {% include "includes/card/location-card.html" %}
  73. {% endfor %}
  74. {% endif %}
  75. </div>
  76. </div>
  77. </div>
  78. {% if page.featured_section_3 %}
  79. <div class="blog-section__background">
  80. <div class="container">
  81. <div class="row">
  82. <div class="col-md-12 blog-section">
  83. <h2 class="blog-section__title">{{ page.featured_section_3_title }}</h2>
  84. <div class="blog-section__grid">
  85. {% for page in page.featured_section_3.specific.children()[:6] %}
  86. {% set portrait=True %}
  87. {% include "includes/card/picture-card.html" %}
  88. {% endfor %}
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. {% endif %}
  95. </div>
  96. {% endblock content %}