forked from darwinia-network/crab-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
4ff4c29
commit 97a80d2
Showing
3 changed files
with
59 additions
and
0 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,23 @@ | ||
import React, { useRef, useState } from 'react'; | ||
import clsx from 'clsx'; | ||
import styles from './styles.module.scss'; | ||
|
||
type Props = { | ||
className?: string; | ||
} | ||
|
||
const ClaimAirdrop: React.FC<Props> = ({ className }) => { | ||
const handleClickLoginWithGithub = (e: Event) => { | ||
e.preventDefault(); | ||
} | ||
|
||
return ( | ||
<div className={clsx(className)}> | ||
<button className={clsx(styles.btnLoginWithGihub)} onClick={handleClickLoginWithGithub}> | ||
<span>Log in with Github</span> | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default React.memo<Props>(ClaimAirdrop); |
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,33 @@ | ||
%-btn-base { | ||
transition: all 0.3s; | ||
opacity: 1; | ||
|
||
&:hover { | ||
opacity: 0.8; | ||
} | ||
|
||
&:active { | ||
opacity: 0.6; | ||
} | ||
} | ||
|
||
.btnLoginWithGihub { | ||
@extend %-btn-base; | ||
padding: 8px 12px; | ||
background: transparent; | ||
border-radius: 10px; | ||
border: 2px solid rgba(228, 26, 112, 0.9); | ||
|
||
&:hover { | ||
box-shadow: 0 0 4px rgba(228, 26, 112, 0.9); | ||
} | ||
|
||
&:active { | ||
box-shadow: 0 0 8px rgba(228, 26, 112, 0.9); | ||
} | ||
|
||
>span { | ||
font-weight: bold; | ||
color: rgba(228, 26, 112, 0.9); | ||
} | ||
} |