|
| 1 | +import type { Meta, StoryObj } from "@storybook/web-components"; |
| 2 | + |
| 3 | +import { html } from "lit"; |
| 4 | + |
| 5 | +const meta: Meta = { |
| 6 | + title: "Components/Section", |
| 7 | +}; |
| 8 | + |
| 9 | +export default meta; |
| 10 | +type Story = StoryObj; |
| 11 | + |
| 12 | +export const Default: Story = { |
| 13 | + render: () => html` |
| 14 | + <div class="iati-section"> |
| 15 | + <h2 class="iati-section__title">About</h2> |
| 16 | + <div class="iati-section__content"> |
| 17 | + <p> |
| 18 | + The time-lag statistics attempt to assess how up to date the data |
| 19 | + is at the point that it is refreshed. For instance a publisher may |
| 20 | + refresh their data monthly, but the refreshed data is in fact three |
| 21 | + months old. Alternatively a publisher may only refresh their data once |
| 22 | + a year, but when they do it contains current data that is less than |
| 23 | + one month out of date. |
| 24 | + </p> |
| 25 | + <p> |
| 26 | + Transactions are the most numerous and most regularly refreshed |
| 27 | + elements in reported IATI activities and they are therefore used to |
| 28 | + make this assessment. |
| 29 | + </p> |
| 30 | + <p> |
| 31 | + The table of statistics shows the number of transaction dates reported |
| 32 | + in each of the last twelve calendar months. The current month is shown |
| 33 | + for informational purposes, but excluded from the assessment. |
| 34 | + </p> |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + `, |
| 38 | +}; |
| 39 | + |
| 40 | +export const Fill: Story = { |
| 41 | + render: () => html` |
| 42 | + <div class="iati-section iati-section--fill"> |
| 43 | + <h2 class="iati-section__title">About</h2> |
| 44 | + <div class="iati-section__content"> |
| 45 | + <p> |
| 46 | + The time-lag statistics attempt to assess how up to date the data |
| 47 | + is at the point that it is refreshed. For instance a publisher may |
| 48 | + refresh their data monthly, but the refreshed data is in fact three |
| 49 | + months old. Alternatively a publisher may only refresh their data once |
| 50 | + a year, but when they do it contains current data that is less than |
| 51 | + one month out of date. |
| 52 | + </p> |
| 53 | + <p> |
| 54 | + Transactions are the most numerous and most regularly refreshed |
| 55 | + elements in reported IATI activities and they are therefore used to |
| 56 | + make this assessment. |
| 57 | + </p> |
| 58 | + <p> |
| 59 | + The table of statistics shows the number of transaction dates reported |
| 60 | + in each of the last twelve calendar months. The current month is shown |
| 61 | + for informational purposes, but excluded from the assessment. |
| 62 | + </p> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + `, |
| 66 | +}; |
0 commit comments