Skip to content

Commit 12e846e

Browse files
authored
Merge pull request #75 from diekus/pwastore-masonry
Adds instructions
2 parents f7cb01c + b522040 commit 12e846e

File tree

4 files changed

+51
-3
lines changed

4 files changed

+51
-3
lines changed

pwa-pwastore/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@
2828
</div>
2929
</header>
3030
<main>
31+
<article class="instructions">
32+
<h2>Instructions</h2>
33+
<p>This collection contains demo webpages, apps, and sample code to demonstrate various features of Microsoft Edge. You can filter the type of demo with the buttons above.</p>
34+
<p><strong>Some additional details for demos to work:</strong></p>
35+
<ul>
36+
<li>Check if you need to enable any experimental features in <code>about://flags</code>.</li>
37+
<li><a href="https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials" target="_blank">List of active Origin Trials on Microsoft Edge.</a></li>
38+
<li>This app uses the <a href="https://aka.ms/webinstall">Web Install API</a> to install demos.</li>
39+
</ul>
40+
</article>
41+
3142
<article class="app_entry">
3243
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/pwa-getting-started/icon512.png" width="75" height="75" class="app_icon">
3344
<h2>Temperature converter - PWA getting started demo app</h2>

pwa-pwastore/styles/pwastore-dark.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88
--btn-category-fg: var(--off-white);
99
--footer-fg: var(--off-white);
1010
--footer-bg: var(--dark-blue-trans);
11+
--instructions-bg: var(--dark-blue);
12+
--link: var(--yellow);
1113
}

pwa-pwastore/styles/pwastore-light.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88
--btn-category-fg: var(--blue);
99
--footer-fg: var(--black);
1010
--footer-bg: var(--yellow-trans);
11+
--instructions-bg: var(--yellow);
12+
--link: var(--blue);
1113
}

pwa-pwastore/styles/pwastore.css

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
--green: #11AB00;
1313
--dark-green: #14690B;
1414
--light-green: #B9F3B3;
15+
--line-height: 1.6rem;
1516

1617
color-scheme: dark light;
1718
}
@@ -58,7 +59,7 @@ main {
5859

5960
display:grid;
6061
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
61-
grid-template-rows: repeat(auto-fill, auto);
62+
grid-template-rows: repeat(auto-fill, 1fr);
6263
grid-gap: 1rem;
6364
justify-content: center;
6465
}
@@ -67,15 +68,47 @@ main {
6768
main { display: masonry; }
6869
}
6970

71+
.instructions {
72+
grid-column: span 2;
73+
background-color: var(--instructions-bg);
74+
border-radius: 1rem;
75+
padding: 1.2rem;
76+
border: var(--blue) solid ;
77+
}
78+
79+
ul {
80+
list-style: square inside none;
81+
}
82+
83+
li {
84+
margin: 0.3rem 0px;
85+
}
86+
87+
p {
88+
line-height: var(--line-height);
89+
margin: 1rem 0px;
90+
}
91+
92+
a {
93+
color: var(--link);
94+
}
95+
96+
code {
97+
font-family: monospace;
98+
margin: 0.15rem;
99+
background-color: #FEFEFE22;
100+
}
101+
102+
70103
h2 {
71104
color: var(--subheader2);
72105
font-size: 1.25rem;
73106
font-weight: bold;
74-
margin: .1rem;
107+
margin: .2rem 0px;
75108
}
76109

77110
.app_descrip {
78-
line-height: 1.6rem;
111+
line-height: var(--line-height);
79112
margin-top: .5rem;
80113
}
81114

0 commit comments

Comments
 (0)