-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor layout and content components * Clean up search bar * Add bar component * Fix minimized modeler
- Loading branch information
Showing
20 changed files
with
620 additions
and
871 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,8 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import styles from './layout.module.scss'; | ||
import { FC, PropsWithChildren, useEffect, useState } from 'react'; | ||
import { Layout as AntLayout, Button, Menu, MenuProps, Popover, Space, Tooltip } from 'antd'; | ||
import { | ||
DeploymentUnitOutlined, | ||
FundProjectionScreenOutlined, | ||
EditOutlined, | ||
UnorderedListOutlined, | ||
ProfileOutlined, | ||
FileAddOutlined, | ||
PlaySquareOutlined, | ||
SettingOutlined, | ||
ApiOutlined, | ||
UserOutlined, | ||
} from '@ant-design/icons'; | ||
import Logo from '@/public/proceed.svg'; | ||
import Image from 'next/image'; | ||
import { usePathname, useRouter } from 'next/navigation'; | ||
import cn from 'classnames'; | ||
|
||
// type AuthLayoutProps = PropsWithChildren<{ | ||
// headerContent: React.ReactNode | undefined; | ||
// }>; | ||
import { FC, PropsWithChildren } from 'react'; | ||
import Layout from '@/components/layout'; | ||
|
||
const AuthLayout: FC<PropsWithChildren> = ({ children }) => { | ||
return ( | ||
<AntLayout> | ||
<AntLayout.Header | ||
style={{ backgroundColor: '#fff', borderBottom: '1px solid #eee' }} | ||
className={styles.Header} | ||
> | ||
<Image | ||
src="/proceed.svg" | ||
alt="PROCEED Logo" | ||
className={cn(styles.Logo /* , { [styles.collapsed]: collapsed } */)} | ||
width={160} | ||
height={63} | ||
priority | ||
/> | ||
</AntLayout.Header> | ||
<AntLayout.Content> | ||
{/* <Space direction="vertical" align="center" size="large" style={{ display: 'flex' }}> */} | ||
{/* <Space direction="horizontal" align="center"> */} | ||
<div className={cn(styles.Auth)}>{children}</div> | ||
{/* </Space> */} | ||
{/* </Space> */} | ||
</AntLayout.Content> | ||
<AntLayout.Footer className={cn(styles.Footer)}> | ||
<Space direction="vertical" align="center" style={{ width: '100%' }}> | ||
© 2023 PROCEED Labs GmbH | ||
</Space> | ||
</AntLayout.Footer> | ||
</AntLayout> | ||
); | ||
return <Layout>{children}</Layout>; | ||
}; | ||
|
||
export default AuthLayout; |
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
Oops, something went wrong.