Skip to content

Commit 43963dc

Browse files
committed
Fix.
1 parent a3e79d9 commit 43963dc

File tree

5 files changed

+50
-109
lines changed

5 files changed

+50
-109
lines changed

demo/index.html

Lines changed: 47 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,17 @@
3535
.header {
3636
width: 100%;
3737
min-height: 500px;
38-
background-color: #485bff;
38+
background-color: #eee;
3939
}
4040

4141
.header-container {
4242
max-width: 650px;
4343
margin: auto;
4444
padding-top: 200px;
45+
display: flex;
46+
flex-direction: column;
47+
justify-content: flex-start;
48+
align-items: flex-start;
4549
}
4650

4751
.header-container-image {
@@ -51,24 +55,32 @@
5155
}
5256

5357
h1 {
54-
color: #fff;
58+
color: #000;
5559
font-size: 32px;
5660
font-weight: 900;
61+
background-color: #000;
62+
border-radius: 5px;
63+
opacity: 0.8;
5764
}
5865

5966
.sub-headline {
6067
font-size: 16px;
61-
color: #ffffff88;
68+
color: transparent;
6269
font-weight: 500;
63-
margin-top: 5px;
70+
margin-top: 8px;
71+
background-color: #00000088;
72+
border-radius: 5px;
73+
min-width: 350px;
74+
height: 30px;
75+
opacity: 0.4;
6476
}
6577

6678
.sub-headline i {
6779
color: red;
6880
}
6981

7082
.sub-headline a {
71-
color: #ffffff88;
83+
color: #00000088;
7284
display: inline;
7385
text-decoration: underline;
7486
}
@@ -91,6 +103,7 @@
91103
max-height: 450px;
92104
border-radius: 10px;
93105
object-fit: cover;
106+
object-position: top center;
94107
}
95108

96109
.content {
@@ -125,7 +138,7 @@
125138
font-size: 16px;
126139
font-weight: 600;
127140
color: rgb(255, 255, 255);
128-
background-color: #485bff;
141+
background-color: #2142e7;
129142
border-style: solid;
130143
border-width: 0px;
131144
border-radius: 10px;
@@ -155,6 +168,26 @@
155168
}
156169
}
157170

