monsterteenkuma | html:
Code :
- <!doctype html>
- <html lang="fr">
- <head>
- <meta http-equiv="X-UA-Copatible" content="IE=edge,chrome=1">
- <meta charset="utf-8">
- <title>Gladion</title>
- <link rel="icon" type="image/png" href=".../../../images/icon.png"/>
- <link href='.../../../css/index.css' type='text/css' rel='stylesheet'/>
- <link href='//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' type='text/css' rel='stylesheet'/>
- <script src=".../../../java/index.js"></script>
- </head>
- <header>
- <ul class="link">
- <li><a href="#"> Panier </a></li>
- <li><a href="#"> Recherche </a></li>
- <ul class="lang">
- <li><a href="#"> FR </a></li>
- <li><a href="#"> EN </a></li>
- </ul>
- </ul>
- <div class="header1">
- <div class="titre"> <a href="index.html" title="Gladion SA"> <h1> Gladion </h1></a> </div>
- </div>
- <div class="navbar">
- <ul class="nav">
- <li><a href="../../communaute.html"> Communauté </a> </li>
- <li><a href="../../synopsis.html"> Synopsis </a> </li>
- <li><a href="../../monde.html"> Monde </a> </li>
- <li><a href="../html/boutique/shop.html"> Boutique </a> </li>
- </ul>
- </div>
- </div>
- </div>
- </header>
- <body>
- <main>
- <body onload="ano()">
- <div class="main">
- <ul class="cd-slider">
- <li>
- <div class="image"><img src="https://images.unsplash.com/photo-1421809313281-48f03fa45e9f?crop=entropy&fit=crop&fm=jpg&h=675&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=1000"></div>
- <div class="content">
- <h2><br>Jackets</h2>
- <a href="#">View Gallery</a>
- </div>
- </li>
- <li>
- <div class="image"><img src="https://images.unsplash.com/uploads/1411724908903377d4696/2e9b0cb2?crop=entropy&fit=crop&fm=jpg&h=675&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=1000"></div>
- <div class="content">
- <h2><br>Accessories</h2>
- <a href="#">View Gallery</a>
- </div>
- </li>
- <li>
- <div class="image"><img src="https://images.unsplash.com/photo-1416838375725-e834a83f62b7?crop=entropy&fit=crop&fm=jpg&h=675&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=1000"></div>
- <div class="content">
- <h2><br>Shoes</h2>
- <a href="#">View Gallery</a>
- </div>
- </li>
- <li>
- <div class="image"><img src="https://images.unsplash.com/35/JOd4DPGLThifgf38Lpgj_IMG.jpg?crop=entropy&fit=crop&fm=jpg&h=675&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=1000"></div>
- <div class="content">
- <h2><br>Collection </h2>
- <a href="#">View Gallery</a>
- </div>
- </li>
- <li>
- <div class="image"><img src="https://images.unsplash.com/photo-1453974336165-b5c58464f1ed?crop=entropy&fit=crop&fm=jpg&h=675&ixjsv=2.1.0&ixlib=rb-0.3.5&q=80&w=1000"></div>
- <div class="content">
- <h2><br>Photo</h2>
- <a href="#">View Gallery</a>
- </div>
- </li>
- </ul>
- </div>
- </main>
- </body>
- <footer class="footer">
- <div class="footer-left col-md-4 col-sm-6">
- <p class="about">
- <span> About the company</span> Ut congue augue non tellus bibendum, in varius tellus condimentum. In scelerisque nibh tortor, sed rhoncus odio condimentum in. Sed sed est ut sapien ultrices eleifend. Integer tellus est, vehicula eu lectus tincidunt,
- ultricies feugiat leo. Suspendisse tellus elit, pharetra in hendrerit ut, aliquam quis augue. Nam ut nibh mollis, tristique ante sed, viverra massa.
- </p>
- <div class="footer-social-links">
- <a href="#" title="Facebook" target="_blank"><i class="fa fa-facebook"></i></a>
- <a href="#" title="Twitter" target="_blank"><i class="fa fa-twitter"></i></a>
- <a href="#" title="Google+" target="_blank"><i class="fa fa-google-plus"></i></a>
- <a href="#" title="LinkedIn+" target="_blank"><i class="fa fa-linkedin"></i></a>
- <a href="#" title="Dribbble" target="_blank"><i class="fa fa-dribbble"></i></a>
- </div>
- </div>
- <div class="footer-center col-md-4 col-sm-6">
- <div>
- <i class="fa fa-map-marker"></i>
- <p><span> Street name and number</span> City, Country</p>
- </div>
- <div>
- <i class="fa fa-phone"></i>
- <p> (+00) 0000 000 000</p>
- </div>
- <div>
- <i class="fa fa-envelope"></i>
- <p><a href="#"> contact@gladion.com</a></p>
- </div>
- </div>
- <div class="footer-right col-md-4 col-sm-6">
- <h2><span> Gladion</span></h2>
- <p class="menu">
- <a href="index.html"> Home</a> |
- <a href="../../faq.html"> FAQ</a> |
- <a href="contact.html"> Contact</a>
- </p>
- <p class="name"> Gladion SA © 2019</p>
- </div>
- </footer>
- </html>
|
Css:
Code :
- .footer-social-links{
- font-size: 14px;
- text-align: center;
- margin-top: -22.5%;
- margin-left: 25%;
- }
- .footer-social-links a{
- width: 25px;
- height: 25px;
- line-height: 25px !important;
- position: relative;
- margin: 0 5px;
- text-align: center;
- display: inline-block;
- color: #111;
-
- -webkit-transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
- -moz-transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
- -o-transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
- -ms-transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
- transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
- }
- .footer-social-links a i,
- .footer-social-links a span{
- position: relative;
- top: 2px;
- left: 1px;
- }
- .footer-social-links a:before{
- content: "";
- display: inline-block;
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- border: 1px solid #111;
-
- -webkit-border-radius: 2px;
- -moz-border-radius: 2px;
- border-radius: 2px;
-
- -webkit-transform: rotate(45deg);
- -moz-transform: rotate(45deg);
- -o-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- transform: rotate(45deg);
-
- -webkit-transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
- -moz-transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
- -o-transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
- -ms-transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
- transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
-
- }
- .footer-social-links a:hover{
- color: #fff;
- }
- .footer-social-links a:hover:before{
- background: #111;
- }
- body{
- margin:0 auto; background: white; }
- html { overflow-x: hidden; }
- h1{font: variant; color: DarkOrange;}
- header a:link {
- text-decoration:none;
- color: white; }
- header a:link:hover {
- color: darkorange; }
- header a:visited {
- color: white; }
- header a:visited:hover {
- color: darkorange; }
- /*Menu en haut a droite*/
- .link {
- list-style-type: none;
- display: flex;
- justify-content: flex-end;
- max-width: 100%;
- margin: 0 auto;
- padding: 0;
- background: black;
- font-size: 24px; }
- .link li{
- display: inline-block;
- padding: 1.5% 3%;
- transition: 0.5s;
- color: white; }
- .link ul li a{
- padding: 0 20px; }
- .lang{
- padding: 0.80% 2px; }
- /*Titre*/
- .header1 {
- display: flex;
- justify-content: center;
- background-color: black;
- color: darkorange;
- margin: 0 auto;
- margin-top: -85px;
- font-size: 45px;
- max-width: 100%;}
- /*Menu principale*/
- .navbar {
- display: flex;
- justify-content: center;
- max-width: 100%;
- margin-top: -5px;
- padding: 0;
- background: black;
- border-bottom:45px solid;}
- .nav {
- margin: 0;
- padding: 0;
- display: flex;
- }
- .nav li {
- list-style: none;
- margin: 0 175px;
- transition: 0.5s;
- }
- .nav li a{
- position: relative;
- text-decoration: none;
- padding: 5px;
- font-size: 27px;
- font-family: sans-serif;
- color: #fff;
- font-weight: bold;
- transition: 0.5s;
- }
- /*Slider*/
- * {
- box-sizing: border-box;}
- *:focus {
- outline: 0;}
- /* Primary Style
- --------------------------------*/
- .main {
- max-width: 100rem;
- margin: 0 auto;
- padding: 0 2rem;
- margin-top: 5%;
- }
- .text {
- font-size: 2rem;
- padding: 2rem 0;
- -moz-columns: 3;
- -webkit-columns: 3;
- columns: 3;
- }
- .text p {
- margin-bottom: 2rem;
- }
- /* Slider Style
- --------------------------------------*/
- .cd-slider {
- position: relative;
- width: 100%;
- height: 50rem;
- overflow: hidden;
- margin-top: 6rem;
- margin-bottom: 7rem;
- }
- .cd-slider li {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- visibility: hidden;
- transition: visibility 0s 1s;
- will-change: visibility;
- }
- .image {
- position: absolute;
- top: 0;
- left: 0;
- width: 70%;
- height: 100%;
- background-size: cover;
- background-position: 50% 50%;
- clip: rect(0, 80rem, 50rem, 80rem);
- transition: clip .5s cubic-bezier(0.99, 0.01, 0.45, 0.9) .5s;
- will-change: clip;
- }
- .content {
- position: absolute;
- top: 0;
- right: 0;
- width: 100%;
- height: 100%;
- padding: 2rem 0 0 2rem;
- font-size: 9rem;
- text-align: right;
- }
- .content h2 {
- text-overflow: ellipsis;
- overflow: hidden;
- transform: translateY(-30%);
- opacity: 0;
- transition: transform .5s, opacity .5s;
- will-change: transform, opacity;
- }
- .content a {
- display: inline-block;
- font-size: 2rem;
- text-transform: lowercase;
- padding: 1.5rem;
- opacity: 0;
- transform: translateY(-100%);
- transition: transform .5s .1s, opacity .5s .1s;
- will-change: transform, opacity;
- }
- /* Current Slide
- -------------------------------------*/
- li.current {
- visibility: visible;
- transition-delay: 0s;
- }
- li.current .image {
- clip: rect(0, 80rem, 50rem, 0);
- }
- li.current .content h2 {
- transform: translateY(0);
- opacity: 1;
- transition-delay: 1s;
- }
- li.current .content a {
- transform: translateY(0);
- opacity: 1;
- transition-delay: 1.1s;
- }
- /* Prev Slide
- ------------------------------------*/
- li.prev_slide .image {
- clip: rect(0, 0, 50rem, 0);
- }
- nav {
- position: absolute;
- bottom: 0;
- right: 0;
- background: #fff;
- z-index: 2;
- }
- .prev, .next, .counter {
- vertical-align: middle;
- }
- .prev, .next {
- position: relative;
- display: inline-block;
- height: 5rem;
- width: 5rem;
- border: 0;
- cursor: pointer;
- background: transparent;
- }
- .prev::before, .next::before {
- content: '';
- position: absolute;
- top: 50%;
- left: 0;
- transform: translateY(-50%);
- border: .8rem solid transparent;
- border-right-width: 1rem;
- border-right-color: #000;
- border-left-width: 0;
- width: 0;
- height: 0;
- }
- .prev::after, .next::after {
- content: '';
- position: absolute;
- top: 50%;
- transform: translateY(-50%) translateZ(0);
- left: .5rem;
- background: #000;
- height: .1rem;
- min-height: 1px;
- width: 2.5rem;
- transition: width .3s;
- }
- .next::before {
- right: 0;
- left: auto;
- border-left-width: 1rem;
- border-left-color: #000;
- border-right-width: 0;
- }
- .next::after {
- right: .5rem;
- left: auto;
- }
- .counter {
- display: inline-block;
- font-size: 4rem;
- font-family: serif;
- font-style: italic;
- }
- .counter span:last-child::before {
- content: '/';
- margin: 0 1rem;
- }
- .prev:hover::after, .next:hover::after {
- width: 3.5rem;
- }
- /*footer*/
- .footer {
- background-color: black;
- width: 100%;
- text-align: left;
- font-family: sans-serif;
- font-weight: bold;
- font-size: 16px;
- padding: 50px;
- margin-top: 50px;
- }
- .footer .footer-left,
- .footer .footer-center,
- .footer .footer-right {
- display: inline-block;
- vertical-align: top;
- }
- /* footer left*/
- .footer .footer-left {
- width: 33%;
- padding-right: 15px;
- }
- .footer .about {
- line-height: 20px;
- color: #ffffff;
- font-size: 13px;
- font-weight: normal;
- margin: 0;
- }
- .footer .about span {
- display: block;
- color: #ffffff;
- font-size: 14px;
- font-weight: bold;
- margin-bottom: 20px;
- }
- .footer .icons {
- margin-top: 25px;
- }
- .footer .icons a {
- display: inline-block;
- width: 35px;
- height: 35px;
- cursor: pointer;
- background-color: #33383b;
- border-radius: 2px;
- font-size: 20px;
- color: #ffffff;
- text-align: center;
- line-height: 35px;
- margin-right: 3px;
- margin-bottom: 5px;
- }
- /* footer center*/
- .footer .footer-center {
- width: 30%;
- }
- .footer .footer-center i {
- background-color: #33383b;
- color: #ffffff;
- font-size: 25px;
- width: 38px;
- height: 38px;
- border-radius: 50%;
- text-align: center;
- line-height: 42px;
- margin: 10px 15px;
- vertical-align: middle;
- }
- .footer .footer-center i.fa-envelope {
- font-size: 17px;
- line-height: 38px;
- }
- .footer .footer-center p {
- display: inline-block;
- color: #ffffff;
- vertical-align: middle;
- margin: 0;
- }
- .footer .footer-center p span {
- display: block;
- font-weight: normal;
- font-size: 14px;
- line-height: 2;
- }
- .footer .footer-center p a {
- color: darkorange;
- text-decoration: none;
- }
- /* footer right*/
- .footer .footer-right {
- width: 35%;
- }
- .footer h2 {
- color: white;
- font-size: 36px;
- font-weight: normal;
- margin: 0;
- }
- .footer h2 span {
- color: darkorange;
- margin-left: 15%;
- }
- .footer .menu {
- color: white;
- margin: 20px 0 12px;
- padding: 0;
- }
- .footer .menu a {
- display: inline-block;
- line-height: 1.8;
- text-decoration: none;
- color: inherit;
- }
- .footer .menu a:hover {
- color: darkorange;
- }
- .footer .name {
- color: darkorange;
- font-size: 14px;
- font-weight: normal;
- margin: 0;
- }
- @media (max-width: 767px) {
- .footer {
- font-size: 14px;
- }
- .footer .footer-left,
- .footer .footer-center,
- .footer .footer-right {
- display: block;
- width: 100%;
- margin-bottom: 40px;
- text-align: center;
- }
- .footer .footer-center i {
- margin-left: 0;
- }
- }
- @media screen and ( max-width: 550px ) {
- .image { width: 100%; }
- .content { padding-right: 2rem; }
- nav { left: 0; right: auto; }
- }
|
java:
Code :
- function ano () {
- function init(item) {
- var items = item.querySelectorAll('li'),
- current = 0,
- autoUpdate = true,
- timeTrans = 4000;
-
- //create nav
- var nav = document.createElement('nav');
- nav.className = 'nav_arrows';
- //create button prev
- var prevbtn = document.createElement('button');
- prevbtn.className = 'prev';
- prevbtn.setAttribute('aria-label', 'Prev');
- //create button next
- var nextbtn = document.createElement('button');
- nextbtn.className = 'next';
- nextbtn.setAttribute('aria-label', 'Next');
- //create counter
- var counter = document.createElement('div');
- counter.className = 'counter';
- counter.innerHTML = "<span>1</span><span>"+items.length+"</span>";
- if (items.length > 1) {
- nav.appendChild(prevbtn);
- nav.appendChild(counter);
- nav.appendChild(nextbtn);
- item.appendChild(nav);
- }
- items[current].className = "current";
- if (items.length > 1) items[items.length-1].className = "prev_slide";
- var navigate = function(dir) {
- items[current].className = "";
- if (dir === 'right') {
- current = current < items.length-1 ? current + 1 : 0;
- } else {
- current = current > 0 ? current - 1 : items.length-1;
- }
- var nextCurrent = current < items.length-1 ? current + 1 : 0,
- prevCurrent = current > 0 ? current - 1 : items.length-1;
- items[current].className = "current";
- items[prevCurrent].className = "prev_slide";
- items[nextCurrent].className = "";
- //update counter
- counter.firstChild.textContent = current + 1;
-
- }
-
- item.addEventListener('mouseenter', function() {
- autoUpdate = false;
- });
- item.addEventListener('mouseleave', function() {
- autoUpdate = true;
- });
- setInterval(function() {
- if (autoUpdate) navigate('right');
- },timeTrans);
-
- prevbtn.addEventListener('click', function() {
- navigate('left');
- });
- nextbtn.addEventListener('click', function() {
- navigate('right');
- });
- //keyboard navigation
- document.addEventListener('keydown', function(ev) {
- var keyCode = ev.keyCode || ev.which;
- switch (keyCode) {
- case 37:
- navigate('left');
- break;
- case 39:
- navigate('right');
- break;
- }
- });
- // swipe navigation
- // from http://stackoverflow.com/a/23230280
- item.addEventListener('touchstart', handleTouchStart, false);
- item.addEventListener('touchmove', handleTouchMove, false);
- var xDown = null;
- var yDown = null;
- function handleTouchStart(evt) {
- xDown = evt.touches[0].clientX;
- yDown = evt.touches[0].clientY;
- };
- function handleTouchMove(evt) {
- if ( ! xDown || ! yDown ) {
- return;
- }
- var xUp = evt.touches[0].clientX;
- var yUp = evt.touches[0].clientY;
- var xDiff = xDown - xUp;
- var yDiff = yDown - yUp;
- if ( Math.abs( xDiff ) > Math.abs( yDiff ) ) {/*most significant*/
- if ( xDiff > 0 ) {
- /* left swipe */
- navigate('right');
- } else {
- navigate('left');
- }
- }
- /* reset values */
- xDown = null;
- yDown = null;
- };
- }
- [].slice.call(document.querySelectorAll('.cd-slider')).forEach( function(item) {
- init(item);
- });
- }
|
|