сделал header для телефона

fitness
Kirill Pet 8 months ago
parent b1afb0f09c
commit 13da123645
  1. 132
      assets/css/gp-style-core.css
  2. 153
      assets/css/gp-style-mobile.css
  3. BIN
      assets/fonts/ProximaNova-Bold.ttf
  4. BIN
      assets/fonts/ProximaNova-Bold.woff
  5. BIN
      assets/fonts/ProximaNova-Bold.woff2
  6. BIN
      assets/fonts/ProximaNova-Light.ttf
  7. BIN
      assets/fonts/ProximaNova-Light.woff
  8. BIN
      assets/fonts/ProximaNova-Light.woff2
  9. BIN
      assets/fonts/ProximaNova-Regular.ttf
  10. BIN
      assets/fonts/ProximaNova-Regular.woff
  11. BIN
      assets/fonts/ProximaNova-Regular.woff2
  12. BIN
      assets/fonts/ProximaNova-Semibold.ttf
  13. BIN
      assets/fonts/ProximaNova-Semibold.woff
  14. BIN
      assets/fonts/ProximaNova-Semibold.woff2
  15. 3
      assets/img/icon/arrow-right.svg
  16. 3
      assets/img/icon/close.svg
  17. 3
      assets/img/icon/device-phone.svg
  18. 3
      assets/img/icon/menu-hamburger.svg
  19. 3
      assets/img/icon/search.svg
  20. 23
      assets/img/main/logo.svg
  21. 3
      assets/img/social/telegram.svg
  22. 3
      assets/img/social/whatsapp.svg
  23. 78
      index.html
  24. 13
      заготовки

@ -1,16 +1,136 @@
/* Переменные, шрифты, UI kit */
@font-face {
font-family: "Proxima Nova";
src: local("Proxima Nova Bold"),
local("ProximaNova-Bold"),
url("/assets/fonts/ProximaNova-Bold.woff2") format("woff2"),
url("/assets/fonts/ProximaNova-Bold.woff") format("woff"),
url("/assets/fonts/ProximaNova-Bold.ttf") format("ttf");
font-weight: 700;
}
@font-face {
font-family: "Proxima Nova";
src: local("Proxima Nova Semibold"),
local("ProximaNova-Semibold"),
url("/assets/fonts/ProximaNova-Semibold.woff2") format("woff2"),
url("/assets/fonts/ProximaNova-Semibold.woff") format("woff"),
url("/assets/fonts/ProximaNova-Semibold.ttf") format("ttf");
font-weight: 600;
}
@font-face {
font-family: "Proxima Nova";
src: local("Proxima Nova Regular"),
local("ProximaNova-Regular"),
url("/assets/fonts/ProximaNova-Regular.woff2") format("woff2"),
url("/assets/fonts/ProximaNova-Regular.woff") format("woff"),
url("/assets/fonts/ProximaNova-Regular.ttf") format("ttf");
font-weight: 400;
}
/*
@font-face {
font-family: "Proxima Nova";
src: local("Proxima Nova Light"),
local("ProximaNova-Light"),
url("/assets/fonts/ProximaNova-Light.woff2") format("woff2"),
url("/assets/fonts/ProximaNova-Light.woff") format("woff"),
url("/assets/fonts/ProximaNova-Light.ttf") format("ttf");
font-weight: 300;
}
ШАБЛОН использования глобальных переменных:
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--main-text: #e1667c;
--main-color: #8da6cb;
--font-family: "Craftwork Grotesk", sans-serif;
--font-family: "Proxima Nova", sans-serif;
--red: #d3241d;
--blood: #ae0b05;
--background-main: #111114;
--background-grey: #2a2a2d;
--background-grey-hover: #46464a;
--text-white: #fff;
}
*/
body{
background-color: var(--background-main);
font-family: var(--font-family);
}
/* components */
.btn-social{
margin-left: 16px;
width: 40px;
aspect-ratio: 1;
padding: 8px;
display: flex;
align-items: center;
border-radius: 4px;
background-color: var(--background-grey);
transition: background-color .3s;
}
.btn-social:first-child{
margin-left: 0;
}
.btn-social:hover{
background-color: var(--background-grey-hover);
}
.btn-social:active{
background-color: var(--background-grey-hover);
}
.btn-social> img{
width: 24px;
aspect-ratio: 1;
}
.btn-big{
display: block;
padding: 22px 32px;
font-weight: 400;
font-size: 16px;
text-transform: uppercase;
color: var(--text-white);
text-decoration: none;
text-align: center;
border-radius: 4px;
}
.btn-big--border{
padding: 21px 32px;
border: 1px solid;
}
.btn-big--border--blood{
border-color: var(--blood);
}
.btn--100-per{
width: 100%;
}
/* components */
/* header */
.header__logo{
background-image: url(/assets/img/main/logo.svg);
background-repeat: no-repeat;
background-size: contain;
}
/* header */