171+
.skeleton-text {
172+
width: 100%;
173+
height: 0.7rem;
174+
margin-bottom: 0.5rem;
175+
border-radius: 0.25rem;
176+
background-color: #eee;
177+
}
178+
179+
.skeleton-text:nth-child(2) {
180+
max-width: 95%;
181+
}
182+
183+
.skeleton-text:nth-child(3) {
184+
max-width: 90%;
185+
}
186+
187+
.skeleton-text:nth-child(4) {
188+
max-width: 95%;
189+
}
190+
158191
video {
159192
border: 1px solid lightgray;
160193
width: 100%;
@@ -169,112 +202,20 @@
169202
<div class="header-container">
170203
<h1>Off-Grid-it-Haus</h1>
171204
<h2 class="sub-headline">
172-
<i class="fa-solid fa-star"></i> 4,93 · 308 ratings ·
173-
<a href="#">Pioneertown, Kalifornien, USA</a>
174205
</h2>
175206
</div>
176207
</div>
177208
<div class="header-container-image">
178-
<img class="head-image" src="./pexels-clayton-bunn-5524336.jpg" />
209+
<img class="head-image" src="./pexels-niklas-jeromin-12734294.jpg" />
179210
</div>
180211
<div class="content" id="haha">
181-
The Off-grid itHouse is an architecturally significant house, recently
182-
noted by Dwell as one of the 'Best Homes in America' and in the Los
183-
Angeles Times as one of the best houses of all time in Southern
184-
California. The Off-grid itHouse is one of 10 IT Houses built in
185-
California, which have received much acclaim such as the Western Home
186-
award sponsored by Sunset magazine. Also noted as one of the top 10 airbnb
187-
rentals worldwide. This is the prototype for the pre-engineered system
188-
known as the IT House.
189-
<br /><br />
190-
<div class="buttonlink" onclick='console.error("Failt to book...");'>
191-
Book now
192-
</div>
193-
<canvas id="animationCanvas" style="border:1px solid #d3d3d3; width: 100%; height: 600px;">
194-
Your browser does not support the HTML5 canvas tag.
195-
</canvas>
196-
<script>
197-
var canvas = document.getElementById("animationCanvas");
198-
var ctx = canvas.getContext("2d");
199-
200-
var x = canvas.width / 2;
201-
var y = canvas.height / 2;
202-
var dx = 2;
203-
var dy = -2;
204-
var radius = 20;
205-
206-
function drawCircle() {
207-
ctx.beginPath();
208-
ctx.arc(x, y, radius, 0, Math.PI * 2);
209-
ctx.fillStyle = "#0095DD";
210-
ctx.fill();
211-
ctx.closePath();
212-
}
213-
214-
function draw() {
215-
ctx.clearRect(0, 0, canvas.width, canvas.height);
216-
drawCircle();
217-
x += dx;
218-
y += dy;
219-
220-
// Bounce the ball off the edges
221-
if (x + dx > canvas.width - radius || x + dx < radius) {
222-
dx = -dx;
223-
}
224-
225-
if (y + dy > canvas.height - radius || y + dy < radius) {
226-
dy = -dy;
227-
}
228-
}
229-
230-
setInterval(draw, 10);
231-
</script>
232-
<br /><br />
233-
The house is 100% off-grid, powered by solar panels for energy and hot
234-
water, and is located in a pristine remote valley in the beautiful
235-
California high desert. The house observes key green principals of smaller
236-
footprint, minimal disturbance to the natural beauty of the surrounding
237-
landscape, use of renewable resources, and living simply and minimally.
238-
<br /><br />
239-
The setting of the house is remote and serene, a quiet refuge from
240-
everything, free from distractions. Amazing views and vistas in all
241-
directions.
242-
<br /><br />
243-
Perfect for design or green aficionados, writers or those needing a
244-
secluded quiet getaway.
245-
<br /><br />
246-
<video width="320" height="240" controls>
247-
<source src="movie.mp4" type="video/mp4" />
248-
Your browser does not support the video tag.
249-
</video>
250-
<br />
251-
<br />
252-
<b>Access for guests</b><br />
253-
<br />
254-
Intentionally there is no television and only satellite wifi for emergency
255-
communication so that one can truly experience being in a place of extreme
256-
natural beauty, and take note of the play of light and shadow, and other
257-
natural phenomena.
258-
<br /><br />
259-
The house is 100% off grid with no municipal services. All the water is
260-
brought to the site and powered by the sun. Please expect that due to the
261-
off grid nature of the home you should be prepared that power may not
262-
always be available. Please plan meals to not use excessive energy.
263-
<br /><br />
264-
The house has two new Casper mattresses and pillows for ultimate comfort
265-
and relaxation during your stay (queen and king).
266-
<br /><br />
267-
It is recommended that guests arrive before sundown in order to find the
268-
house. The house is in a remote location.
269-
<br /><br />
270-
<b>More information</b><br />
271-
<br />
272-
Holiday weekend 3 day minimum applies to Presidents Day weekend,
273-
Valentines Day, Memorial Day Weekend, Independence Day weekend, Labor Day
274-
Weekend, Thanksgiving, Christmas and New Years. WE DO NOT ALLOW EVENTS OR
275-
SHOOTS OF ANY KIND TO BE BOOKED THROUGH AIRBNB. WE ARE NO LONGER ALLOWING
276-
WEDDINGS. FOR INQUIRIES BEYOND VACATION RENTAL PLEASE CONTACT LOCATIONS
277-
UNLIMITED.
212+
<div class="skeleton-text"></div>
213+
<div class="skeleton-text"></div>
214+
<div class="skeleton-text"></div>
215+
<div class="skeleton-text"></div>
216+
<div class="skeleton-text"></div>
217+
<div class="skeleton-text"></div>
218+
<div class="skeleton-text"></div>
278219
</div>
279220
</body>
280221

demo/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
const Gleap = window.Gleap;
22

3-
Gleap.setFrameUrl("http://0.0.0.0:3001");
4-
Gleap.setApiUrl("http://0.0.0.0:9000");
3+
// Gleap.setFrameUrl("http://0.0.0.0:3001");
4+
// Gleap.setApiUrl("http://0.0.0.0:9000");
55

66
Gleap.setDisablePageTracking(true);
77

88
Gleap.setLanguage("en");
99

10-
Gleap.initialize("hciNpT8z64tsHATINYZjWBvbirVWCKWt");
10+
Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");
1111

1212
/*Gleap.setUrlHandler((url, newTab) => {
1313
alert("URL: " + url + " newTab: " + newTab);

demo/mainimage.jpg

1.93 MB
Loading
2.47 MB
Loading

demo/pexels-suket-dedhia-671658.jpg

2.65 MB
Loading

0 commit comments

Comments
 (0)