|
| 1 | +<script> |
| 2 | + import Grid from './Grid.svelte'; |
| 3 | + import { Meta, Story } from '@storybook/addon-svelte-csf'; |
| 4 | +
|
| 5 | + const content = [ |
| 6 | + 'Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s,', |
| 7 | + 'when an unknown printer took a galley of type and scrambled it to make a type specimen book.', |
| 8 | + 'It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.', |
| 9 | + 'It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,', |
| 10 | + 'and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', |
| 11 | + 'Contrary to popular belief, Lorem Ipsum is not simply random text.', |
| 12 | + 'It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.', |
| 13 | + 'Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words:', |
| 14 | + 'consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.', |
| 15 | + 'Quisque vitae ipsum enim.', |
| 16 | + 'Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. ', |
| 17 | + 'Aliquam lobortis nisl mi, et ultrices mi gravida ac.', |
| 18 | + ]; |
| 19 | +</script> |
| 20 | +<Meta title="Design System/Grid" /> |
| 21 | +Resize window or activate responsive sizing in the development panel to see grid changes. |
| 22 | +<Story name="Grid"> |
| 23 | + <Grid class="xs:text-xs md:text-sm"> |
| 24 | + {#each content as line, i} |
| 25 | + <p><b>Paragraph {i+1}: </b> |
| 26 | + {line} |
| 27 | + </p> |
| 28 | + {/each} |
| 29 | + </Grid> |
| 30 | + <p>Source: <a class="underline text-brightBlue hover:text-gray2" href="https://www.lipsum.com/">Lorem Ipsum</a></p> |
| 31 | +</Story> |
0 commit comments