|
3 | 3 | import { ConnectButton, useConnectModal } from '@rainbow-me/rainbowkit';
|
4 | 4 | import { useContext } from 'react';
|
5 | 5 | import { useAccount } from 'wagmi';
|
6 |
| -import { homeImage } from '../../assets/base64/home-image'; |
7 | 6 | import { AuthContext } from '../../context/AuthContext';
|
8 | 7 | import { SignInProps } from '../../interfaces/web3';
|
9 | 8 | import { ButtonState } from '../../utils/enum-type-utils';
|
10 | 9 | import { LoginButton } from './LoginButton';
|
11 | 10 | import './SignIn.css';
|
12 | 11 | import { changeSignInButtonStyle } from './bl';
|
13 | 12 | import DM3Logo from './DM3Logo';
|
| 13 | +import { signInImage } from '../../assets/base64/home-image'; |
14 | 14 |
|
15 | 15 | export function SignIn(props: SignInProps) {
|
16 | 16 | const { address, isConnecting, isDisconnected, isConnected } = useAccount();
|
@@ -41,15 +41,17 @@ export function SignIn(props: SignInProps) {
|
41 | 41 | return (
|
42 | 42 | <>
|
43 | 43 | <div className="row m-0 p-0 h-100">
|
44 |
| - <div className="h-100 col-lg-7 col-md-7 col-sm-12 p-0 home-image-container background-container"> |
45 |
| - <img |
46 |
| - src={homeImage} |
47 |
| - className="img-fluid home-image w-100" |
48 |
| - /> |
49 |
| - </div> |
| 44 | + <div |
| 45 | + style={{ |
| 46 | + backgroundImage: `url(${ |
| 47 | + props.signInImage ?? signInImage |
| 48 | + })`, |
| 49 | + }} |
| 50 | + className="col-lg-7 col-md-7 col-sm-0 p-0 home-image-container background-container" |
| 51 | + ></div> |
50 | 52 | <div
|
51 | 53 | className="h-100 col-lg-5 col-md-5 col-sm-12 p-0 d-flex flex-column
|
52 |
| - justify-content-center signin-container background-container" |
| 54 | + justify-content-center background-container" |
53 | 55 | >
|
54 | 56 | <div className="d-flex justify-content-end rainbow-connect-btn">
|
55 | 57 | {isConnected ? (
|
|
0 commit comments