@ -1,5 +1,158 @@
/* Стили для мобильных устройств */
@media only screen and (max-width: 576px) {
/* header */
.header{
padding: 24px 16px;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}
.header__logo{
width: 74px;
height: 64px;
}
.header__phone{
display: flex;
align-items: center;
}
.header-phone__item{
margin-left: 24px;
width: 32px;
height: 32px;
transition: opacity .3s;
}
.header-phone__item > img{
width: 100%;
height: 100%;
}
.header-phone__item:first-child{
margin-left: 0;
}
.header-phone__item:active{
opacity: .8;
}
.button-menu{
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
.button-menu__open{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transition: opacity .3s;
}
.button-menu__close{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transition: opacity .3s;
opacity: 0;
}
.button-menu.open .button-menu__open{
opacity: 0;
}
.button-menu.open .button-menu__close{
opacity: 1;
}
.phone-menu{
position: absolute;
top: 112px;
right: 0;
left: 0;
width: 100%;
}
.phone-menu__block-content{
/* height: 0; */
/* overflow: hidden; */
}
.phone-menu__content{
padding: 0 16px 40px 16px;
}
.phone-menu__block{
margin-top: 32px;
}
.phone-menu__title{
font-weight: 700;
font-size: 32px;
color: var(--text-white);
}
.phone-menu__list{
list-style-type: none;
font-weight: 400;
font-size: 14px;
text-transform: uppercase;
color: var(--text-white);
}
.phone-menu__list a{
font-weight: 400;
font-size: 14px;
text-transform: uppercase;
color: var(--text-white);
text-decoration: none;
}
.phone-menu__list li{
margin-top: 24px;
}
.phone-menu__list li:first-child{
margin-top: 0;
}
.phone-menu--next{
display: block;
background-image: url(/assets/img/icon/arrow-right.svg);
background-repeat: no-repeat;
background-position: center right;
}
.phone-menu__text{
margin-top: 24px;
display: block;
font-weight: 400;
font-size: 16px;
color: var(--text-white);
}
.phone-menu__text:first-child{
margin-top: 0;
}
.phone-menu__text > a {
color: var(--text-white);
}
.phone-menu__text--no-line{
text-decoration: none;
}
.phone-social{
margin-top: 24px;
display: flex;
align-items: center;
}
/* header */
}

Binary file not shown.

@ -0,0 +1,3 @@
<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6 4.5L10 8.5L6 12.5" stroke="white" stroke-width="1.55" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 194 B

@ -0,0 +1,3 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7 25L16 16M16 16L25 7M16 16L25 25M16 16L7 7" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 217 B

@ -0,0 +1,3 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.7303 20.2701C20.574 29.1138 23.1655 26.9975 24.3228 26.1706C24.51 26.0644 28.7936 23.3042 26.1295 20.6407C19.9506 14.4612 21.2043 22.4932 15.3545 16.6446C9.50604 10.7947 17.5388 12.0494 11.3598 5.87056C8.69544 3.20623 5.9349 7.49023 5.8299 7.67609C5.00198 8.83351 2.88653 11.4265 11.7303 20.2701Z" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 473 B

@ -0,0 +1,3 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M25.3334 9.3335L6.66675 9.33352M25.3334 16.0002H6.66675M25.3334 22.6668H6.66675" stroke="white" stroke-width="1.55" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 253 B

@ -0,0 +1,3 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21.2551 20.6112L26.6671 25.9998M23.9999 13.9998C23.9999 8.84518 19.8213 4.6665 14.6666 4.6665C9.51193 4.6665 5.33325 8.84518 5.33325 13.9998C5.33325 19.1545 9.51193 23.3332 14.6666 23.3332C19.8213 23.3332 23.9999 19.1545 23.9999 13.9998Z" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 411 B

@ -0,0 +1,23 @@
<svg width="222" height="192" viewBox="0 0 222 192" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2_549)">
<mask id="mask0_2_549" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="222" height="192">
<path d="M222 0H0V192H222V0Z" fill="white"/>
</mask>
<g mask="url(#mask0_2_549)">
<path d="M11.4147 156.631V164.699H26.4437V176.018H11.4147V191.049H0V145.312H11.4147H26.7449V156.631H11.4147Z" fill="white"/>
<path d="M43.2515 145.312H31.8369V191.019H43.2515V145.312Z" fill="white"/>
<path d="M78.0935 156.631H68.3352V191.049H57.0108V156.631H47.2525V145.312H68.3352H78.0935V156.631Z" fill="white"/>
<path d="M116.742 145.312V191.049H107.977L93.5208 167.398V191.049H82.106V145.312H90.9607L105.417 168.963V145.312H116.742Z" fill="white"/>
<path d="M151.221 180.067V191.049H127.308H123.814V145.312H135.229H150.89V156.293H135.229V162.766H149.294V173.134H135.229V180.067H151.221Z" fill="white"/>
<path d="M153.87 176.417H165.285C165.285 179.607 167.122 180.926 170.887 180.926C174.26 180.926 175.585 179.546 175.585 177.797C175.585 175.497 172.393 174.454 168.568 173.227C162.334 171.202 154.443 168.012 154.443 158.41C154.443 149.085 161.581 144.361 169.863 144.361C178.266 144.361 185.735 148.931 185.735 159.637H174.381C174.381 157.03 172.965 155.465 169.863 155.465C167.122 155.465 165.857 156.784 165.857 158.41C165.857 160.956 168.929 161.999 172.875 163.38C179.049 165.405 186.94 168.533 186.94 178.012C186.94 187.338 179.802 192.062 170.827 192.062C161.52 192 153.87 187.43 153.87 176.417Z" fill="white"/>
<path d="M188.899 176.417H200.314C200.314 179.607 202.151 180.926 205.916 180.926C209.289 180.926 210.615 179.546 210.615 177.797C210.615 175.497 207.422 174.454 203.597 173.227C197.363 171.202 189.472 168.012 189.472 158.41C189.472 149.085 196.61 144.361 204.892 144.361C213.295 144.361 220.764 148.931 220.764 159.637H209.44C209.44 157.03 208.024 155.465 204.922 155.465C202.181 155.465 200.916 156.784 200.916 158.41C200.916 160.956 203.989 161.999 207.934 163.38C214.108 165.405 221.999 168.533 221.999 178.012C221.999 187.338 214.861 192.062 205.886 192.062C196.549 192 188.899 187.43 188.899 176.417Z" fill="white"/>
<path d="M222 94.1133H151.674H79.2405H68.5184H60.2362H54.3328H44.5445H43.4603H36.6536H34.696V110.525L23.9739 94.1133H15.6915V128.624H25.4799V111.752L36.6838 128.624H43.4905H151.674H222V94.1133ZM0 94.1133H9.78836V128.624H0V94.1133Z" fill="#AE0B05"/>
<path d="M221.97 1.19636H200.646H173.57V6.62597H194.894V77.2111H200.646V6.62597H221.97V1.19636ZM145.109 78.3768C157.788 78.3768 168.661 70.6771 168.661 58.4069C168.661 44.6333 156.403 40.6147 145.199 36.1668C135.591 32.4857 126.978 29.2034 126.978 19.3258C126.978 11.1967 133.815 5.55233 143.603 5.55233C153.512 5.55233 160.77 11.5341 160.77 20.7369H166.432C166.432 7.82234 155.891 0 143.633 0C131.586 0 121.346 7.4849 121.346 19.3258C121.346 33.774 133.604 37.4551 144.808 41.8111C154.295 45.4003 162.939 48.8666 162.939 58.4069C162.939 66.996 155.469 72.8551 145.139 72.8551C133.001 72.8551 124.99 66.6586 124.99 56.1367H119.237C119.207 70.3397 130.622 78.3768 145.109 78.3768ZM74.1204 71.7506V41.5658H106.859V36.1361H74.1204V6.62597H109.509V1.19636H74.1204H68.4582V77.1804H70.8978H110.021V71.7506H74.1204ZM29.3049 71.7506H5.66218V41.5351H32.8888C43.9723 41.5351 48.7309 49.02 48.7309 56.6275C48.7309 67.3949 40.3582 71.7506 29.3049 71.7506ZM29.8772 6.62597C43.6409 6.62597 46.3517 15.798 46.2613 20.7675C46.1108 28.866 38.7619 36.1054 33.1599 36.1054H5.66218V6.62597H29.8772ZM42.0447 37.7314C44.0325 35.7679 51.7128 32.363 51.8934 20.7675C51.9837 14.0802 48.1586 1.19636 29.8772 1.19636H5.66218H0V77.1804H1.05413H30.0276C43.5507 77.1804 54.4533 70.7998 54.4533 56.6275C54.4835 47.4247 51.1103 41.2284 42.0447 37.7314Z" fill="white"/>
</g>
</g>
<defs>
<clipPath id="clip0_2_549">
<rect width="222" height="192" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22.009 3C22.687 3 23.1984 3.61218 22.9248 4.75084L19.6065 20.8512C19.3745 21.996 18.7025 22.2715 17.7748 21.7389L9.85949 15.7211C9.82879 15.6985 9.80379 15.6686 9.78654 15.634C9.76928 15.5994 9.76029 15.5611 9.76029 15.5222C9.76029 15.4833 9.76928 15.445 9.78654 15.4104C9.80379 15.3758 9.82879 15.3459 9.85949 15.3232L18.9999 6.82613C19.4162 6.44658 18.9107 6.26293 18.3636 6.60575L6.89198 14.056C6.85719 14.0794 6.81769 14.0943 6.77648 14.0996C6.73526 14.1049 6.69341 14.1004 6.65411 14.0866L1.78359 12.5011C0.701256 12.1766 0.701256 11.4114 2.02742 10.8665L21.5154 3.12856C21.67 3.05223 21.8378 3.00852 22.009 3Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 745 B

