-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
317 lines (281 loc) · 15.4 KB
/
index.html
File metadata and controls
317 lines (281 loc) · 15.4 KB
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<!-- Permite compatibilidad con navegadores anitguos -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles/hamburguer.css">
<link rel="stylesheet" href="./styles/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&family=Raleway:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<link rel="icon" href="https://oxygenworkspace.com/wp-content/uploads/2020/12/cropped-OXY-32x32.jpg"> <!-- Esto es para el favicon -->
<title>OxigenShop</title>
<script src="./JS/hamburguerJS.js" defer></script>
<script src="./JS/percentage-scroller.js" defer></script>
<script src="./JS/returnToTop.js" defer></script>
<script src="./JS/formValidator.js" defer></script>
<script src="./JS/testingJSON.js" defer></script>
<script src="./JS/popUpNewsletter.js" defer></script>
<script src="./JS/changeCurrency.js" defer></script>
<script src="./JS/imageSlider.js" defer></script>
<!-- <script src="https://polyfill.io/v3/polyfill.min.js" async></script> --><!-- Polyfills provide a way to support newer web features on older browsers.
BROWSER COMPATIBILITY
Polyfills
It’s difficult to keep track of which CSS properties are not supported in certain browsers and their versions. Polyfills are JavaScript codes that allow older browsers to behave as though they understand more advanced features than they actually do. These codes rewrite the HTML and CSS codes to simulate features that have not yet been adopted by that version of the browser.
For example, the text-shadow property is not supported in some older versions of Internet Explorer and Firefox but can be simulated using other CSS properties. Using JavaScript, we can replace CSS declarations depending on which browser version a user is using to view the website.
For a more comprehensive solution, we can use tools such as Modernizr or Polyfill.io to automatically identify and provide all of the polyfills that our website might need, ensuring that it can run as smoothly as possible on older browsers.
Let’s implement Polyfill.io in our Pleasant Cafe website. Polyfill.io will check and apply polyfills for CSS features that are not natively supported by older browsers.
Inside the <head> element of index.html, add the following <script> element
Until feature queries become more established and universally supported by browsers, we should try our best to always write our code to work as well as possible even if the browser does not support feature queries.
Design Philosophies for Browser Compatibility
Now that we are familiar with the syntax and logic of feature queries and some best practices when using them, let’s discuss our design philosophy and ways of thinking about providing browser compatibility. There are two design philosophies for making websites compatible across browsers: graceful degradation and progressive enhancement. The tools you use will depend on the approach you take. Feature queries are a tool best used in a progressive enhancement approach
-->
</head>
<body>
<header>
<section class="header_primer cajita_general">
<h1 class="titulo"><a href="#home">OXYGEN Shop</a></h1>
<button class="hamburger hamburger--emphatic-r" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
<nav>
<ul>
<li class="cabeza"><a href="#xq">WHY US</a></li>
<li class="cabeza"><a href="#benefits">BENEFITS</a></li>
<li class="cabeza"><a href="#price">PRICE</a></li>
<li class="cabeza"><a href="#contact">CONTACT</a></li>
</ul>
</nav>
</section>
<div class="triggerMenu">
<ul>
<li><a href="#xq">why us</a></li>
<li><a href="#benefits">benefits</a></li>
<li><a href="#price">prices</a></li>
<li><a href="#contact">contact</a></li>
</ul>
</div>
<div class="percentage-scroller"></div>
</header>
<div id="popModal" class="popModalInvisible" >
<div class="contenidoModal" >
<button id="closeModal">❌</button>
<form id="formModal" action="POST">
<p class="modalHeaderText">Subscribe to our newsletter</p>
<label for="correo">Write your email</label>
<input type="text" id="correo" name="correo" placeholder="ex@ex.com">
<button class="btn-Modal" type="submit">Suscribe</button>
</form>
</div>
</div>
<main class="princi">
<button class="btn-return-top">Up</button>
<section class="cajita_general">
<span id="home"></span>
<h1 class="tituPrinci">Sell More!</h1>
<h2 class="titu2Princi">Open shop on our platform and increase your sales</h2>
<a href="./openYourShop.html"> <button class="buttonPrinci">Open your shop</button></a>
</section>
<img class="imgorde" src="./images/Background.png" alt="imagen fondo" width="100%">
</main>
<section class="whyus" >
<span id="xq"></span>
<h2>The most popular sales platform in country</h2>
<div class="twhyus">
<article class="twhyus_columna_person"><img class="person" src="./images/Person.png" alt="Persona palo"><svg width="64" height="63" viewBox="0 0 64 63" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="32.085" cy="31.355" r="31.355" fill="#FB3B64"/>
</svg>
<p class="num">100000+</p> <br>
<!-- Para JS en formValidator.js <p class="prueba" >dasdsagdasd</p> -->
<p class="letter">daily entries</p>
</article>
<article class="twhyus_columna_ojopalo"><img class="ojopalo" src="./images/Eye.png" alt="ojo palo"><svg width="63" height="63" viewBox="0 0 63 63" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="31.355" cy="31.355" r="31.355" fill="#08A6E4"/>
</svg>
<p class="num">2000000+</p> <br>
<p class="letter">seen products <br> every day</p>
</article>
<article class="twhyus_columna_catalogpalo"><img class="catalogpalo" src="./images/Catalog.png" alt="mail palo"><svg width="64" height="63" viewBox="0 0 64 63" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="32.015" cy="31.355" r="31.355" fill="#55DFB4"/>
</svg>
<p class="num">10000+ </p><br>
<p class="letter_grande">added posts <br> daily</p>
</article>
</div>
</section>
<section class="benefits">
<span id="benefits"></span>
<div class="cajita_general">
<article class="primer_rect">
<div class="primer_rect_fondo">
<img src="./images/Macbook2.png" class="primer_rect_icono" alt="mackbook">
</div>
<div class="primer_rect_texto">
<h2>Be always first</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
</p>
<div class="linea primera_linea"></div>
</div>
</article>
<article class="segunda_recta">
<div class="segundo_recta_circulo">
<img src="./images/iPhone2.png" alt="icon iphone" class="segundo_recta_icono">
</div>
<div class="segundo_recta_texto">
<h2>Your shop is<br>where you are!</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
</p>
<div class="linea segunda_linea"></div>
</div>
</article>
<div class="tercer_recta">
<div class="tercer_recta_fondo">
<img src="./images/Trumpet.png" alt="icon trumpet">
</div>
<div class="tercer_recta_texto">
<h2>Increase recognition <br class="br">your brand!</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
</p>
<div class="linea tercera_linea"></div>
</div>
</div>
</div>
</section>
<section class="precios">
<span id="price"></span>
<h2>Pricing</h2>
<div class="cajita_general">
<section id="changeCurrency">
<label for="selectCurrencis">Change Currency</h5>
<select name="selectCurrencis" id="selectCurrencis">
<option value="euro">EUR</option>
<option selected value="dollar">USD</option>
<option value="libra">GBP</option>
</select>
</section>
<div class="tablas">
<div class="tabla primera_tabla">
<div>
<h3>Basic</h3>
<h4 id="basicPrice">$0</h4>
</div>
<div>
<ul>
<li>100 MB HDD</li>
<li>1 subdomain</li>
<li>2 E-mails</li>
<li>Two years license</li>
<li>Full support</li>
</ul>
</div>
<button>Begin</button>
</div>
<div class="tabla segunda_tabla">
<div>
<h3>Professional</h3>
<h4 id="proPrice">$25</h4>
<p>Limited offer</p>
</div>
<div>
<ul>
<li>500 MB HDD</li>
<li>2 subdomain</li>
<li>5 E-mails</li>
<li>One years license</li>
<li>Full support</li>
</ul>
</div>
<button class="btn-primary" >Begin</button>
</div>
<div class="tabla tercera_tabla">
<div>
<h3>Premium</h3>
<h4 id="premiumPrice">$60</h4>
<p>Limited offer</p>
</div>
<div>
<ul>
<li>2 GB HDD</li>
<li>5 subdomain</li>
<li>20 E-mails</li>
<li>Two years license</li>
<li>Full support</li>
</ul>
</div>
<button>Begin</button>
</div>
</div>
</div>
</section>
<div id="slider">
<img class="img-slider" id="imgOne" src="https://th.bing.com/th/id/R.a8d9ed1ec6713ed4ca3ea83d0c40368f?rik=zPhnhgnDQpY2CQ&pid=ImgRaw&r=0" width="700px" height="500px" alt="demostracion tienda">
<img class="img-slider" id="imgTwo" src="https://img.perzonalization.com/wp-content/uploads/2018/01/eCommerce-Marketing-blog.png" width="700px" height="500px" alt="imagen vectorial de ecommerce">
<img class="img-slider" id="imgThree" src="https://th.bing.com/th/id/R.27590719931c51da9b6e3685f93944dc?rik=hOydBw58guw4Mg&riu=http%3a%2f%2filluminationconsulting.com%2fwp-content%2fuploads%2f2020%2f03%2fHow-to-increase-ecommerce-sales-1024x512.png&ehk=MBDXRbjRPss8BD9O4PGCmSBIqBWlrw7ePkuJKjILFMo%3d&risl=&pid=ImgRaw&r=0" width="700px" height="500px" alt="imagen vectorial de ordenador y movil para ecommerce">
</div>
<section class="form_contacto">
<div class="cajita_general">
<div class="form_contacto_contact">
<span id="contact"></span>
<h2>Any questions?</h2>
<p>Leave your email address or call us!</p>
<div class="datos">
<a href="mailto:cesardaviddev@gmail.com" class="datos_email">
<img src="./images/Mail Icon.svg" alt="icono de email" >
<p>cesardaviddev@gmail.com</p>
</a>
<div class="datos_telf">
<img src="./images/Phone Icon.svg" alt="icono de telefono">
<a href="tel:+34601022399">
<p>601 022 399</p>
</a>
</div>
</div>
</div>
<div class="form_contacto_formu">
<form id="contactoForm" action="POST" >
<div class="fila_formu">
<label for="namee">NAME</label>
<input type="text" id="namee" name="namee">
<small></small>
</div>
<div class="fila_formu">
<label for="emaill">EMAIL</label>
<input type="email" id="emaill" name="emaill">
<small></small>
</div>
<div class="checkeo">
<div class="fila_formu">
<input type="checkbox" id="checkbox">
</div>
<label for="checkbox">
I hereby give consent for my personal data included in my application to be processed for the purposes of the recruitment process under the European Parliament’s and Council of the European Union Regulation on the Protection of Natural Persons as of 27 April 2016, with regard to the processing of personal data and on the free movement of such data, and repealing Directive 95/46/EC (Data Protection Directive)
</label>
</div>
<button id="btn-Formu" type="submit">Send</button>
</form>
</div>
</div>
</section>
<footer>
<div class="cajita_general">
<div>
<a class="footerHome" href="#home">
<h2>OXYGENShop</h2>
</a>
<p>©2022 OXYGEN, All Rights Reserved</p>
</div>
<ul>
<li><a target="_blank" href="https://www.instagram.com/oxygenworkspace/"><img src="./images/Twitter.svg" alt="icon twitter"></a></li>
<li><a target="_blank" href="https://www.facebook.com/oxygenworkspace/"><img src="./images/Facebook.svg" alt="icon facebook"></a></li>
</ul>
</div>
</footer>
</body>
</html>