diff --git a/book/basic-features/badges.md b/book/basic-features/badges.md index d6e5d62..3ea3d55 100644 --- a/book/basic-features/badges.md +++ b/book/basic-features/badges.md @@ -4,7 +4,9 @@ ## Badges -Badges are small visual indicators often used to convey concise or important information. They can be very useful for categorising or tagging content for the reader like has been done for the subchapters under the [features](../features/overview.md) chapter of this manual. There are three types of badges: plain, link and reference. They are fully customizable and can simply be added with Markdown syntax: +Badges are small visual indicators often used to convey concise or important information. They can be very useful for categorising or tagging content for the reader like has been done for the subchapters under the [features](../features/overview.md) chapter of this manual. + +There are three types of badges: plain, link and reference which are fully customizable and can simply be added with Markdown syntax: | Type | Badge | Code Syntax | |--------|----------------------------------------------------------|------------------------------------------------------------------------| @@ -33,7 +35,7 @@ Here's an overview of all the available colours: ## Buttons -Buttons provide a way to create clickable elements that are more attractive than links. Jupyter-Book supports buttons using Markdown making them highly customizable. It is possible to link to external websites as well as chapters within your book. To link to an external page, `{button-link}` and `{button-ref}` must be used when linking to a different part of your book. +Buttons provide a way to create clickable elements that are more attractive than links, for example, to link to key sections of your book such as downloads or external resources. Jupyter-Book supports buttons using Markdown making them highly customizable. It is possible to link to external websites as well as chapters within your book. To link to an external page, use `{button-link}`. `{button-ref}` must be used when linking to a part within your book. The basic code syntax for creating a button is as follows: @@ -41,7 +43,7 @@ The basic code syntax for creating a button is as follows: :color: primary ``` -```{button-ref} overview.md +```{button-ref} ../features/overview.md :color: primary ``` @@ -59,50 +61,70 @@ Buttons can be customized in markdown in a similar way as figures. You can exper | shadow | / | Add shadow CSS | | class | / | Additional CSS classes | + Finally here are some examples: -```{button-link}https://teachbooks.io +```{button-link} https://teachbooks.io TeachBooks - :color: warning :shadow: ``` -```{button-link}https://teachbooks.io +```{button-link} https://teachbooks.io TeachBooks - :color: success :outline: :expand: ``` - ## Icons -Icons can be included to visually represent actions or categories. Jupyter-Book supports FontAwesome icons, which can be integrated using HTML syntax. +Icons can be included to visually represent actions or categories. They can take many shapes, such as an image or button inserted in-line within a text paragraph. Icons can be integrated using HTML syntax. -Adding Icons To add an icon, use the following syntax: -markdown -Code kopiƫren - Jupyter-Book -This example adds a "book" icon before the text "Jupyter-Book." +**Image Icons** -Combining Buttons and Icons -Icons can also be included within buttons for a modern, professional look: +Let's have a look at the first sentence of this chapter again. -markdown -Code kopiƫren - - Download Book +Jupyter book provides a range of features which are visually appealing and functional. + +Here the Jupyter-book logo was inserted for a more professional look. It's including a link `href` and and image saved as `../images/logo-wide.svg` + +``` +Jupyter book provides a range of features which are visually appealing and functional. +``` + +**SVG Icons** + +A library of SVG icons can be found [here](https://icons.getbootstrap.com/#icons). + +By scrolling through the available icons in the library you can find just about any icon. Once selected, you need to copy the signature of the icon to include it in the `path` in the HTML code. This paragraph includes a globe: + + " icon. As you can see in the code cell below, you'll need to specify the width, height as well as fill colour. + + +``` + +This paragraph includes a globe: + + " icon. + +``` + +**Combining Buttons and Icons** + +Icons can also be included within buttons for a modern, professional look. This button includes a download icon alongside some text: "Download it!". + +Loving this book? + Download it! -This button includes a "download" icon alongside text. -4. Use Cases -Here are some practical use cases for badges, buttons, and icons in a Jupyter-Book: +``` +Loving this book? + Download it! + +``` + + -Badges: Highlight software version, repository status, or contributors. -Buttons: Link to key sections of your book, such as downloads or external resources. -Icons: Add visual appeal or clarity to navigation links or labels. -Incorporating these elements into your Jupyter-Book improves both the aesthetic and functionality of your book, creating a more engaging experience for readers. \ No newline at end of file