From ade46f1a427db222d367cf055de65e9f49b2b749 Mon Sep 17 00:00:00 2001 From: Maximilian <787658+mfranzke@users.noreply.github.com> Date: Sun, 2 Jan 2022 11:38:35 +0100 Subject: [PATCH] refactor: corrected annotations.json to annotations.json --- dist/_annotations/annotations.js | 34 ------------------------------ dist/_annotations/annotations.json | 34 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 dist/_annotations/annotations.js create mode 100644 dist/_annotations/annotations.json diff --git a/dist/_annotations/annotations.js b/dist/_annotations/annotations.js deleted file mode 100644 index 3919bce..0000000 --- a/dist/_annotations/annotations.js +++ /dev/null @@ -1,34 +0,0 @@ -var comments = { -"comments" : [ - { - "el": "header[role=banner]", - "title" : "Masthead", - "comment": "The main header of the site doesn't take up too much screen real estate in order to keep the focus on the core content. It's using a linear CSS gradient instead of a background image to give greater design flexibility and reduce HTTP requests." - }, - { - "el": ".logo", - "title" : "Logo", - "comment": "The logo image is an SVG file, which ensures that the logo displays crisply even on high resolution displays. A PNG fallback is provided for browsers that don't support SVG images.

Further reading: Optimizing Web Experiences for High Resolution Screens

" - }, - { - "el": "#nav", - "title" : "Navigation", - "comment": "

Navigation for adaptive web experiences can be tricky. Top navigations are typical on desktop sites, but mobile screen sizes don't give us the luxury of space. We're dealing with this situation by creating a simple menu anchor that toggles the main navigation on small screens. This is just one method. Bagcheck and Contents Magazine add an anchor in the header that jumps users to the navigation which is placed in the footer. This solution works well because it doesn't require any Javascript in order to work. Other methods exist too. For example, ESPN's mobile navigation overlays the main content of the page.

The nav is only hidden when a certain level of javascript is supported in order to ensure that users with little/poor javascript support can still access the navigation. Once the screen size is large enough to accommodate the nav, we show the main navigation links and hide the menu anchor.

See also: Responsive Navigation Patterns

" - }, - { - "el": ".search-form", - "title" : "Search", - "comment": "

Search is an incredibly important priority, especially for mobile. It is a great idea to give users the ability to jump directly to what they are looking for without forcing them to wade through your site's navigation. Check out the Burton and Yelp mobile sites for great examples of experiences that prioritize search.

We're also using the HTML5 search input type, which is great for mobile devices that can bring up the appropriate virtual keyboard for many smartphones. And like the main header navigation, we're hiding the search form on small screens to save space. Clicking the search anchor toggles the form.

" - }, - { - "el": ".article-header h1", - "title" : "Article Header", - "comment": "

The article header should be no more than 140 characters.

" - }, - { - "el": ".block-hero", - "title" : "Hero", - "comment": "

The hero area highlights one major story using a large image and a captivating headline.

" - } -] -}; \ No newline at end of file diff --git a/dist/_annotations/annotations.json b/dist/_annotations/annotations.json new file mode 100644 index 0000000..5ac35e9 --- /dev/null +++ b/dist/_annotations/annotations.json @@ -0,0 +1,34 @@ +{ + "comments": [ + { + "el": "header[role=banner]", + "title" : "Masthead", + "comment": "The main header of the site doesn't take up too much screen real estate in order to keep the focus on the core content. It's using a linear CSS gradient instead of a background image to give greater design flexibility and reduce HTTP requests." + }, + { + "el": ".logo", + "title" : "Logo", + "comment": "The logo image is an SVG file, which ensures that the logo displays crisply even on high resolution displays. A PNG fallback is provided for browsers that don't support SVG images.

Further reading: Optimizing Web Experiences for High Resolution Screens

" + }, + { + "el": "#nav", + "title" : "Navigation", + "comment": "

Navigation for adaptive web experiences can be tricky. Top navigations are typical on desktop sites, but mobile screen sizes don't give us the luxury of space. We're dealing with this situation by creating a simple menu anchor that toggles the main navigation on small screens. This is just one method. Bagcheck and Contents Magazine add an anchor in the header that jumps users to the navigation which is placed in the footer. This solution works well because it doesn't require any Javascript in order to work. Other methods exist too. For example, ESPN's mobile navigation overlays the main content of the page.

The nav is only hidden when a certain level of javascript is supported in order to ensure that users with little/poor javascript support can still access the navigation. Once the screen size is large enough to accommodate the nav, we show the main navigation links and hide the menu anchor.

See also: Responsive Navigation Patterns

" + }, + { + "el": ".search-form", + "title" : "Search", + "comment": "

Search is an incredibly important priority, especially for mobile. It is a great idea to give users the ability to jump directly to what they are looking for without forcing them to wade through your site's navigation. Check out the Burton and Yelp mobile sites for great examples of experiences that prioritize search.

We're also using the HTML5 search input type, which is great for mobile devices that can bring up the appropriate virtual keyboard for many smartphones. And like the main header navigation, we're hiding the search form on small screens to save space. Clicking the search anchor toggles the form.

" + }, + { + "el": ".article-header h1", + "title" : "Article Header", + "comment": "

The article header should be no more than 140 characters.

" + }, + { + "el": ".block-hero", + "title" : "Hero", + "comment": "

The hero area highlights one major story using a large image and a captivating headline.

" + } + ] +} \ No newline at end of file