-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
167 lines (158 loc) · 9.53 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html>
<head>
<title>Invie - tus mejores guitarras!!</title>
<meta charset="utf-8"/>
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700|Allerta' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
<!-- <link rel="stylesheet" media="(max-width: 800px)" href="css/media-querie.css"/> -->
<style>
@import url('https://fonts.googleapis.com/css?family=Allerta|Montserrat:400,700');
</style>
<style type="text/css">
.logotipo,.menu,.menu li{display:inline-block}@font-face{font-family:icomoon;src:url(fonts/icomoon.eot?bdjiek);src:url(fonts/icomoon.eot?bdjiek#iefix) format('embedded-opentype'),url(fonts/icomoon.ttf?bdjiek) format('truetype'),url(fonts/icomoon.woff?bdjiek) format('woff'),url(fonts/icomoon.svg?bdjiek#icomoon) format('svg');font-weight:400;font-style:normal}[class*=" icon-"]{font-family:icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-menu:before{content:"\e9bd"}body{font-family:Allerta,sans-serif;margin:0}.guitarras h2,.titulo{font-family:Montserrat,sans-serif}.contenedor{max-width:800px;margin:auto;position:relative}.background{background-color:#466173;background-image:url(images/background.png);background-size:cover}.button{border-radius:12px;border:none;color:#fff;padding:7px 12px;text-decoration:none;font-size:18px;background:#fd324e;background:linear-gradient(to left,#fe344e,#ff7250)}.titulo{font-size:70px;margin-bottom:0;margin-top:70px}.titulo span{text-decoration:underline}.title-a{font-size:24px;margin-top:0}.guitarras{color:#1F313C;margin-bottom:60px}.guitarras h2{font-size:35px}.portada{color:#fff;padding:20px;height:500px}.menu{font-size:24px;position:absolute;right:0}.derecha,.header{position:relative}.menu li{margin-left:30px}.menu li:before{content:'∘';font-size:30px;line-height:20px;color:#fff}.menu a{color:#fff;text-decoration:none}.logotipo{margin-left:0}.derecha{float:right;top:-127px}.burguer-button{width:40px;border-radius:50%;line-height:40px;height:40px;background:#395667;text-align:center;position:fixed;left:20px;top:20px;color:#fff;z-index:3;display:none}.video-demo{max-width:500px;width:100%;border:5px solid #3c5b6e}.video-demo-contenedor{display:flex;justify-content:center;margin-bottom:80px}@media screen and (max-width:800px){.portada .button,.video-demo-contenedor{margin-bottom:30px}.titulo{font-size:45px;margin-top:30px}.title-a{font-size:18px}.portada{height:auto}.portada .button{display:inline-block}.guitarras{text-align:center}.derecha{float:none;position:static}}@media screen and (max-width:650px){.logotipo,.menu li:first-child{margin:0}.header{text-align:center}.menu{position:static;display:block}.menu ul{padding:0}}@media screen and (max-width:500px){.burguer-button,.portada .button{display:block}.header,.portada .contenedor{position:static}.menu{background:rgba(255,60,88,.8);position:fixed;left:-100%;top:0;z-index:2;bottom:0;right:0;display:flex;width:100%;align-items:center}.menu ul{flex:1}.menu li{display:block;margin:0;padding:8px 0;border-bottom:1px solid #fff}.menu li:before{display:none}.menu li:first-child{border-top:1px solid #fff}.portada{text-align:center}.titulo{font-size:30px}.guitarra img{width:200px}.video-demo-contenedor{margin:0 10px 30px}}.video-responsive-contenedor{position:relative;padding-top:56.25%}.video-responsive-src{position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%}@media screen and (-webkit-min-device-pixel-ratio:2){.background{background-image:url(images/background2x.png)}}
</style>
</head>
<body>
<section id="portada" class="portada background"> <!-- portada -->
<header id="header" class="header contenedor"> <!-- header -->
<figure class="logotipo"> <!-- logotipo -->
<img src="images/invie.png" srcset="images/invie.png 1x, images/invie2x.png 2x" width="186" height="60" alt="Invie logotipo"/>
</figure>
<span class="burguer-button icon-menu" id="burguer-button"></span>
<nav class="menu" id="menu"> <!-- menu -->
<ul>
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="#guitarras">Guitarras</a>
</li>
<li>
<a href="precios.html">Precios</a>
</li>
</ul>
</nav>
</header>
<div class="contenedor">
<h1 class="titulo">Guitarras <span>invie</span>sibles</h1><!-- titulo -->
<h3 class="title-a">Sé la estrella de rock que siempre quisiste ser</h3><!-- resumen -->
<a class="button" href="#guitarras">Conoce mas</a><!-- boton -->
</div>
</section>
<section id="guitarras" class="guitarras contenedor"> <!-- guitarras -->
<h2>Nuestras guitarras</h2><!-- titulo -->
<div class="video-demo-contenedor">
<div class="video-demo">
<div class="video-responsive-contenedor">
<iframe class="video-responsive-src" width="560" height="315" src="https://www.youtube.com/embed/R1dW8M4EqYY" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
<!-- <video src="video/320x240.ogg"></video> -->
<article class="guitarra"> <!-- guitarra 1 -->
<img class="derecha" data-src="images/invie-acustica.png|images/invie-acustica2x.png" alt="Guitarra Invie Acústica" width="350"/>
<div class="contenedor-guitarra-a">
<h3 class="title-b">Invie Acústica</h3>
<ol>
<li>Estilo vintage</li>
<li>Madera pura</li>
<li>Incluye estuche invisible de aluminio</li>
</ol>
</div>
</article>
<article class="guitarra b"> <!-- guitarra 2 -->
<img class="izquierda" data-src="images/invie-classic.png|images/invie-classic2x.png" alt="Guitarra Invie Classic" width="350"/>
<div class="contenedor-guitarra-b">
<h3 class="title-b">Invie Classic</h3>
<ol>
<li>Estilo vintage</li>
<li>Liviana</li>
<li>Inicia tu camino como Rockstar</li>
</ol>
</div>
</article>
</section>
<footer class="footer">
<div class="contenedor">
<div class="contacto">
<img data-src="images/invie-white.png|images/invie-white2x.png" alt="logotipo blanco"/>
<a href="tel:+573024456678"><strong>Telefono</strong> <span>3024456678</span></a>
<a href="mailto:contacto@invie.com"><strong>E-mail</strong> <span>contacto@invie.com</span></a>
</div>
<form class="formulario">
<div class="col1">
<label for="nombre">Nombre</label>
<input type="text" required id="nombre" name="nombre"/>
<label for="email">E-mail</label>
<input type="email" required id="email" name="email"/>
<div class="sexo">
<label for="mujer">
<input type="radio" id="mujer" checked name="sexo" value="mujer"> mujer
</label>
<label for="hombre">
<input type="radio" id="hombre" name="sexo" value="hombre"> hombre
</label>
</div>
<div class="intereses">
<label for="cotizacion">
<input type="checkbox" checked id="cotizacion" name="intereses" value="cotizacion"> Cotización
</label>
<label for="reclamos">
<input type="checkbox" id="reclamos" name="intereses" value="reclamos"> Reclamos
</label>
<label for="comentarios">
<input type="checkbox" id="comentarios" name="intereses" value="comantarios"> Comentarios
</label>
<label for="otros">
<input type="checkbox" id="otros" name="intereses" value="otros"> Otros
</label>
</div>
</div>
<div class="col2">
<label for="comentarios">Comentarios</label>
<textarea name="comantarios" id="comentarios" cols="30" rows="7"></textarea>
<input type="submit" value="Enviar" class="button"/>
</div>
</form>
</div>
</footer>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/blazy/1.8.2/blazy.min.js"></script>
<script>
var consulta = window.matchMedia('(max-width: 500px)');
var $burguerButton = document.getElementById('burguer-button');
var $menu = document.getElementById('menu');
function toggleMenu() {
$menu.classList.toggle('active');
}
function showMenu() {
$menu.classList.add('active');
}
function hideMenu() {
$menu.classList.remove('active');
}
consulta.addListener(mediaQuerie);
function mediaQuerie() {
if (consulta.matches) {
console.log("se cumplio la condicion");
$burguerButton.addEventListener('touchstart', toggleMenu);
} else {
console.log("no se cumplio la condicion");
$burguerButton.removeEventListener('touchstart', toggleMenu);
}
}
mediaQuerie();
// lazy loading
var bLazy = new Blazy({
selector: 'img'
});
// gestos touch
var $body = document.body;
var gestos = new Hammer($body);
gestos.on('swipeleft', hideMenu);
gestos.on('swiperight', showMenu);
</script>
<link rel="stylesheet" href="css/invie.min.css"/>
</body>
</html>