@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.7163 3.71939C20.7469 4.6862 21.5587 5.80806 22.1242 7.05762C22.7079 8.3619 23.0089 9.73915 22.9998 11.1711C22.9998 12.594 22.6988 13.9803 22.1151 15.2755C21.5496 16.5251 20.7378 17.6469 19.7072 18.6137C18.6765 19.5805 17.4817 20.3285 16.15 20.8575C14.7728 21.4047 13.3134 21.6783 11.8085 21.6783C10.1941 21.6783 8.65269 21.3682 7.20247 20.748L2.35017 22.9097L3.26225 17.9388C1.55665 16.0417 0.626335 13.652 0.626335 11.162C0.626335 9.73915 0.927341 8.35278 1.51108 7.05762C2.07657 5.80806 2.88831 4.6862 3.91897 3.71939C4.94963 2.75258 6.14446 2.00467 7.4761 1.47566C8.85335 0.928411 10.3127 0.654785 11.8176 0.654785C13.3226 0.654785 14.7819 0.928411 16.1592 1.47566C17.4908 2.00467 18.6856 2.7617 19.7163 3.71939ZM15.2927 12.7855C15.539 12.8767 15.8856 13.0226 16.3598 13.2598C16.4878 13.3255 16.6223 13.3807 16.7579 13.4363C16.9799 13.5275 17.2049 13.6198 17.4087 13.7614C17.5729 13.9803 17.6185 14.1627 17.5091 14.6461C15.3566 20.2098 4.77639 12.1379 6.53672 7.8967C6.82858 7.23087 7.53997 5.95395 8.78041 6.59241C8.97433 6.68938 9.05553 6.89505 9.13634 7.09976C9.17716 7.20315 9.21788 7.30629 9.27297 7.39505C9.39301 7.64655 9.52378 7.93387 9.63612 8.18069C9.70304 8.32772 9.76342 8.46037 9.81109 8.56252C9.82607 8.61683 9.85605 8.6769 9.88934 8.74361C10.0182 9.00181 10.1966 9.35943 9.74723 9.8668C9.7084 9.94122 9.62135 10.0352 9.52641 10.1376C9.35375 10.324 9.15498 10.5385 9.17263 10.715C9.31857 10.9795 9.99351 11.9646 10.3583 12.3112C11.1792 13.1047 12.2281 13.88 13.3591 14.0989C13.626 13.9974 13.8835 13.6367 14.1317 13.2891C14.3075 13.0428 14.4787 12.8031 14.6451 12.6669C14.7543 12.5811 15.0367 12.6886 15.2133 12.7559C15.2433 12.7673 15.2702 12.7775 15.2927 12.7855Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

