diff --git a/src/pages/_data/docs.yml b/src/pages/_data/docs.yml index b4dfc1d50..6ac949247 100644 --- a/src/pages/_data/docs.yml +++ b/src/pages/_data/docs.yml @@ -1,12 +1,16 @@ -index: +base: title: Getting started icon: brand-tabler children: index: title: Introduction - icon: file url: docs/index.html - + colors: + title: Colors + url: docs/colors.html + typography: + title: Typography + url: docs/typography.html components: title: Components @@ -33,12 +37,6 @@ components: carousel: title: Carousel url: docs/carousel.html - colors: - title: Colors - url: docs/colors.html - cursors: - title: Cursors - url: docs/cursors.html dropdowns: title: Dropdowns url: docs/dropdowns.html @@ -93,13 +91,14 @@ components: tooltips: title: Tooltips url: docs/tooltips.html - typography: - title: Typography - url: docs/typography.html -utilities: + +utils: title: Utilities icon: flame children: + cursors: + title: Cursors + url: docs/cursors.html plugins: title: Plugins diff --git a/src/pages/_docs/colors.md b/src/pages/_docs/colors.md index 0b4058b91..4e2c2e0a4 100644 --- a/src/pages/_docs/colors.md +++ b/src/pages/_docs/colors.md @@ -1,6 +1,6 @@ --- title: Colors -menu: docs.components.colors +menu: docs.base.colors description: The choice of colors for a website or app interface has an big influence on how users interact with the product and what decisions they make. Harmonic colors can contribute to a nice first impression and encourage users to engage with your product, so it's a very important aspect of a successful design, which needs to be well thought out. bootstrap-link: utilities/colors/ --- diff --git a/src/pages/_docs/cursors.md b/src/pages/_docs/cursors.md index e2615af2c..3f09c77a6 100644 --- a/src/pages/_docs/cursors.md +++ b/src/pages/_docs/cursors.md @@ -1,10 +1,9 @@ --- title: Cursors description: You can use different cursors to reflect the intended user interaction with particular elements of an interface. The cursor will change when a user hovers over a given element to indicate the action which can be performed. -menu: docs.components.cursors +menu: docs.utils.cursors --- - ## Cursor utilities Use one of the available cursor utilities depending on the action you want to indicate. diff --git a/src/pages/_docs/divider.md b/src/pages/_docs/divider.md index dc443e9a0..3efacafc8 100644 --- a/src/pages/_docs/divider.md +++ b/src/pages/_docs/divider.md @@ -12,14 +12,14 @@ Use dividers to visually separate content into parts. You can use a line only or {% capture code %}
- Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit! + Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
{% include ui/hr.html text="See also" %}Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
{% endcapture %} -{% include example.html code=code %} +{% include example.html code=code wrapper="demo-dividers" %} ## Text position @@ -28,7 +28,7 @@ You can modify the position of the text which is to be included in a separator a {% capture code %}- Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit! + Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
{% include ui/hr.html text="Left divider" position="left" %}@@ -36,14 +36,14 @@ You can modify the position of the text which is to be included in a separator a
{% include ui/hr.html text="Centered divider" %}- Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit! + Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
{% include ui/hr.html text="Right divider" position="right" %}Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
{% endcapture %} -{% include example.html code=code %} +{% include example.html code=code wrapper="demo-dividers" %} ## Divider color @@ -56,11 +56,15 @@ Customize the color of dividers to make them go well with your design. Click [he {% include ui/hr.html text="Green divider" color="green" %}- Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit! + Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
{% include ui/hr.html text="Red divider" color="red" %} ++ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex. +
+{% include ui/hr.html text="Primary divider" color="primary" %}Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
{% endcapture %} -{% include example.html code=code %} +{% include example.html code=code wrapper="demo-dividers" %} diff --git a/src/pages/_docs/empty.md b/src/pages/_docs/empty.md index accba6558..26e3c7cd8 100644 --- a/src/pages/_docs/empty.md +++ b/src/pages/_docs/empty.md @@ -20,6 +20,15 @@ Use the default empty state to engage users in the critical moments of their exp Make your empty state screen more attractive and engaging by adding an illustration. Thanks to a more personalized design, you will improve your brand image and make your website or app more user friendly. {% capture code %} -{% include ui/empty.html illustration=true %} +{% include ui/empty.html illustration=true title="Invoices are managed from here" description="You can see which ones are sent, viewed, partially or fully paid." button-icon="plus" button-text="New invoice" %} +{% endcapture %} +{% include example.html code=code %} + +## Empty state with header + +Instead of adding an icon or illustration you can simply give the text: + +{% capture code %} +{% include ui/empty.html icon-text="404" title="Oops… You just found an error page" description="We are sorry but the page you are looking for was not found" button-text="Take me home" button-icon="arrow-left" %} {% endcapture %} {% include example.html code=code %} diff --git a/src/pages/_docs/index.md b/src/pages/_docs/index.md index f6ec6c9fe..0f49964ff 100644 --- a/src/pages/_docs/index.md +++ b/src/pages/_docs/index.md @@ -1,6 +1,6 @@ --- title: Introduction -menu: docs.index.index +menu: docs.base.index icon: flag redirect_from: docs.html --- diff --git a/src/pages/_docs/typography.md b/src/pages/_docs/typography.md index b563dea87..05f68ea64 100644 --- a/src/pages/_docs/typography.md +++ b/src/pages/_docs/typography.md @@ -1,6 +1,6 @@ --- title: Typography -menu: docs.components.typography +menu: docs.base.typography description: Typography plays an important role in creating an attractive and clear interface design. Good typography will make the content easy to follow and improve the usability of your website. bootstrap-link: content/typography/ --- diff --git a/src/pages/_includes/forms/form-elements-5.html b/src/pages/_includes/forms/form-elements-5.html index 64ef3af9c..c33195487 100644 --- a/src/pages/_includes/forms/form-elements-5.html +++ b/src/pages/_includes/forms/form-elements-5.html @@ -9,27 +9,27 @@ diff --git a/src/pages/_includes/ui/empty.html b/src/pages/_includes/ui/empty.html index 29db87b2c..17384eac5 100644 --- a/src/pages/_includes/ui/empty.html +++ b/src/pages/_includes/ui/empty.html @@ -1,23 +1,23 @@ -{% assign icon = include.icon | default: "search" %} +{% assign icon = include.icon | default: "mood-sad" %}{{ include.title | default: "No results found" }}
-- {{ include.subtitle | default: "Try adjusting your search or filter to find what you're looking for." }} -
-{{ include.title | default: "No results found" }}
++ {{ include.subtitle | default: "Try adjusting your search or filter to find what you're looking for." }} +
+