-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(app): dashboard style improvements and main page if authenti…
…cated
- Loading branch information
1 parent
0e2fd98
commit 25b716a
Showing
6 changed files
with
62 additions
and
20 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
25 changes: 25 additions & 0 deletions
25
apps/codeimage/src/pages/Dashboard/components/DashboardHeader/DashboardHeader.css.ts
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,25 @@ | ||
import {themeVars} from '@codeimage/ui'; | ||
import {style} from '@vanilla-extract/css'; | ||
import {toolbarVars} from '../../../../components/Toolbar/Toolbar.css'; | ||
import * as toolbarStyles from '../../../../components/Toolbar/Toolbar.css'; | ||
|
||
export const header = style([ | ||
toolbarStyles.toolbarTheme, | ||
{ | ||
padding: `0px ${themeVars.spacing['3']}`, | ||
display: 'flex', | ||
height: toolbarVars.toolbarHeight, | ||
background: themeVars.dynamicColors.background, | ||
}, | ||
]); | ||
|
||
export const headerContent = style({ | ||
width: '100%', | ||
margin: 'auto', | ||
display: 'flex', | ||
'@media': { | ||
[`(min-width: 1280px)`]: { | ||
width: '1280px', | ||
}, | ||
}, | ||
}); |
29 changes: 16 additions & 13 deletions
29
apps/codeimage/src/pages/Dashboard/components/DashboardHeader/DashboardHeader.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,26 +1,29 @@ | ||
import {Box, HStack} from '@codeimage/ui'; | ||
import {CodeImageLogo} from '../../../../components/Icons/CodeImageLogo'; | ||
import {sidebarLogo} from '../../../../components/Scaffold/Sidebar/Sidebar.css'; | ||
import {actionBox, wrapper} from '../../../../components/Toolbar/Toolbar.css'; | ||
import {actionBox} from '../../../../components/Toolbar/Toolbar.css'; | ||
import {ToolbarSettingsButton} from '../../../../components/Toolbar/ToolbarSettings'; | ||
import {UserBadge} from '../../../../components/UserBadge/UserBadge'; | ||
import * as styles from './DashboardHeader.css'; | ||
|
||
export function DashboardHeader() { | ||
return ( | ||
<div class={wrapper}> | ||
<ToolbarSettingsButton /> | ||
<div class={styles.header}> | ||
<div class={styles.headerContent}> | ||
<ToolbarSettingsButton /> | ||
|
||
<Box display={'flex'} alignItems={'center'} flexGrow={1} marginLeft={5}> | ||
<div class={sidebarLogo}> | ||
<CodeImageLogo width={'140px'} /> | ||
</div> | ||
</Box> | ||
<Box display={'flex'} alignItems={'center'} flexGrow={1} marginLeft={5}> | ||
<div class={sidebarLogo}> | ||
<CodeImageLogo width={'140px'} /> | ||
</div> | ||
</Box> | ||
|
||
<Box class={actionBox} style={{flex: 1}}> | ||
<HStack spacing={'2'} marginLeft={'auto'}> | ||
<UserBadge /> | ||
</HStack> | ||
</Box> | ||
<Box class={actionBox} style={{flex: 1}}> | ||
<HStack spacing={'2'} marginLeft={'auto'}> | ||
<UserBadge /> | ||
</HStack> | ||
</Box> | ||
</div> | ||
</div> | ||
); | ||
} |
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