JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
<title>Nerds</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/styles.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery.ui-slider.js"></script>
<script type="text/javascript" src="js/jquery.glide.js"></script>
<!-- Slider Plugin -->
</head>
<body>
<div class="bg">
<div class="main_wrapper">
<!--HEADER -->
<div class="header">
<div class="logo"></div>
<ul class="top_menu">
<li><a href="#">СТУДИЯ</a>
</li>
<li><a href="#">КЛИЕНТЫ</a>
</li>
<li><a href="#">МАГАЗИН</a>
</li>
<li><a href="#">КОНТАКТЫ</a>
</li>
<li>
<div class="bucket"></div><a href="#">КОРЗИНА</a>
</li>
</ul>
</div>
<!--BLOCK 1-->
<div class="block_1">
<div class="layout">
<div class="slider">
<ul class="slides">
<li class="slide s1">
<div class="box s1">
<div class="slide_1">
<div class="left_block_1">
<h2>
Долго, дорого, <br>скурпулезно.
</h2>
<h4>
Математически выверенный дизайн <br>
для вашего сайта или мобильного приложения.
</h4>
...
CSS
body, a {
margin: 0;
padding: 0;
font-family:'Roboto';
src: url('Roboto-ThinItalic-webfont.eot');
src: url('Roboto-ThinItalic-webfont.eot?#iefix') format('embedded-opentype'), url('Roboto-ThinItalic-webfont.woff') format('woff'), url('Roboto-ThinItalic-webfont.ttf') format('truetype'), url('Roboto-ThinItalic-webfont.svg#RobotoThinItalic') format('svg');
(under the Apache Software License). text-decoration: none;
color: #000000;
}
.bg {
background-color: #e6e6e6;
width: 1280px;
height: 435px;
margin: auto;
}
.main_wrapper {
width: 880px;
margin: auto;
padding-top: 39px
}
/***********************************HEADER*****BLOCK_1******************************************/
.logo {
margin-top: -30px;
background-image: url(/css/img/logo.png);
width: 139px;
height: 56px;
float: left;
}
.top_menu {
height: 35px;
width: 560px;
padding: 0;
margin-left: 320px;
}
.top_menu>li>a {
text-decoration: none;
text-align: center;
height: 30px;
display: inline-block;
line-height: 30px;
font-size: 14px;
}
.top_menu>li>a:hover {
border-bottom: 2px solid #fb565a;
}
.top_menu>li {
list-style: none;
float: left;
margin-right: 25px;
height: 30px;
}
.top_menu>li:last-child {
margin-left: 25px;
margin-right: 0;
}
.bucket {
display: inline-block;
width: 15px;
height: 15px;
margin-right: 10px;
background-image: url(/css/img/bucket.png);
background-repeat: no-repeat;
background-position: 0px 5px;
}
h2, h4 {
font-size: 36px;
}
h4 {
font-size: 16px;
font-weight: lighter;
}
.button {
height: 40px;
text-align: center;
line-height: 40px;
border-radius: 3px;
}
.button>a {
display: inline-block;
width: 100%;
height:100%;
font-size: 12px;
color: #ffffff;
text-decoration: none;
}
.block_1, {
...
JavaScript
/*
* Glide.js
* Ver: 1.0.5
* Simple, lightweight and fast jQuery slider
* url: http://jedrzejchalubek.com/glide
* Autor: @JedrzejChalubek
* site: http://jedrzejchalubek.com
* Licensed under the MIT license
*/;
(function ($, window, document, undefined) {
var name = 'glide',
defaults = {
// {Int or Bool} False for turning off autoplay
autoplay: 4000,
// {Bool} Pause autoplay on mouseover slider
hoverpause: true,
/**
* Animation time
* !!! IMPORTANT !!!
* That option will be use only, when css3 are not suported
* If css3 are supported animation time is set in css declaration inside .css file
* @type {Int}
*/
animationTime: 500,
/**
* {Bool or String} Show/hide/appendTo arrows
* True for append arrows to slider wrapper
* False for not appending arrows
* Id or class name (e.g. '.class-name') for appending to specific HTML markup
*/
arrows: true,
// {String} Arrows wrapper class
arrowsWrapperClass: 'slider-arrows',
// {String} Main class for both arrows
arrowMainClass: 'slider-arrow',
// {String} Right arrow
arrowRightClass: 'slider-arrow--right',
// {String} Right arrow text
arrowRightText: 'next',
// {String} Left arrow
arrowLeftClass: 'slider-arrow--left',
// {String} Left arrow text
arrowLeftText: 'prev',
/**
* {Bool or String} Show/hide/appendTo bullets navigation
* True for append arrows to slider wrapper
* False for not appending arrows
* Id or class name (e.g. '.class-name') for appending to specific HTML markup
*/
nav: true,
// {Bool} Center bullet...