-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Tailwind config as preset * Small changes to topbar * Add props to topbar and fix sidebar dimensions * bump
- Loading branch information
1 parent
259f7dc
commit a1d9963
Showing
20 changed files
with
1,556 additions
and
974 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
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
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
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
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
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
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
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,43 @@ | ||
import React from 'react' | ||
|
||
export const Topbar: React.FC<TopbarProps> = ({ | ||
logoHref = '//app.lojaintegrada.com.br/painel', | ||
logoSrc = 'https://cdn.awsli.com.br/production/static/whitelabel/lojaintegrada/img/logo.svg', | ||
logoTitle = 'Loja Integrada', | ||
children, | ||
}) => ( | ||
<div className="flex fixed justify-between items-center top-0 pb-2 pt-2-safe lg:pb-4 lg:px-8-safe lg:pt-4-safe w-full z-20 bg-base-1 shadow h-16"> | ||
<div className="flex"> | ||
<a className="logo flex items-center text-base-1 text-sm" href={logoHref}> | ||
<img | ||
src={logoSrc} | ||
alt={logoTitle} | ||
style={{ | ||
width: '130px', | ||
}} | ||
/> | ||
</a> | ||
</div> | ||
<div className="flex items-center">{children}</div> | ||
</div> | ||
) | ||
|
||
export interface TopbarProps { | ||
/** Link of the logo | ||
* @default '//app.lojaintegrada.com.br/painel' | ||
*/ | ||
logoHref?: string | ||
/** Image link of the logo | ||
* @default 'https://cdn.awsli.com.br/production/static/whitelabel/lojaintegrada/img/logo.svg' | ||
*/ | ||
logoSrc?: string | ||
/** Title of the logo | ||
* @default 'Loja Integrada' | ||
*/ | ||
logoTitle?: string | ||
/** | ||
* React children | ||
* Also support render prop | ||
*/ | ||
children?: React.ReactNode | ((props: TopbarProps) => React.ReactNode) | ||
} |
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,9 +1 @@ | ||
import React from 'react' | ||
|
||
export const Topbar: React.FC<TopbarProps> = () => ( | ||
<div className="flex fixed justify-between items-center top-0 px-4 py-2 lg:px-8 lg:py-4 w-full z-20 bg-base-1 shadow h-16"></div> | ||
) | ||
|
||
export interface TopbarProps { | ||
children?: any | ||
} | ||
export * from './Topbar' |
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.
a1d9963
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: