Skip to content

Commit

Permalink
feat: improved styling and logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyvid7-Darus10 committed May 28, 2023
1 parent 67bef6c commit b158b26
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "face-guardian",
"version": "1.1.7",
"version": "1.2.0",
"description": "Face Guardian Components",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
22 changes: 18 additions & 4 deletions src/components/FaceLogin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,37 @@ const FaceLogin: React.FC<FaceLoginProps> = ({

const defaultStyles: CSSProperties = {
display: 'flex',
flexDirection: 'column',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
background: '#9fdbfd',
border: '1px solid #5f9cbf',
borderRadius: '5px',
padding: '10px',
color: '#ddf3ff',
color: '#ffffff',
fontSize: '16px',
fontWeight: 600,
cursor: 'pointer',
width: '100%',
gap: '2px',
border: 'none',
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.2)',
transition: '0.3s',
outline: 'none',
};

const combinedStyles = { ...defaultStyles, ...buttonStyles };

return (
<button onClick={handleButtonClick} style={combinedStyles}>
<button
onClick={handleButtonClick}
style={combinedStyles}
disabled={!appId}
>
<img
src="https://i.ibb.co/sthHtZP/fg-logo.webp"
alt="Face Guardian Logo"
style={{ marginRight: '10px', height: '24px', width: '24px' }}
/>
{buttonText}
</button>
);
Expand Down

0 comments on commit b158b26

Please sign in to comment.