-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from SW13-Monstera/dev
Merge into main
- Loading branch information
Showing
58 changed files
with
3,114 additions
and
135 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export const USER_INFO = "userInfo"; | ||
export const AUTHORIZTION = "Authorization"; | ||
export const USER_INFO = 'userInfo'; | ||
export const AUTHORIZATION = 'Authorization'; | ||
export const BEARER_TOKEN = (token: string) => `Bearer ${token}`; | ||
export const ROLES = { | ||
ROLE_ADMIN: "ROLE_ADMIN", | ||
ROLE_USER: "ROLE_USER", | ||
ROLE_ADMIN: 'ROLE_ADMIN', | ||
ROLE_USER: 'ROLE_USER', | ||
} as const; |
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
17 changes: 17 additions & 0 deletions
17
packages/service/src/Component/Button/FloatingButton/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,17 @@ | ||
import { IButton } from '../../../types/button'; | ||
import { floatingButtonStyle } from './style.css'; | ||
|
||
const FloatingButton = (props: IButton) => { | ||
return ( | ||
<button | ||
type='button' | ||
className={floatingButtonStyle} | ||
onClick={props.onClick} | ||
onMouseOver={props.onMouseOver} | ||
onMouseOut={props.onMouseOut} | ||
> | ||
{props.children} | ||
</button> | ||
); | ||
}; | ||
export default FloatingButton; |
27 changes: 27 additions & 0 deletions
27
packages/service/src/Component/Button/FloatingButton/style.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,27 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
import { COLOR } from '../../../constants/color'; | ||
import { spreadBoxShadow } from '../../../styles/keyframe.css'; | ||
import { themeColors } from '../../../styles/theme.css'; | ||
|
||
export const floatingButtonStyle = style({ | ||
position: 'fixed', | ||
bottom: '20px', | ||
right: '20px', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
width: '56px', | ||
height: '56px', | ||
cursor: 'pointer', | ||
borderRadius: '24px', | ||
background: `linear-gradient(${COLOR.PRIMARY} 0%, rgba(42,90,243) 100%)`, | ||
color: COLOR.BACKGROUND.ALICE_BLUE, | ||
fontSize: '2rem', | ||
boxShadow: `0px 0px 4px ${themeColors.shadow[1]}`, | ||
animation: spreadBoxShadow, | ||
zIndex: '10', | ||
|
||
':hover': { | ||
boxShadow: `4px 8px 24px ${themeColors.shadow[1]}`, | ||
}, | ||
}); |
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
Oops, something went wrong.
26373cd
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.
🎉 Published on https://admin.csbroker.io as production
🚀 Deployed on https://65ad2c2732bdb76ba548617e--csbroker-admin.netlify.app