forked from eyra/feldspar
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put skip button, still has to be tested in a script
- Loading branch information
Showing
3 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
src/framework/visualisation/react/ui/pages/templates/footer.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,26 @@ | ||
interface FooterProps { | ||
left?: JSX.Element | ||
middle?: JSX.Element | ||
right?: JSX.Element | ||
} | ||
|
||
export const Footer = ({ left, middle, right }: FooterProps): JSX.Element => { | ||
return ( | ||
<> | ||
<div className='bg-grey4 h-px' /> | ||
<div className='h-full flex flex-col justify-center'> | ||
<div className='flex flex-row gap-4 px-14'> | ||
<div className='w-1/3'> | ||
{left} | ||
</div> | ||
<div className='w-1/3'> | ||
{middle} | ||
</div> | ||
<div className='w-1/3'> | ||
{right} | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |
4 changes: 4 additions & 0 deletions
4
src/framework/visualisation/react/ui/pages/templates/page.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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
interface PageProps { | ||
body: JSX.Element | ||
footer?: JSX.Element | ||
} | ||
|
||
export const Page = (props: PageProps): JSX.Element => { | ||
return ( | ||
<div className='w-full h-full'> | ||
{props.body} | ||
{props.footer != null && ( | ||
<div className='h-footer flex-shrink-0 mt-5'>{props.footer}</div> | ||
)} | ||
</div> | ||
) | ||
} |