11<template >
22 <div :class =" $style.playground" >
3- <div :class = " $style.header " >
3+ <Navbar >
44 <a
55 :class =" $style.logo"
66 href =" /dev/index.html"
77 >
88 CodeX UI
99 </a >
10- <Tabbar
11- :class =" $style.headerRight"
12- :tabs =" [{
13- title: 'Figma',
14- id: 'figma-button',
15- picture: 'https://cdn.svgporn.com/logos/figma.svg',
16- link: 'https://www.figma.com/design/YmJc2Vqmev25xZgXic5bjL/CodeX-Design-System?node-id=1288-953&t=PhdeYMJcGnLqT4js-0'
17- }]"
18- />
19- </div >
20- <div :class =" $style.body" >
21- <div
22- :class =" $style.aside"
23- >
10+ <template #right >
11+ <Tabbar
12+ :tabs =" [{
13+ title: 'Figma',
14+ id: 'figma-button',
15+ picture: 'https://cdn.svgporn.com/logos/figma.svg',
16+ link: 'https://www.figma.com/design/YmJc2Vqmev25xZgXic5bjL/CodeX-Design-System?node-id=1288-953&t=PhdeYMJcGnLqT4js-0'
17+ }]"
18+ />
19+ </template >
20+ </Navbar >
21+ <PageBlock :stretched =" true" >
22+ <template #left >
2423 <VerticalMenu
2524 :items =" pages"
2625 />
27- </div >
28- <div :class =" $style.content" >
29- <router-view />
30- </div >
31- </div >
26+ </template >
27+ <router-view />
28+ </PageBlock >
3229 <Popover />
30+ <Popup />
3331 </div >
3432</template >
3533
@@ -38,9 +36,12 @@ import { computed } from 'vue';
3836import {
3937 VerticalMenu ,
4038 Tabbar ,
41- Popover
39+ Popover ,
40+ Popup
4241} from ' ../src/vue' ;
4342import { useTheme } from ' ../src/vue/composables/useTheme' ;
43+ import { Navbar } from ' ../src/vue/layout/navbar' ;
44+ import { PageBlock } from ' ../src/vue/layout/page-block' ;
4445
4546import { useRouter , useRoute } from ' vue-router' ;
4647
@@ -94,6 +95,21 @@ const pages = computed(() => [
9495 },
9596 ],
9697 },
98+ {
99+ title: ' Layout' ,
100+ items: [
101+ {
102+ title: ' Navbar' ,
103+ onActivate : () => router .push (' /layout/navbar' ),
104+ isActive: route .path === ' /layout/navbar' ,
105+ },
106+ {
107+ title: ' PageBlock' ,
108+ onActivate : () => router .push (' /layout/page-block' ),
109+ isActive: route .path === ' /layout/page-block' ,
110+ },
111+ ],
112+ },
97113 {
98114 title: ' Components' ,
99115 items: [
@@ -197,6 +213,16 @@ const pages = computed(() => [
197213 onActivate : () => router .push (' /components/editor' ),
198214 isActive: route .path === ' /components/editor' ,
199215 },
216+ {
217+ title: ' Popup' ,
218+ onActivate : () => router .push (' /components/popup' ),
219+ isActive: route .path === ' /components/popup' ,
220+ },
221+ {
222+ title: ' Confirm' ,
223+ onActivate : () => router .push (' /components/confirm' ),
224+ isActive: route .path === ' /components/confirm' ,
225+ },
200226 ],
201227 },
202228]);
@@ -206,15 +232,6 @@ const pages = computed(() => [
206232.playground {
207233 background-color : var (--base--bg-primary );
208234 color : var (--base--text );
209- min-height : 100% ;
210- }
211- .header {
212- display : grid ;
213- grid-template-columns : auto auto ;
214- align-items : center ;
215- justify-content : space-between ;
216- border-bottom : 1px solid var (--base--border );
217- padding : var (--spacing-xs ) var (--spacing-m );
218235}
219236
220237.logo {
@@ -226,12 +243,4 @@ const pages = computed(() => [
226243 text-decoration : none ;
227244 color : var (--base--text );
228245}
229-
230- .body {
231- padding : var (--spacing-l );
232- display : grid ;
233- grid-template-columns : auto minmax (0 , 1fr );
234- gap : var (--spacing-xxl );
235- max-width : 1200px ;
236- }
237246 </style >
0 commit comments