Skip to content

Commit 00efb99

Browse files
committed
creates homepage for edge demos
- adds css masonry - adds more demos
1 parent e2cda4f commit 00efb99

14 files changed

+123
-50
lines changed

pwa-pwastore/app.js

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,59 @@
11
// All of the UI DOM elements we need.
2+
const installBtn = document.getElementById("btnInstallStore");
23
const pwinterBtn = document.getElementById("installPwinter");
34
const pwampBtn = document.getElementById("installPwamp");
5+
const tempConvBtn = document.getElementById("installPwaGettingStarted");
6+
const emailClientBtn = document.getElementById("installEmailClient");
7+
const oneDivBtn = document.getElementById("install1Div");
8+
const wamiBtn = document.getElementById("installWami");
49
const bubbleBtn = document.getElementById("installBubble");
5-
const installBtn = document.getElementById("btnInstallStore");
10+
const appTitleBtn = document.getElementById("installappTitle");
11+
12+
13+
installBtn.addEventListener('click', async () => {
14+
let installation = await navigator.install();
15+
});
16+
17+
pwinterBtn.addEventListener('click', async () => {
18+
let installation = await navigator.install('https://diek.us/pwinter/',
19+
'https://diek.us/pwinter/index.html?randomize=true');
20+
});
621

7-
pwinterBtn.addEventListener('click', () => {
8-
navigator.install('https://diek.us/pwinter/',
9-
'https://diek.us/pwinter/index.html?randomize=true')
22+
pwampBtn.addEventListener('click', async () => {
23+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/pwamp/',
24+
'https://microsoftedge.github.io/Demos/pwamp/');
1025
});
1126

12-
pwampBtn.addEventListener('click', () => {
13-
navigator.install('https://microsoftedge.github.io/Demos/pwamp/',
14-
'https://microsoftedge.github.io/Demos/pwamp/')
27+
bubbleBtn.addEventListener('click', async () => {
28+
let installation = await navigator.install('https://diek.us/bubble/',
29+
'https://diek.us/bubble/index.html');
1530
});
1631

17-
bubbleBtn.addEventListener('click', () => {
18-
navigator.install('https://diek.us/bubble/',
19-
'https://diek.us/bubble/index.html')
32+
tempConvBtn.addEventListener('click', async () => {
33+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/pwa-getting-started/index.html', 'https://microsoftedge.github.io/Demos/pwa-getting-started/');
34+
2035
});
2136

22-
installBtn.addEventListener('click', () => {
23-
navigator.install();
37+
emailClientBtn.addEventListener('click', async () => {
38+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/email-client/',
39+
'https://microsoftedge.github.io/Demos/email-client/index.html');
2440
});
2541

42+
oneDivBtn.addEventListener('click', async () => {
43+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/1DIV/dist/',
44+
'https://microsoftedge.github.io/Demos/1DIV/dist/index.html');
45+
});
46+
47+
wamiBtn.addEventListener('click', async () => {
48+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/wami/index.html', 'https://microsoftedge.github.io/Demos/wami/');
49+
});
50+
51+
appTitleBtn.addEventListener('click', async () => {
52+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/app-title/',
53+
'https://microsoftedge.github.io/Demos/app-title/');
54+
});
55+
56+
2657
const init = () => {
2758
if (window.matchMedia('(display-mode: standalone)').matches || window.matchMedia('(display-mode: window-controls-overlay)').matches) {
2859
installBtn.style.display = 'none';
12.6 KB
Loading

pwa-pwastore/images/favicon.png

-1.92 KB
Loading

pwa-pwastore/images/pwastore-logo.png

-10.9 KB
Loading

pwa-pwastore/images/pwastore-logo.svg

Lines changed: 1 addition & 15 deletions
Loading

pwa-pwastore/images/pwastore144.png

-2.18 KB
Loading

pwa-pwastore/images/pwastore256.png

-3.71 KB
Loading

pwa-pwastore/images/pwastore512.png

-7.9 KB
Loading

pwa-pwastore/images/pwastore96.png

-1.5 KB
Loading

pwa-pwastore/index.html

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<link href="styles/pwastore.css" rel="stylesheet">
88
<link rel="icon" type="image/x-icon" href="images/favicon.png">
99
<link rel="manifest" href="manifest.json" />
10-
<meta name="app-title" content="Web Install demo by MSEdgeDEV">
11-
<title>The PWA Store</title>
10+
<meta name="application-title" content="Edge Demos by the Microsoft Edge team">
11+
<title>Microsoft Edge Demos</title>
1212
<link rel="stylesheet" href="styles/pwastore-dark.css" media="(prefers-color-scheme: dark)"/>
1313
<link rel="stylesheet" href="styles/pwastore-light.css" media="(prefers-color-scheme: light)"/>
1414
<meta name="theme-color" content="#FFF5E0" media="(prefers-color-scheme: light)"/>
@@ -18,37 +18,72 @@
1818
<body>
1919
<div class="draggable"></div>
2020
<header>
21-
<img src="images/pwastore-logo.svg" width="100" height="100" class="storeicon">
22-
<button class="btn_install_store" id="btnInstallStore">Install PWA store</button>
21+
<img src="images/pwastore-logo.svg" width="200" height="100" class="storeicon">
22+
<button class="btn_install_store" id="btnInstallStore">Install Edge Demos</button>
2323
<div class="category_filter_nav">
2424
<button class="btn_category">new!</button>
25-
<button class="btn_category">music</button>
26-
<button class="btn_category">image</button>
27-
<button class="btn_category">all apps</button>
25+
<button class="btn_category">PWA</button>
26+
<button class="btn_category">CSS</button>
27+
<button class="btn_category">all demos</button>
2828
</div>
2929
</header>
3030
<main>
31+
<article class="app_entry">
32+
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/pwa-getting-started/icon512.png" width="75" height="75" class="app_icon">
33+
<h2>Temperature converter - PWA getting started demo app</h2>
34+
<p class="app_descrip">A simple PWA demo app that converts temperatures. Used for <a href="https://learn.microsoft.com/microsoft-edge/progressive-web-apps/how-to/" target="_blank">Get started with Progressive Web Apps.</a></p>
35+
<button id="installPwaGettingStarted" class="btn_install">Install</button>
36+
</article>
37+
3138
<article class="app_entry">
3239
<img src="images/app-icons/pwinter.png" width="75" height="75" class="app_icon">
3340
<h2>The PWinter</h2>
34-
<p class="app_descrip">Custom PWA icon generator.</p>
41+
<p class="app_descrip">The PWinter is your custom PWA icon generator!</p>
3542
<button id="installPwinter" class="btn_install">Install</button>
3643
</article>
3744

3845
<article class="app_entry">
3946
<img src="images/app-icons/pwamp.png" width="75" height="75" class="app_icon">
4047
<h2>PWAmp</h2>
41-
<p class="app_descrip">Music player, but make it progressive.</p>
48+
<p class="app_descrip">A music player PWA demo to play local audio files.</p>
4249
<button id="installPwamp" class="btn_install">Install</button>
4350
</article>
4451

4552
<article class="app_entry">
4653
<img src="images/app-icons/bubble.png" width="75" height="75" class="app_icon">
4754
<h2>Bubble</h2>
48-
<p class="app_descrip">Equirectangular picture viewer.</p>
55+
<p class="app_descrip">360° equirectangular picture viewer. For images from 360 cameras.</p>
4956
<button id="installBubble" class="btn_install">Install</button>
5057
</article>
5158

59+
<article class="app_entry">
60+
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/email-client/img/icon-256.png" width="75" height="75" class="app_icon">
61+
<h2>Email Client demo</h2>
62+
<p class="app_descrip">A simulated email client PWA that demonstrates how to use PWA protocol handlers.</p>
63+
<button id="installEmailClient" class="btn_install">Install</button>
64+
</article>
65+
66+
<article class="app_entry">
67+
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/1DIV/dist/img/icon-256.png" width="75" height="75" class="app_icon">
68+
<h2>1DIV</h2>
69+
<p class="app_descrip">A CSS sandbox PWA that demonstrates the Window Controls Overlay feature.</p>
70+
<button id="install1Div" class="btn_install">Install</button>
71+
</article>
72+
73+
<article class="app_entry">
74+
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/wami/favicon-256.png" width="75" height="75" class="app_icon">
75+
<h2>wami</h2>
76+
<p class="app_descrip">An image manipulation demo app to crop, resize, or add effects to images.</p>
77+
<button id="installWami" class="btn_install">Install</button>
78+
</article>
79+
80+
<article class="app_entry">
81+
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/pwa-application-title/icon.png" width="75" height="75" class="app_icon">
82+
<h2>Application Title demo</h2>
83+
<p class="app_descrip">A demo web app to showcase the <code>application-title</code> meta tag.</p>
84+
<button id="installappTitle" class="btn_install">Install</button>
85+
</article>
86+
5287
</main>
5388
<footer>
5489
&copy; Microsoft Edge

0 commit comments

Comments
 (0)