Skip to content

Commit 4e25034

Browse files
committed
Fixed #22: Added About
- Added new About page - Using new `version` metadata from dashboard.yaml in About - New top-level menu entry - New tabs instead of menu for mobile (was toggle) - Now using DM Sans font for UI (not content) to reflect logo - Removed drawer JS mechanism - Using new fallback logo from offspot-config (no-padding)
1 parent cada90d commit 4e25034

18 files changed

Lines changed: 221 additions & 105 deletions

assets/about-tab-bg.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/browse-tab-bg.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/dashboard-tailwind-src.css

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,51 @@ select {
182182
}
183183
}
184184

185+
186+
/* latin-ext */
187+
@font-face {
188+
font-family: 'DM Sans';
189+
font-style: italic;
190+
font-weight: 100 1000;
191+
font-display: swap;
192+
src: url(dmsans/DMSans-italic-ext.woff2) format('woff2');
193+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
194+
}
195+
/* latin */
196+
@font-face {
197+
font-family: 'DM Sans';
198+
font-style: italic;
199+
font-weight: 100 1000;
200+
font-display: swap;
201+
src: url(dmsans/DMSans-italic.woff2) format('woff2');
202+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
203+
}
204+
/* latin-ext */
205+
@font-face {
206+
font-family: 'DM Sans';
207+
font-style: normal;
208+
font-weight: 100 1000;
209+
font-display: swap;
210+
src: url(dmsans/DMSans-normal-ext.woff2) format('woff2');
211+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
212+
}
213+
/* latin */
214+
@font-face {
215+
font-family: 'DM Sans';
216+
font-style: normal;
217+
font-weight: 100 1000;
218+
font-display: swap;
219+
src: url(dmsans/DMSans-normal.woff2) format('woff2');
220+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
221+
}
222+
223+
224+
.dm-sans {
225+
font-family: "DM Sans", serif;
226+
font-weight: 400;
227+
font-style: normal;
228+
}
229+
185230
body {
186-
font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
231+
font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
187232
}

assets/dashboard.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ function run() {
249249
});
250250
}
251251

252+
// no filtering on about
253+
if (page == "about")
254+
return;
255+
252256
var filter = new Filtering();
253257

254258
live('#languages-list', 'change', function(el, ev){
@@ -275,16 +279,6 @@ function run() {
275279
filter.render(true);
276280
}
277281

278-
function onCloseDownloadDrawerButtonClick(el, ev) {
279-
// go to home (from downloads)
280-
window.location.assign("/");
281-
}
282-
283-
function onOpenDownloadDrawerButtonClick(el, ev) {
284-
// go (back) to downloads (from home)
285-
window.location.assign("/download");
286-
}
287-
288282
function onOpenMobileFiltersButtonClick(el, ev) {
289283
// open filters on mobile
290284
removeClass(document.getElementById("mobile-filters"), "hidden");
@@ -332,9 +326,6 @@ function run() {
332326
live('#order-desc', 'click', onOrderDirButtonClick);
333327
live('#order-asc', 'click', onOrderDirButtonClick);
334328

335-
live('#close-download-drawer', 'click', onCloseDownloadDrawerButtonClick);
336-
live('#open-download-drawer', 'click', onOpenDownloadDrawerButtonClick);
337-
338329
live('#close-mobile-filters', 'click', onCloseMobileFiltersButtonClick);
339330
live('#open-mobile-filters', 'click', onOpenMobileFiltersButtonClick);
340331

39.8 KB
Binary file not shown.

assets/dmsans/DMSans-italic.woff2

74.1 KB
Binary file not shown.
30.3 KB
Binary file not shown.

assets/dmsans/DMSans-normal.woff2

61.3 KB
Binary file not shown.

assets/downloads-tab-bg.svg

Lines changed: 1 addition & 0 deletions
Loading

branding/horizontal-logo-dark.png

883 Bytes
Loading

0 commit comments

Comments
 (0)