-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
styling(preview): show full board in preview
- Loading branch information
1 parent
957d123
commit 98223e9
Showing
2 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
next-tavla/app/(admin)/edit/[id]/components/Preview/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
'use client' | ||
|
||
import { Board } from 'Board/scenarios/Board' | ||
import { Footer } from 'components/Footer' | ||
import { Header } from 'components/Header' | ||
import { TBoard, TOrganization } from 'types/settings' | ||
|
||
function Preview({ | ||
board, | ||
organization, | ||
}: { | ||
board: TBoard | ||
organization?: TOrganization | ||
}) { | ||
return ( | ||
<div | ||
className="rounded p-4 bg-primary" | ||
data-theme={board?.theme ?? 'dark'} | ||
> | ||
<Header theme={board.theme} organizationLogo={organization?.logo} /> | ||
<div className="h-[50rem]"> | ||
<Board board={board} /> | ||
</div> | ||
<Footer | ||
board={board} | ||
logo={organization?.logo !== undefined} | ||
orgFooter={organization?.footer} | ||
/> | ||
</div> | ||
) | ||
} | ||
|
||
export { Preview } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters