feat: добавить страницы и фрагменты для улучшения структуры шаблонов
- Добавлены страницы "Услуги", "Доставка", "Гарантия", "Контакты" с view и URL - Вынесены hero, advantages, и о нас в отдельные фрагменты - Обновлены header и footer для активных ссылок и адаптивности - Добавлен normalize.css для унификации стилей
This commit is contained in:
@@ -1,31 +1,33 @@
|
||||
<!-- FOOTER FRAGMENT -->
|
||||
<footer>
|
||||
<div class="footer-col">
|
||||
<div class="footer-logo">SantehRay</div>
|
||||
</div>
|
||||
<div class="footer-col">
|
||||
<h4>ПОКУПАТЕЛЮ</h4>
|
||||
<ul>
|
||||
<li><a href="#">Каталог</a></li>
|
||||
<li><a href="#">Услуги</a></li>
|
||||
<li><a href="#">Акции</a></li>
|
||||
<li><a href="#">Новинки</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer-col">
|
||||
<h4>ПОМОЩЬ</h4>
|
||||
<ul>
|
||||
<li><a href="#">Доставка и оплата</a></li>
|
||||
<li><a href="#">Гарантия и возврат</a></li>
|
||||
<li>Ответы на вопросы</li>
|
||||
<li><a href="#">Контакты</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer-col">
|
||||
<h4>КОНТАКТЫ</h4>
|
||||
<ul>
|
||||
<li><a href="mailto:info@santehray.by">info@santehray.by</a></li>
|
||||
<li>+375 (29) 688-18-19</li>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
<div class="container footer-container">
|
||||
<div class="footer-col">
|
||||
<div class="footer-logo">SantehRay</div>
|
||||
</div>
|
||||
<div class="footer-col">
|
||||
<h4>ПОКУПАТЕЛЮ</h4>
|
||||
<ul>
|
||||
<li><a href="#">Каталог</a></li>
|
||||
<li><a href="#">Услуги</a></li>
|
||||
<li><a href="#">Акции</a></li>
|
||||
<li><a href="#">Новинки</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer-col">
|
||||
<h4>ПОМОЩЬ</h4>
|
||||
<ul>
|
||||
<li><a href="#">Доставка и оплата</a></li>
|
||||
<li><a href="#">Гарантия и возврат</a></li>
|
||||
<li>Ответы на вопросы</li>
|
||||
<li><a href="#">Контакты</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer-col">
|
||||
<h4>КОНТАКТЫ</h4>
|
||||
<ul>
|
||||
<li><a href="mailto:info@santehray.by">info@santehray.by</a></li>
|
||||
<li>+375 (29) 688-18-19</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -1,56 +1,74 @@
|
||||
<!-- HEADER FRAGMENT -->
|
||||
<header>
|
||||
<div class="header-top">
|
||||
<div class="logo">SantehRay</div>
|
||||
<div class="search-wrap">
|
||||
<select>
|
||||
<option>Все категории</option>
|
||||
<option>Сантехника</option>
|
||||
<option>Декор</option>
|
||||
</select>
|
||||
<input type="text" placeholder="Кто ищет, тот найдет...">
|
||||
<button>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||
<circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="header-icons">
|
||||
<a href="#">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.7">
|
||||
<path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"/>
|
||||
<line x1="3" y1="6" x2="21" y2="6"/>
|
||||
<path d="M16 10a4 4 0 0 1-8 0"/>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="#">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.7">
|
||||
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/>
|
||||
<circle cx="12" cy="7" r="4"/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="header-top">
|
||||
<div class="logo">SantehRay</div>
|
||||
<form action="">
|
||||
<div class="search-wrap">
|
||||
<label>
|
||||
<select>
|
||||
<option>Все категории</option>
|
||||
<option>Сантехника</option>
|
||||
<option>Декор</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
<input class="search-input" type="text" placeholder="Кто ищет, тот найдет...">
|
||||
</label>
|
||||
<button>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
||||
class="bi bi-search" viewBox="0 0 16 16">
|
||||
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="header-icons">
|
||||
<a href="">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
||||
class="bi bi-heart" viewBox="0 0 16 16">
|
||||
<path d="m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143q.09.083.176.171a3 3 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15"></path>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="#">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
||||
class="bi bi-cart2" viewBox="0 0 16 16">
|
||||
<path d="M0 2.5A.5.5 0 0 1 .5 2H2a.5.5 0 0 1 .485.379L2.89 4H14.5a.5.5 0 0 1 .485.621l-1.5 6A.5.5 0 0 1 13 11H4a.5.5 0 0 1-.485-.379L1.61 3H.5a.5.5 0 0 1-.5-.5M3.14 5l1.25 5h8.22l1.25-5zM5 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0m9-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0"></path>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="#">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
||||
class="bi bi-person" viewBox="0 0 16 16">
|
||||
<path d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="nav-bar">
|
||||
<a href="#" class="catalog-btn">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" width="18" height="18">
|
||||
<line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/>
|
||||
</svg>
|
||||
Каталог
|
||||
</a>
|
||||
<div class="nav-links">
|
||||
<a href="#">Главная</a>
|
||||
<a href="#">Услуги</a>
|
||||
<a href="#">Доставка</a>
|
||||
<a href="#">Гарантия</a>
|
||||
<a href="#">Контакты</a>
|
||||
<nav class="nav-bar">
|
||||
<a href="/catalog/" class="catalog-btn {% if active == 'catalog' %}active-page{% endif %}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
|
||||
stroke-width="2" width="18" height="18">
|
||||
<line x1="3" y1="6" x2="21" y2="6"></line>
|
||||
<line x1="3" y1="12" x2="21" y2="12"></line>
|
||||
<line x1="3" y1="18" x2="21" y2="18"></line>
|
||||
</svg>
|
||||
Каталог
|
||||
</a>
|
||||
<div class="nav-links">
|
||||
<a class="{% if active == 'home' %}active-page{% endif %}" href="/">Главная</a>
|
||||
<a class="{% if active == 'services' %}active-page{% endif %}" href="/services/">Услуги</a>
|
||||
<a class="{% if active == 'shipping' %}active-page{% endif %}" href="/shipping/">Доставка</a>
|
||||
<a class="{% if active == 'warranty' %}active-page{% endif %}" href="/warranty/">Гарантия</a>
|
||||
<a class="{% if active == 'contacts' %}active-page{% endif %}" href="/contacts/">Контакты</a>
|
||||
</div>
|
||||
<a href="tel:+375296881819" class="phone-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor"
|
||||
class="bi bi-telephone" viewBox="0 0 16 16">
|
||||
<path d="M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.6 17.6 0 0 0 4.168 6.608 17.6 17.6 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.68.68 0 0 0-.58-.122l-2.19.547a1.75 1.75 0 0 1-1.657-.459L5.482 8.062a1.75 1.75 0 0 1-.46-1.657l.548-2.19a.68.68 0 0 0-.122-.58zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z"></path>
|
||||
</svg>
|
||||
+375 (29) 688-18-19
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
<a href="tel:+375296881819" class="phone-link">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.7" width="18" height="18">
|
||||
<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 13a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.56 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.95.573 2.81.7A2 2 0 0 1 22 16.92z"/>
|
||||
</svg>
|
||||
+375 (29) 688-18-19
|
||||
</a>
|
||||
</nav>
|
||||
</header>
|
||||
Reference in New Issue
Block a user