diff --git a/front/ui-docs/.vitepress/config.ts b/front/ui-docs/.vitepress/config.ts index acb36226e..5f7453ad7 100644 --- a/front/ui-docs/.vitepress/config.ts +++ b/front/ui-docs/.vitepress/config.ts @@ -17,6 +17,9 @@ export default defineConfig({ { text: 'Using Components', link: '/using-components' }, + { + text: 'Designing Pages', link: '/designing-pages' + }, { items: [ { text: 'Activity', link: '/components/ui/activity' }, diff --git a/front/ui-docs/designing-pages.md b/front/ui-docs/designing-pages.md new file mode 100644 index 000000000..aea9a2f88 --- /dev/null +++ b/front/ui-docs/designing-pages.md @@ -0,0 +1,236 @@ + + +# Designing Pages + +## Grid + +::: details Default widths + +![alt text](image-1.png) + +::: + +The page grid consists of 46px wide tracks, separated by 32px wide gaps. + +### Responsivity + +- Cards and Activities snap to the grid columns. They have intrinsic widths, expressed in the number of columns they span. For Card, it is 3 and for Activity, it is 4. +- On a typical laptop screen, you will have 4 albums or 3 activities side-by-side. On a typical mobile screen, you will have 1 medium card or 2 small ones in a row. +- The remaining space is evenly distributed. +- Title rows align with the content below them. + +Resize the window to observe how the items move. + + + +Click Toggle to left-align the layout. + + +--- + + + + + + + + + +

+ Albums +

+ + +
+ +
+ + + Artist Name + 13 tracks + + + Artist Name + 13 tracks + + + Artist Name + 13 tracks + + + Artist Name + 13 tracks + + + Artist Name + 13 tracks + + + + + + + + + + +

+ Tracks +

+ + +
+ +
+ + + + + + +## Navigation + +When most of the screen changes, users perceive it as a page navigation. They will expect the "back" button to bring them to the precious screen. In addition, they may expect the URL to contain the current page for sharing. + +This makes a component a "page". In this sense, modals are pages. + +Not everything we want to share with the Url replaces most of the screen. What about switching a filter? diff --git a/front/ui-docs/index.md b/front/ui-docs/index.md index df701349a..f0c0a0165 100644 --- a/front/ui-docs/index.md +++ b/front/ui-docs/index.md @@ -29,4 +29,9 @@ import Spacer from '../src/components/ui/layout/Spacer.vue' Check out the design system on our Penpot. + +