@ -48,20 +48,76 @@
</head>
<body>
<header class="header">
<div class="header__logo"></div>
<!-- Пример формы для отправки в Телеграмм (обработчик send-telegram.php) -->
<form class="form" method="post" action="/send-telegram.php">
<div class="form__item">
<input class="form__input" type="text" name="name" required>
<label class="form__label">Ваше имя</label>
<div class="header__phone">
<div class="header-phone__item">
<img src="/assets/img/icon/device-phone.svg" alt="phone">
</div>
<div class="header-phone__item">
<img src="/assets/img/icon/search.svg" alt="search">
</div>
<div class="header-phone__item">
<div class="button-menu">
<img src="/assets/img/icon/menu-hamburger.svg" class="button-menu__open" alt="open">
<img src="/assets/img/icon/close.svg" class="button-menu__close" alt="close">
</div>
</div>
</div>
<div class="form__item">
<input class="form__input" type="text" name="phone" required>
<label class="form__label">Номер телефона</label>
<div class="phone-menu">
<div class="phone-menu__block-content">
<div class="phone-menu__content">
<ul class="phone-menu__list">
<li>
<a href="#">спецификация</a>
</li>
<li>О компании</li>
<li>
<a href="#" class="phone-menu--next">каталог</a>
</li>
<li>
<a href="#" class="phone-menu--next">бренды</a>
</li>
<li>зонирование</li>
<li>проекты</li>
<li>интересное</li>
<li>контакты</li>
</ul>
<div class="phone-menu__block">
<p class="phone-menu__text">
Работаем с гос.заказчиками по<br>
<a href="">44-ФЗ/223-ФЗ</a>
</p>
<a class="phone-menu__text phone-menu__text--no-line" href="tel:+74957988081">+7 (495) 798-80-81</a>
<a class="phone-menu__text phone-menu__text--no-line" href="mailto:sales@bestinfitness.ru">sales@bestinfitness.ru</a>
<div class="phone-social">
<a href="#" class="btn-social">
<img src="/assets/img/social/telegram.svg" alt="">
</a>
<a href="#" class="btn-social">
<img src="/assets/img/social/whatsapp.svg" alt="">
</a>
</div>
</div>
<div class="phone-menu__block">
<a href="#" class="btn-big btn-big--border btn-big--border--blood">
Заказать звонок
</a>
</div>
</div>
</div>
</div>
<input class="form__input btn" type="submit" value="Отправить">
</form>
</header>
<script src="/assets/js/gp-main.js"></script>

@ -0,0 +1,13 @@
<!-- Пример формы для отправки в Телеграмм (обработчик send-telegram.php) -->
<!-- <form class="form" method="post" action="/send-telegram.php">
<div class="form__item">
<input class="form__input" type="text" name="name" required>
<label class="form__label">Ваше имя</label>
</div>
<div class="form__item">
<input class="form__input" type="text" name="phone" required>
<label class="form__label">Номер телефона</label>
</div>
<input class="form__input btn" type="submit" value="Отправить">
</form> -->
Loading…
Cancel
Save