-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVision.html
More file actions
175 lines (152 loc) · 8.5 KB
/
Vision.html
File metadata and controls
175 lines (152 loc) · 8.5 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
<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Html.html to edit this template
-->
<html>
<head>
<title>Vision</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0 , maximun-scale=1.0">
<meta property='og:title' content='AROMASPERU'/>
<meta property='og:image' content='https://raw.githubusercontent.com/aromasperu/aromasperu.github.io/master/web/imagenes/conversion4.png'/>
<meta property='og:description' content='Aceites esenciales de lavanda, eucalipto, y más.'/>
<meta property='og:url' content='https://aromasperu.github.io/'/>
<meta property='og:image:width' content='1200' />
<meta property='og:image:height' content='627' />
<link href="MasEstilos.css" rel="stylesheet" type="text/css"/>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RKHW33TGK2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-RKHW33TGK2');
</script>
<script>
var debounceTimeoutId = null;
window.addEventListener('resize', function () {
clearTimeout(debounceTimeoutId);
debounceTimeoutId = setTimeout(ajustarMediumDiv, 250);
});
function ajustarMediumDiv() {
const image = document.getElementById('medium_div_image');
const container = document.getElementById('medium_div');
const content = document.getElementById('medium_div_text');
const adjacentImageWidth = image.offsetWidth;
const containerWidth = container.offsetWidth;
const contentWidth = containerWidth - adjacentImageWidth;
console.log(image.offsetWidth);
content.style.width = contentWidth + 'px';
var originalImageWidth = image.naturalWidth;
var originalImageHeight = image.naturalHeight;
var heightToWidth = originalImageHeight/originalImageWidth;
console.log("heightToWidth: " + heightToWidth);
var imageWidth = image.width;
var imageHeight = image.height;
//alternative 1
var calculatedHeightBasedOnWidth = imageWidth * heightToWidth;
console.log("calculatedHeightBasedOnWidth: " + calculatedHeightBasedOnWidth);
//alternative 2
var calculatedWidthBasedOnHeight = imageHeight / heightToWidth;
console.log("calculatedWidthBasedOnHeight: " + calculatedWidthBasedOnHeight);
console.log("Original Image Height: " + originalImageHeight);
console.log("Original Image Width: " + originalImageWidth);
console.log("Image Height: " + imageHeight);
console.log("Image Width: " + imageWidth);
var windowHeight = window.innerHeight;
var windowWidth = window.innerWidth;
console.log("Window Height: " + windowHeight);
console.log("Window Width: " + windowWidth);
if (windowWidth <= calculatedWidthBasedOnHeight) {
console.log("este caso");
image.style.width = "100%";
image.style.height = "auto";
container.style.display = "inline";
content.style.display = "inline-block";
container.style.backgroundColor = "beige";
}
else if (windowHeight <= imageHeight) {
image.style.height = "calc(100vh - 100px)";
image.style.width = "auto";
container.style.display = "flex";
console.log(image.offsetWidth);
content.style.width = contentWidth + 'px';
content.style.display = "inline";
}
}
</script>
<style>
.background-video {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
}
.content-layer {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 255, 255, 0.7);
z-index: 1;
}
video {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
}
</style>
<meta name="google-site-verification" content="4ul5zH2luyLzlBtOB3IzbYvpKyF26dGjiatH9yo6vy4" />
</head>
<!-- <body style="background-image: url('../../src/java/imagenes/conversion4.png');"> -->
<body onload = "ajustarMediumDiv()" style="background-color: beige;">
<div style="background-color: #5DC1B9; height: 50px; display: block; width: 100%; position: fixed;">
<h1 style="background-color: #5DC1B9; width: 100%; margin: 0px; padding: 0px; border: 0px; height:60%">aromas naturales</h1>
<p style="margin: 0px; padding: 0px; border: 0px; color: white;">salud y bienestar</p>
</div>
<div style="height: 50px;"></div>
<div id='medium_div' style="background-color: beige; height: calc(100vh - 90px); display: flex; width: 100%;">
<div style="height: 100%; width: auto">
<img id='medium_div_image' src="web/imagenes/conversion1.jpg" width="100%" height="100%" alt=""/>
</div>
<div id="medium_div_text" style="height: 100%; min-width: 380px; text-align: center;">
<div style="transform: translate(-50%, -50%); top: 20%; position: relative; text-align: center; display: inline;">
<h2 style>Visión</h2>
<p style="padding-right: 5%; padding-left: 5%; font-size: 18px;">Ser reconocidos como líderes en el mercado de productos naturales incluido
los aromas esenciales, ofreciendo productos de alta calidad para mejorar
la salud y el bienestar de nuestros clientes.</p>
<p style="padding-right: 5%; padding-left: 5%; font-size: 18px;">Ofrecer una amplia variedad de productos naturales y aromas esenciales de alta calidad,
obtenidos de manera ética y sostenible, para mejorar la salud y el bienestar de nuestros
clientes. Brindar un servicio excepcional y educar a nuestros clientes sobre los beneficios
de los productos naturales y los aromas esenciales.</p>
<div style="display: inline-block;">
<div class="pedidos_aqui_por_whatsapp">
<a style="color: white;" href="whatsapp://send?phone=+051 993 376 932&text=Hola,necesito mas información">Pedidos aqui por WhatsApp</a>
</div>
</div>
</div>
</div>
</div>
<div style="height: 40px;"></div>
<div style="background-color: #5DC1B9; height: 40px; display: flex; width: 100%; position: fixed; bottom: 0px;">
<nav class="navegacion" style="background-color: #5DC1B9">
<ul class="menuSuperior">
<li><a href="index.html" style="color: white;">Inicio</a></li>
<li style="display: inline-block; background-color: #eeC1B9; padding-top: 6px; padding-bottom: 6px; margin-top: 6px;"><a href="Vision.html" style="color: white;">Vision</a></li>
<li><a href="Productos.html" style="color: white;">Productos</a></li>
<li><a href="MedioDePago.html" style="color: white;">Medio de pago</a></li>
</ul>
</nav>
</div>
</body>
</html>