Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.21 KB | None | 0 0
  1. <header class="header">
  2. <!-- Header left box -->
  3. <div class="hl-box clearfix">
  4. <div class="hl-logo">
  5. <a href="#">
  6. <img src="#" alt="Город на Сысоле">
  7. </a>
  8. </div>
  9. <div class="hl-title">
  10. <h1>магазин<br>оригинальной<br>одежды и сувениров</h1>
  11. </div>
  12. <div class="hl-desc">
  13. <p>Товары с эксклюзивными принтами,<br>
  14. пропитанные духом природы<br>
  15. и жизнью Республики Коми</p>
  16. </div>
  17. <div class="hl-numb">
  18. <a href="#">+7 (904) 2222 458</a>
  19. <span>Поможем оформить заказ</span>
  20. </div>
  21. </div>
  22. <!-- Header right box -->
  23. <div class="hr-box">
  24. <div class="h-slider">
  25. <div class="sl-slide"
  26. style="background-image: url('https://pp.userapi.com/c621717/v621717134/3848d/Q04v7QrUSz4.jpg');">
  27. <div class="sl-text">
  28. <h1 class="sl-title">norhwest <span>komi republic</span></h1>
  29. <p class="sl-desc">Для тех, кто гордиться нашей <br>родной республикой. Для тех кто <br>скучает по
  30. родным местам</p>
  31. <a href="" class="sl-btn">Все товары принтом</a>
  32. </div>
  33. </div>
  34. <div class="sl-slide"
  35. style="background-image: url('https://pp.userapi.com/c639625/v639625134/20aa3/-VV3EH6cf_g.jpg');">
  36. <div class="sl-text">
  37. <h1 class="sl-title">norhwest <span>komi republic</span></h1>
  38. <p class="sl-desc">Для тех, кто гордиться нашей <br>родной республикой. Для тех кто <br>скучает по
  39. родным местам</p>
  40. <a href="" class="sl-btn">Все товары принтом</a>
  41. </div>
  42. </div>
  43. <div class="sl-slide"
  44. style="background-image: url('https://pp.userapi.com/c639625/v639625134/20ad5/y0GND80QVLE.jpg');">
  45. <div class="sl-text">
  46. <h1 class="sl-title">norhwest <span>komi republic</span></h1>
  47. <p class="sl-desc">Для тех, кто гордиться нашей <br>родной республикой. Для тех кто <br>скучает по
  48. родным местам</p>
  49. <a href="" class="sl-btn">Все товары принтом</a>
  50. </div>
  51. </div>
  52. <div class="sl-slide"
  53. style="background-image: url('https://pp.userapi.com/c639625/v639625134/20ae9/ectQjCgSGOM.jpg');">
  54. <div class="sl-text">
  55. <h1 class="sl-title">norhwest <span>komi republic</span></h1>
  56. <p class="sl-desc">Для тех, кто гордиться нашей <br>родной республикой. Для тех кто <br>скучает по
  57. родным местам</p>
  58. <a href="" class="sl-btn">Все товары принтом</a>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="header-thumbs" dir="rtl">
  63. <div class="h-slider-thumbs">
  64. <div class="sl-slide"
  65. style="background-image: url('https://pp.userapi.com/c621717/v621717134/3848d/Q04v7QrUSz4.jpg');"></div>
  66. <div class="sl-slide"
  67. style="background-image: url('https://pp.userapi.com/c639625/v639625134/20aa3/-VV3EH6cf_g.jpg');"></div>
  68. <div class="sl-slide"
  69. style="background-image: url('https://pp.userapi.com/c639625/v639625134/20ad5/y0GND80QVLE.jpg');"></div>
  70. <div class="sl-slide"
  71. style="background-image: url('https://pp.userapi.com/c639625/v639625134/20ae9/ectQjCgSGOM.jpg');"></div>
  72. </div>
  73. </div>
  74. </div>
  75.  
  76. </header>
  77.  
  78.  
  79. $(document).ready(function () {
  80.  
  81.  
  82. var $h_slider = $('.h-slider').slick({
  83. slidesToShow: 1,
  84. slidesToScroll: 1,
  85. arrows: true,
  86. appendArrows: $('header'),
  87. fade: true,
  88. nextArrow: '<div class="h-arrow-btn left"><i class="fa fa-angle-left"></i></div>',
  89. prevArrow: '<div class="h-arrow-btn right"><i class="fa fa-angle-right"></i></div>',
  90. asNavFor: '.h-slider-thumbs'
  91. }),
  92.  
  93. $h_slider_thumbs = $('.h-slider-thumbs').slick({
  94. slidesToShow: 3,
  95. slidesToScroll: 1,
  96. asNavFor: '.h-slider',
  97. dots: false,
  98. arrows: false,
  99. rtl: true,
  100. focusOnSelect: true
  101. }),
  102.  
  103. $ac_slider = $('.ac-slider').slick({
  104. autoplay: true,
  105. arrows: false,
  106. dots: true,
  107. fade: true
  108. });
  109.  
  110. $('.h-arrow-btn.left').click(function(){
  111. $h_slider.slick('slickPrev');
  112. });
  113.  
  114. $('.h-arrow-btn.right').click(function(){
  115. $h_slider.slick('slickNext');
  116. });
  117. });
  118.  
  119.  
  120.  
  121. .header{
  122. width: 100%;
  123. min-height: 874px;
  124. .h-arrow-btn {
  125. width: 46px;
  126. height: 110px;
  127. background-image: linear-gradient(157deg, #029ed7, #0bcbc8);
  128. position: absolute;
  129. z-index: 999;
  130.  
  131. &.left {
  132. top: 553px;
  133. left: 0;
  134. }
  135.  
  136. &.right {
  137. top: 553px;
  138. right: 0;
  139. }
  140.  
  141. i {
  142. display:inline-block;
  143. line-height: 110px;
  144. width: 100%;
  145. color: white;
  146. font-size: 56px;
  147. text-align: center;
  148. vertical-align: middle;
  149. }
  150. }
  151. //Header left box
  152. .hl-box{
  153. width: 435px;
  154. min-height: 874px;
  155. float: left;
  156. padding:{
  157. top: 120px;
  158. }
  159. .hl-logo{
  160. width: 120px;
  161. height: 54px;
  162. margin:{
  163. right: auto;
  164. left: auto;
  165. bottom: 90px;
  166. }
  167. }
  168. .hl-title{
  169. text-align: center;
  170. position: relative;
  171. &:after{
  172. content: "";
  173. position: absolute;
  174. top: 115px;
  175. left: 45%;
  176. display: block;
  177. margin: 0 auto;
  178. width: 35px;
  179. height: 4px;
  180. background: linear-gradient($gradient);
  181. }
  182. h1{
  183. font-size: 21px;
  184. text-transform: uppercase;
  185. margin:{
  186. top: 0px;
  187. bottom: 64px;;
  188. }
  189. }
  190. }
  191. .hl-desc{
  192. text-align: center;
  193. margin:{
  194. bottom: 293px;
  195. }
  196. p{
  197. color: #222;
  198. font-weight: 300;
  199. font-size: 17px;
  200. }
  201. }
  202. .hl-numb{
  203. display: block;
  204. margin: 0 auto;
  205. width: 275px;
  206. a,
  207. span{
  208. display: block;
  209. }
  210. a{
  211. font-size: 24px;
  212. font-weight: 700;
  213. color: #2f2f2f;
  214. }
  215. span{
  216. font-size: 15px;
  217. font-weight: 300;
  218. color: #222;
  219. }
  220. }
  221. }
  222. // Header right box
  223. .hr-box{
  224. margin-left: 435px;
  225. min-height: 874px;
  226. background: #3e3e3e;
  227. position: relative;
  228. //Slider custom
  229. .h-slider{
  230. width: 100%;
  231. height: 874px;
  232. z-index: 0;
  233. .sl-slide{
  234. width: 100%;
  235. height: 874px;
  236. position: relative;
  237. background-size: cover;
  238. background-position: center;
  239. img{
  240. width: 100%;
  241. }
  242. }
  243. .sl-text{
  244. position: absolute;
  245. bottom: 0;
  246. padding:{
  247. left: 133px;
  248. bottom: 58px;
  249. }
  250. .sl-title{
  251. color: #fff;
  252. text-transform: uppercase;
  253. font-size: 30px;
  254. line-height: 25px;
  255. width: 208px;
  256. span{
  257. font-size: 19px;
  258. }
  259. }
  260. .sl-desc{
  261. width: 370px;
  262. font-size: 18px;
  263. font-weight: 300;
  264. color: #fff;
  265. }
  266. .sl-btn{
  267. display: block;
  268. width: 234px;
  269. height: 54px;
  270. background: linear-gradient($gradient);
  271. text-align: center;
  272. line-height: 54px;
  273. font-size: 18px;
  274. color: #fff;
  275. border-radius: 100px;
  276. }
  277. }
  278. }
  279. .header-thumbs {
  280. position: absolute;
  281. bottom: 210px;
  282. left: -370px;
  283. width: 465px;
  284. z-index: 999;
  285. .h-slider-thumbs {
  286. .sl-slide {
  287. background-size: cover;
  288. background-position: center;
  289. width: 145px;
  290. height: 110px;
  291. margin-left: 10px;
  292. }
  293. }
  294. }
  295.  
  296. }
  297. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement