Skip to content

Commit

Permalink
update PageComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
sakihet committed Nov 9, 2023
1 parent be54533 commit 2c674bb
Showing 1 changed file with 35 additions and 38 deletions.
73 changes: 35 additions & 38 deletions src/components/PageComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { Card } from '../types/card'
import { List } from '../types/list'
import BoardHeader from './BoardHeader'
import { signal } from '@preact/signals'
import AppButton from './AppButton'
import ListHeader from './ListHeader'

export default function PageComponents() {
const board1: Board = {
Expand Down Expand Up @@ -67,6 +69,15 @@ export default function PageComponents() {
<h2>Components</h2>
</div>
<div class="layout-stack-4">
<div class="layout-stack-2">
<h3>AppButton</h3>
<div>
<AppButton
text="Button"
onClick={() => { }}
/>
</div>
</div>
<div class="layout-stack-2">
<h3>BoardForm</h3>
<div>
Expand All @@ -75,6 +86,17 @@ export default function PageComponents() {
/>
</div>
</div>
<div class="layout-stack-2">
<h3>BoardHeader</h3>
<div>
<BoardHeader
id={board1.id}
name={board1.name}
updateBoardName={() => { }}
deleteBoard={() => { }}
/>
</div>
</div>
<div class="layout-stack-2">
<h3>BoardItem</h3>
<div>
Expand Down Expand Up @@ -153,6 +175,19 @@ export default function PageComponents() {
/>
</div>
</div>
<div class="layout-stack-2">
<h3>ListHeader</h3>
<div>
<ListHeader
id={list1.id}
name={list1.name}
cardsNum={0}
updateListName={() => { }}
handleClickDeleteList={() => { }}
handleClickDeleteCards={() => { }}
/>
</div>
</div>
<div class="layout-stack-2">
<h3>TheNavBar</h3>
<div>
Expand All @@ -166,44 +201,6 @@ export default function PageComponents() {
</div>
</div>
</div>
<hr />
<div>
<h2>Sandbox</h2>
</div>
<div>
<details class="pattern-dropdown">
<summary class="w-8 h-8 border-solid border-1 border-color-primary flex-column rounded-2 cursor-pointer">
<div class="m-auto">...</div>
</summary>
<div class="border-solid border-1 border-color-primary rounded-2 py-2">
<ul class="list-style-none pl-0 py-0 m-0 text-secondary">
<li class="h-8 px-4 py-2 hover cursor-pointer">Item 1</li>
<li class="h-8 px-4 py-2 hover cursor-pointer">Item 2</li>
<li class="h-8 px-4 py-2 hover cursor-pointer">Item 3</li>
</ul>
</div>
</details>
</div>
<div>
<div class="flex-row h-8">
<div class="f-1">
</div>
<div class="w-8 overflow-hidden">
<details class="pattern-dropdown">
<summary class="w-8 h-8 border-solid border-1 border-color-primary flex-column rounded-2 cursor-pointer">
<div class="m-auto">...</div>
</summary>
<div class="border-solid border-1 border-color-primary rounded-2 py-2 r-3 t-1">
<ul class="list-style-none pl-0 py-0 m-0 text-secondary">
<li class="h-8 px-4 py-2 hover cursor-pointer">Item 1</li>
<li class="h-8 px-4 py-2 hover cursor-pointer">Item 2</li>
<li class="h-8 px-4 py-2 hover cursor-pointer">Item 3</li>
</ul>
</div>
</details>
</div>
</div>
</div>
</div>
)
}

0 comments on commit 2c674bb

Please sign in to comment.