-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
executable file
·276 lines (262 loc) · 7.59 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/static/windowsThing.jpeg" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta property="og:title" content="Packard Belle (W98 Desktop Clone)" />
<meta property="og:url" content="https://packard-belle.netlify.com" />
<meta property="og:image" content="%PUBLIC_URL%/static/des.png" />
<meta
property="og:description"
content="A Windows 98 clone built upon a W98 component library (https://github.com/padraigfl/packard-belle"
/>
<meta name="theme-color" content="#000000" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Windows 98 -- Packard Belle</title>
<style>
@keyframes Gradient {
0% {
background-position: 0%;
}
100% {
background-position: 100%;
}
}
@font-face {
font-family: AMIBios;
src: url("./assets/ami_bios1.woff2") format("woff2");
}
body {
height: 100%;
width: 100%;
padding: 0;
overflow: hidden;
margin: 0;
background-color: darkslategrey;
}
#root {
display: flex;
align-content: center;
align-items: center;
background-color: darkslategrey;
}
html,
body,
#root,
.w98,
.desktop,
.BIOSWrapper,
.WindowsLaunchWrapper,
* {
overscroll-behavior: none;
}
.screen,
.w98.desktop {
width: 100vw;
height: 80vh;
}
.desktop,
.BIOSWrapper,
.WindowsLaunchWrapper {
margin-left: auto;
margin-right: auto;
overflow: hidden;
background-color: #5f9ea0;
width: 100vw;
height: 80vh;
}
.desktop.notMobile {
width: 640px;
height: 480px;
}
.BIOSWrapper,
.WindowsLaunchWrapper {
position: absolute;
overflow: hidden;
height: 100%;
width: 100%;
top: 0px;
left: 0px;
display: flex;
}
.BIOS,
.WindowsLaunch {
color: white;
font-family: AMIBios !important;
z-index: 1;
width: 640px;
height: 480px;
margin: auto;
padding: 16px;
}
.BIOS {
background-color: #000000;
}
.WindowsLaunchWrapper {
background: linear-gradient(
-90deg,
#a6c7df,
#ffffff,
#a6c7df,
#c9d9ef,
#a6c7df,
#ffffff
);
background-size: 400% 400%;
animation: Gradient 5s ease infinite;
z-index: 1;
}
.WindowsLaunch {
background-image: url("./static/windowsLaunch.png");
background-size: cover;
background-repeat: no-repeat;
}
.BIOS > div {
margin-bottom: 16px;
visibility: hidden;
}
.BIOS > div.visible {
visibility: visible;
}
.BIOS__logo {
float: right;
width: 40%;
height: 48px;
background-image: url(./static/packard.png);
background-repeat: no-repeat;
background-position: right;
}
@media (max-width: 600px), (max-height: 600px) {
.BIOS,
.WindowsLaunch {
margin-top: 0px;
background-position: center;
width: 100vw;
height: 80vh;
}
.WindowsLaunch {
background-size: contain;
}
.BIOS__logo {
width: 100%;
}
}
.visible {
visibility: visible;
}
.hidden {
display: none;
}
</style>
<script>
function hideBios() {
document
.getElementsByClassName("BIOSWrapper")[0]
.classList.add("hidden");
}
function windowsLogo() {
hideBios();
const windowsLaunch = document.getElementsByClassName(
"WindowsLaunchWrapper"
)[0];
windowsLaunch.classList.add("visible");
windowsLaunch.classList.remove("hidden");
window.localStorage.setItem("loggedIn", "true");
setTimeout(() => {
windowsLaunch.classList.remove("visible");
windowsLaunch.classList.add("hidden");
}, 5000);
}
function staggerElements(elems, entry) {
if (!elems[entry]) {
document.querySelector(".BIOS").classList.add("hidden");
windowsLogo();
return;
}
elems[entry].classList.add("visible");
setTimeout(() => staggerElements(elems, entry + 1), 1000);
}
function loadScreen() {
var biosElem = document.querySelector(".BIOS");
biosElem.classList.remove("initial");
if (window.localStorage.getItem("loggedIn")) {
hideBios();
return;
}
biosElem.classList.add("visible");
staggerElements(biosElem.getElementsByTagName("div"), 0);
}
setTimeout(loadScreen, 1500);
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div class="BIOSWrapper initial">
<div class="BIOS">
<div class="BIOS__logo"></div>
<div class="BIOS__bootHeader">
<p>AMII BIOS (C) 1992-2019</p>
<p>BIOS Version 17.0.2.REACT</p>
</div>
<div class="BIOS__bootMessage1">
Press <?> key if you want to run setup
</div>
<div class="BIOS__bootMessage2">Keyboard... <span>detected</span></div>
<div class="BIOS__bootMessage3">
Mouse/digitizer... <span>detected</span>
</div>
<div class="BIOS__bootMessage4">
<p>
This project is by
<a href="https://github.com/padraigfl">Padraig Flood</a>
</p>
<p>
London based frontend developer, contactable via
<a href="https://www.linkedin.com/in/padraig-f-334b8764/"
>LinkedIn</a
>
</p>
<p>
Likes films and stuff
<a href="https://letterboxd.com/padraig">Letterboxd</a>
</p>
<p>
Is unwilling to link his Twitter because he can't remember whether
anything he tweeted is embarrassing
</p>
<p>
Is sorry about how this works weird on tablets
</p>
</div>
</div>
</div>
<div class="WindowsLaunchWrapper hidden">
<div class="WindowsLaunch"></div>
</div>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>