|
16 | 16 |
|
17 | 17 | <body>
|
18 | 18 | <file-drop accept="image/*" id="icon_drop" class="icon__file-drop drop">
|
19 |
| - <main class="viewer"> |
| 19 | + <main> |
20 | 20 | {{> navbar page="viewer" }}
|
21 |
| - |
22 |
| - <div class="demo__container"> |
23 |
| - <ul class="demo__list"> |
24 |
| - <!-- |
| 21 | + <article class="viewer"> |
| 22 | + <div class="demo__container"> |
| 23 | + <ul class="demo__list"> |
| 24 | + <!-- |
25 | 25 | Different sample icons that the user can look at.
|
26 | 26 | The original source of the icon is linked in the data-source attribute.
|
27 | 27 | The alt tag is used as the title of the source.
|
28 | 28 | -->
|
29 |
| - <li class="demo"> |
30 |
| - <a class="demo__link" href="?demo=demo/spec.svg"> |
31 |
| - <img |
32 |
| - width="56" |
33 |
| - height="56" |
34 |
| - class="demo__preview" |
35 |
| - src="demo/spec.svg" |
36 |
| - alt="W3C example" |
37 |
| - data-source="https://www.w3.org/TR/appmanifest/#examples-of-masks" |
38 |
| - /> |
39 |
| - </a> |
40 |
| - </li> |
41 |
| - <li class="demo"> |
42 |
| - <a class="demo__link" href="?demo=demo/color-breakdown.png"> |
43 |
| - <img |
44 |
| - width="56" |
45 |
| - height="56" |
46 |
| - class="demo__preview" |
47 |
| - src="demo/color-breakdown.png" |
48 |
| - alt="Color Breakdown" |
49 |
| - data-source="https://notwoods.github.io/color-breakdown/" |
50 |
| - /> |
51 |
| - </a> |
52 |
| - </li> |
53 |
| - <li class="demo"> |
54 |
| - <a class="demo__link" href="?demo=demo/insightful-energy.svg"> |
55 |
| - <img |
56 |
| - width="56" |
57 |
| - height="56" |
58 |
| - class="demo__preview" |
59 |
| - src="demo/insightful-energy.svg" |
60 |
| - alt="Insightful Energy" |
61 |
| - data-source="https://notwoods.github.io/insightful-energy/" |
62 |
| - /> |
63 |
| - </a> |
64 |
| - </li> |
65 |
| - <li class="demo"> |
66 |
| - <a class="demo__link" href="?demo=demo/big-island-buses.png"> |
67 |
| - <img |
68 |
| - width="56" |
69 |
| - height="56" |
70 |
| - class="demo__preview" |
71 |
| - src="demo/big-island-buses.png" |
72 |
| - alt="Big Island Buses" |
73 |
| - data-source="https://notwoods.github.io/big-island-buses/" |
74 |
| - /> |
75 |
| - </a> |
76 |
| - </li> |
77 |
| - <li class="demo"> |
78 |
| - <a class="demo__link" href="?demo=demo/proxx.png"> |
79 |
| - <img |
80 |
| - width="56" |
81 |
| - height="56" |
82 |
| - class="demo__preview" |
83 |
| - src="demo/proxx.png" |
84 |
| - alt="PROXX" |
85 |
| - data-source="https://proxx.app" |
86 |
| - /> |
87 |
| - </a> |
88 |
| - </li> |
89 |
| - <li class="demo"> |
90 |
| - <a class="demo__link" href="?demo=demo/svgomg.svg"> |
91 |
| - <img |
92 |
| - width="56" |
93 |
| - height="56" |
94 |
| - class="demo__preview" |
95 |
| - src="demo/svgomg.svg" |
96 |
| - alt="SVGOMG" |
97 |
| - data-source="https://jakearchibald.github.io/svgomg/" |
98 |
| - /> |
99 |
| - </a> |
100 |
| - </li> |
101 |
| - </ul> |
| 29 | + <li class="demo"> |
| 30 | + <a class="demo__link" href="?demo=demo/spec.svg"> |
| 31 | + <img |
| 32 | + width="56" |
| 33 | + height="56" |
| 34 | + class="demo__preview" |
| 35 | + src="demo/spec.svg" |
| 36 | + alt="W3C example" |
| 37 | + data-source="https://www.w3.org/TR/appmanifest/#examples-of-masks" |
| 38 | + /> |
| 39 | + </a> |
| 40 | + </li> |
| 41 | + <li class="demo"> |
| 42 | + <a class="demo__link" href="?demo=demo/color-breakdown.png"> |
| 43 | + <img |
| 44 | + width="56" |
| 45 | + height="56" |
| 46 | + class="demo__preview" |
| 47 | + src="demo/color-breakdown.png" |
| 48 | + alt="Color Breakdown" |
| 49 | + data-source="https://notwoods.github.io/color-breakdown/" |
| 50 | + /> |
| 51 | + </a> |
| 52 | + </li> |
| 53 | + <li class="demo"> |
| 54 | + <a class="demo__link" href="?demo=demo/insightful-energy.svg"> |
| 55 | + <img |
| 56 | + width="56" |
| 57 | + height="56" |
| 58 | + class="demo__preview" |
| 59 | + src="demo/insightful-energy.svg" |
| 60 | + alt="Insightful Energy" |
| 61 | + data-source="https://notwoods.github.io/insightful-energy/" |
| 62 | + /> |
| 63 | + </a> |
| 64 | + </li> |
| 65 | + <li class="demo"> |
| 66 | + <a class="demo__link" href="?demo=demo/big-island-buses.png"> |
| 67 | + <img |
| 68 | + width="56" |
| 69 | + height="56" |
| 70 | + class="demo__preview" |
| 71 | + src="demo/big-island-buses.png" |
| 72 | + alt="Big Island Buses" |
| 73 | + data-source="https://notwoods.github.io/big-island-buses/" |
| 74 | + /> |
| 75 | + </a> |
| 76 | + </li> |
| 77 | + <li class="demo"> |
| 78 | + <a class="demo__link" href="?demo=demo/proxx.png"> |
| 79 | + <img |
| 80 | + width="56" |
| 81 | + height="56" |
| 82 | + class="demo__preview" |
| 83 | + src="demo/proxx.png" |
| 84 | + alt="PROXX" |
| 85 | + data-source="https://proxx.app" |
| 86 | + /> |
| 87 | + </a> |
| 88 | + </li> |
| 89 | + <li class="demo"> |
| 90 | + <a class="demo__link" href="?demo=demo/svgomg.svg"> |
| 91 | + <img |
| 92 | + width="56" |
| 93 | + height="56" |
| 94 | + class="demo__preview" |
| 95 | + src="demo/svgomg.svg" |
| 96 | + alt="SVGOMG" |
| 97 | + data-source="https://jakearchibald.github.io/svgomg/" |
| 98 | + /> |
| 99 | + </a> |
| 100 | + </li> |
| 101 | + </ul> |
102 | 102 |
|
103 |
| - <div class="button__row"> |
104 |
| - <input type="file" accept="image/*" class="hidden-offscreen" id="icon_file" name="icon_file" /> |
105 |
| - <label for="icon_file" class="icon__file-input button--primary"> Open icon file </label> |
| 103 | + <div class="button__row"> |
| 104 | + <input type="file" accept="image/*" class="hidden-offscreen" id="icon_file" name="icon_file" /> |
| 105 | + <label for="icon_file" class="icon__file-input button--primary"> Open icon file </label> |
106 | 106 |
|
107 |
| - <button type="button" class="button--primary toggle--url" name="url" aria-controls="urlModal"> |
108 |
| - Load from URL |
109 |
| - </button> |
| 107 | + <button type="button" class="button--primary toggle--url" name="url" aria-controls="urlModal"> |
| 108 | + Load from URL |
| 109 | + </button> |
| 110 | + </div> |
110 | 111 | </div>
|
111 |
| - </div> |
112 | 112 |
|
113 |
| - <section class="icon__grid"> |
114 |
| - <div class="icon__original"> |
115 |
| - <img width="192" height="192" class="icon" alt="Preview of original icon" src="demo/spec.svg" /> |
116 |
| - </div> |
117 |
| - <div class="icon__mask masked"> |
118 |
| - <img width="192" height="192" class="icon" alt="Preview of maskable icon" src="demo/spec.svg" /> |
119 |
| - </div> |
120 |
| - <div class="icon__shadow masked"></div> |
121 |
| - </section> |
| 113 | + <section class="icon__grid"> |
| 114 | + <div class="icon__original"> |
| 115 | + <img width="192" height="192" class="icon" alt="Preview of original icon" src="demo/spec.svg" /> |
| 116 | + </div> |
| 117 | + <div class="icon__mask masked"> |
| 118 | + <img width="192" height="192" class="icon" alt="Preview of maskable icon" src="demo/spec.svg" /> |
| 119 | + </div> |
| 120 | + <div class="icon__shadow masked"></div> |
| 121 | + </section> |
122 | 122 |
|
123 |
| - {{> controls }} |
124 |
| - <aside class="source text"> |
125 |
| - <p> |
126 |
| - Icon from |
127 |
| - <a href="https://www.w3.org/TR/appmanifest/#examples-of-masks" class="link source__link"> W3C example </a> |
128 |
| - </p> |
129 |
| - </aside> |
| 123 | + {{> controls }} |
| 124 | + <aside class="source text"> |
| 125 | + <p> |
| 126 | + Icon from |
| 127 | + <a href="https://www.w3.org/TR/appmanifest/#examples-of-masks" class="link source__link"> W3C example </a> |
| 128 | + </p> |
| 129 | + </aside> |
130 | 130 |
|
131 |
| - <hr /> |
132 |
| - <aside class="about text"> |
133 |
| - {{> ad }} |
134 |
| - <p class="about__main"> |
135 |
| - Use Maskable.app to preview your maskable PWA icons before adding them to your web app manifest. |
136 |
| - </p> |
137 |
| - <p class="about__main"> |
138 |
| - <a class="link" href="https://css-tricks.com/maskable-icons-android-adaptive-icons-for-your-pwa/"> |
139 |
| - Maskable icons</a |
140 |
| - > |
141 |
| - allow web developers to specify a full-bleed icon that will be cropped by the user-agent to match other |
142 |
| - icons on the device. On Android, this lets developers get rid of the default white background around their |
143 |
| - icons and use the entire provided space by generating adaptive icons. |
144 |
| - </p> |
145 |
| - {{> github }} {{> donate}} |
146 |
| - </aside> |
| 131 | + <hr /> |
| 132 | + <aside class="about text"> |
| 133 | + {{> ad }} |
| 134 | + <p class="about__main"> |
| 135 | + Use Maskable.app to preview your maskable PWA icons before adding them to your web app manifest. |
| 136 | + </p> |
| 137 | + <p class="about__main"> |
| 138 | + <a class="link" href="https://css-tricks.com/maskable-icons-android-adaptive-icons-for-your-pwa/"> |
| 139 | + Maskable icons</a |
| 140 | + > |
| 141 | + allow web developers to specify a full-bleed icon that will be cropped by the user-agent to match other |
| 142 | + icons on the device. On Android, this lets developers get rid of the default white background around their |
| 143 | + icons and use the entire provided space by generating adaptive icons. |
| 144 | + </p> |
| 145 | + {{> github }} {{> donate}} |
| 146 | + </aside> |
| 147 | + </article> |
147 | 148 | </main>
|
148 | 149 |
|
149 | 150 | <dialog class="url-dialog" id="urlModal" role="dialog" aria-modal="true" aria-labelledby="modalTitle">
|
|
0 commit comments