Browse Source

登录页添加背景文字

release_0.0.2
wenlele 2 years ago
parent
commit
e8d0d7c2d7
  1. BIN
      code/VideoAccess-VCMP/web/client/assets/images/background/loginBackground.gif
  2. BIN
      code/VideoAccess-VCMP/web/client/assets/images/background/loginBackground.png
  3. 13
      code/VideoAccess-VCMP/web/client/src/sections/auth/containers/login.jsx
  4. 1
      code/VideoAccess-VCMP/web/client/src/sections/example/containers/example.jsx

BIN
code/VideoAccess-VCMP/web/client/assets/images/background/loginBackground.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 791 KiB

BIN
code/VideoAccess-VCMP/web/client/assets/images/background/loginBackground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

13
code/VideoAccess-VCMP/web/client/src/sections/auth/containers/login.jsx

@ -31,7 +31,7 @@ const Login = props => {
return (
<div style={{
// height: '100vh',
// backgroundImage: "url('/assets/images/background/loginBackground.png')",
// backgroundImage: "url('/assets/images/background/loginBackground.gif')",
// backgroundSize: 'cover',
// backgroundRepeat: 'no-repeat',
// position: 'relative',
@ -44,6 +44,16 @@ const Login = props => {
src="/assets/video/login_bg.mp4"
type="video/mp4"
/>
<img src='/assets/images/background/loginBackground.gif' style={{
width: "100%",
height: 'calc(100vh - 4px)',
objectFit: "cover",
objectPosition: 'left top',
position: 'absolute',
top: 0,
left: 0,
zIndex: "5"
}} />
<div style={{
width: 446,
height: 348,
@ -53,6 +63,7 @@ const Login = props => {
position: 'absolute',
top: '33.89%',
right: '16.43%',
zIndex: "6"
}}>
<div style={{ width: 113, height: 24, marginTop: 3, marginLeft: 5 }}>
<img src="/assets/images/background/user_login.png" alt="" style={{ width: '100%', height: '100%' }} />

1
code/VideoAccess-VCMP/web/client/src/sections/example/containers/example.jsx

@ -14,6 +14,7 @@ const Example = (props) => {
// websocket 使
useEffect(() => {
console.log(socket)
if (socket) {
socket.on('TEST', function (msg) {
console.info(msg);

Loading…
Cancel
Save