|
| 1 | +<style> |
| 2 | + figure { |
| 3 | + margin: 0; |
| 4 | + } |
| 5 | + figcaption ol { |
| 6 | + font-size: var(--rh-font-size-body-text-sm, 0.875rem); |
| 7 | + font-weight: var(--rh-font-weight-body-text-regular, 400); |
| 8 | + line-height: var(--rh-line-height-heading, 1.3); |
| 9 | + padding-inline-start: var(--rh-space-lg, 16px); |
| 10 | + } |
| 11 | + figure .example { |
| 12 | + margin-bottom: var(--rh-space-lg, 16px); |
| 13 | + } |
| 14 | + |
| 15 | + figure .example + figcaption { |
| 16 | + margin-bottom: var(--rh-space-4xl, 64px); |
| 17 | + } |
| 18 | + |
| 19 | + .grid { |
| 20 | + display: grid; |
| 21 | + grid-template-columns: 1fr; |
| 22 | + gap: var(--rh-space-4xl, 64px); |
| 23 | + } |
| 24 | + |
| 25 | + .grid .example { |
| 26 | + width: 100%; |
| 27 | + } |
| 28 | + |
| 29 | + .grid .example + .example { |
| 30 | + margin-top: unset; |
| 31 | + margin-block-start: unset; |
| 32 | + } |
| 33 | + |
| 34 | + @media (min-width: 992px) { |
| 35 | + .grid { |
| 36 | + grid-template-columns: repeat(2, 1fr); |
| 37 | + } |
| 38 | + } |
| 39 | +</style> |
| 40 | + |
| 41 | +## Styles |
| 42 | + |
| 43 | +Website status is a combination of an icon and link within a very small card. It is designed to be understood immediately. Otherwise, a user can click on the link to learn more. |
| 44 | + |
| 45 | +### Anatomy |
| 46 | + |
| 47 | +<figure> |
| 48 | + {% example palette="darkest", |
| 49 | + alt="Image of a site status element with a green checkmark and the text 'All systems operational'", |
| 50 | + src="../site-status-anatomy.svg" |
| 51 | + %} |
| 52 | + <figcaption> |
| 53 | + <ol> |
| 54 | + <li>Icon</li> |
| 55 | + <li>Link</li> |
| 56 | + <li>Container</li> |
| 57 | + </ol> |
| 58 | + </figcaption> |
| 59 | +</figure> |
| 60 | + |
| 61 | +## Theme |
| 62 | + |
| 63 | +Currently, Website status is only available in the dark theme. You may use Website status in the light theme if necessary. If you need a separate light version designed instead, [contact us](https://github.com/RedHat-UX/red-hat-design-system/discussions). |
| 64 | + |
| 65 | + |
| 66 | +<div class="grid"> |
| 67 | +{% example palette="darkest", |
| 68 | + alt="Image of a site status element with a green checkmark and the text 'All systems operational on a dark background'", |
| 69 | + src="../site-status-theme.svg" |
| 70 | + %} |
| 71 | + |
| 72 | +{% example palette="lightest", |
| 73 | + alt="Image of a site status element with a green checkmark and the text 'All systems operational on a light background'", |
| 74 | + src="../site-status-theme.svg" |
| 75 | + %} |
| 76 | +</div> |
| 77 | + |
| 78 | +## Configuration |
| 79 | + |
| 80 | +Website status has a fixed height and its width changes depending on the amount of link text. The icon and link are horizontally aligned to the card as well. |
| 81 | + |
| 82 | +{% example palette="darkest", |
| 83 | + alt="Image of a site status element with a green checkmark and the text 'All systems operational' with fixed height, width and horizontal alignment indicators.", |
| 84 | + src="../site-status-configuration.svg" |
| 85 | +%} |
| 86 | + |
| 87 | +## Icons |
| 88 | + |
| 89 | +Website status includes three icons that also indicate the severity of the status. |
| 90 | + |
| 91 | +{% example palette="darkest", |
| 92 | + alt="Three images of site status elements, one with a green checkmark and the text 'All systems operational', the second with a yellow exclamation point and the text 'Partial system outage', and the third with a red exclamation point and the text 'Major system outage'.", |
| 93 | + src="../site-status-icons.svg" |
| 94 | +%} |
| 95 | + |
| 96 | +## Space |
| 97 | + |
| 98 | +Space values remain the same at all viewport sizes. |
| 99 | + |
| 100 | +{% example palette="darkest", |
| 101 | + alt="Image of a site status element with a green checkmark and the text 'All systems operational' with space indicators.", |
| 102 | + src="../site-status-space.svg" |
| 103 | +%} |
| 104 | + |
| 105 | +{% example palette="none", |
| 106 | + alt="Image of a site status element with a green checkmark and the text 'All systems operational' in a footer element with space indicators.", |
| 107 | + src="../site-status-footer.svg" |
| 108 | +%} |
| 109 | + |
| 110 | +{% example palette="none", |
| 111 | + alt="Image of a site status element with a green checkmark and the text 'All systems operational' in a footer element with space indicators at a small viewport size.", |
| 112 | + src="../site-status-footer-mobile.svg"%} |
| 113 | + |
| 114 | + |
| 115 | +## Interaction states |
| 116 | + |
| 117 | +Only the link is selectable and it should be underlined in all interaction states. |
| 118 | + |
| 119 | +{% example palette="darkest", |
| 120 | + alt="Three images of a site status element with a green checkmark and the text 'All systems operational' first one displaying the mouse hover state, the second the keyboard state, the third a combination of hover and focus.", |
| 121 | + src="../site-status-interaction-states.svg" |
| 122 | +%} |
| 123 | + |
0 commit comments