-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
84 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react' | ||
import { Dialog, InputGroup, Button, IDialogProps } from '@blueprintjs/core' | ||
|
||
import styles from './style.module.css' | ||
|
||
const LoginDialog: React.FC<IDialogProps> = ({ isOpen, onClose }) => { | ||
const handleLogin = () => { | ||
console.log('login') | ||
} | ||
|
||
return ( | ||
<Dialog | ||
style={{ width: '400px' }} | ||
title='登录' | ||
isOpen={isOpen} | ||
onClose={onClose} | ||
> | ||
<div className={styles.content}> | ||
<InputGroup | ||
placeholder='请输入手机号' | ||
leftIcon='mobile-phone' | ||
/> | ||
<InputGroup | ||
placeholder='请输入密码' | ||
leftIcon='lock' | ||
type='password' | ||
/> | ||
|
||
<div className={styles.loginBtn}> | ||
<Button onClick={handleLogin}>登录</Button> | ||
</div> | ||
</div> | ||
</Dialog> | ||
) | ||
} | ||
|
||
export default LoginDialog |
15 changes: 15 additions & 0 deletions
15
src/components/Layout/Sidebar/LoginDialog/style.module.css
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,15 @@ | ||
.content { | ||
padding: 30px 30px 0; | ||
|
||
> div { | ||
margin-bottom: 20px; | ||
} | ||
|
||
.loginBtn { | ||
text-align: right; | ||
|
||
button { | ||
width: 30%; | ||
} | ||
} | ||
} |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@value red: #c7332f; |
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,7 @@ | ||
html { | ||
font-size: 100px; | ||
} | ||
|
||
button { | ||
outline: none !important; | ||
} |