hey i tried (Implement dyn. background)

This commit is contained in:
KingRainbow44 2022-05-22 23:49:59 -04:00
parent 5c57a2bde0
commit 4e24658272
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ select:focus {
}
.App {
background: url("https://webstatic.hoyoverse.com/upload/event/2020/11/04/7fd661b5184e1734f91f628b6f89a31f_7367318474207189623.png") no-repeat center center fixed;
/*background: url("https://webstatic.hoyoverse.com/upload/event/2020/11/04/7fd661b5184e1734f91f628b6f89a31f_7367318474207189623.png") no-repeat center center fixed; */
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;

View File

@ -39,7 +39,7 @@ class App extends React.Component<IProps, IState> {
optionsOpen: false,
miniDownloadsOpen: false,
downloadsOpen: false,
bgFile: '',
bgFile: 'https://webstatic.hoyoverse.com/upload/event/2020/11/04/7fd661b5184e1734f91f628b6f89a31f_7367318474207189623.png',
}
listen('lang_error', (payload) => {
@ -74,7 +74,7 @@ class App extends React.Component<IProps, IState> {
return (
<div className="App" style={
this.state.bgFile ? {
backgroundImage: `url(${this.state.bgFile})`,
background: `url(${this.state.bgFile}) no-repeat center center fixed`,
} : {}
}>
<TopBar