mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-02-20 04:05:53 +00:00
hey i tried (Implement dyn. background)
This commit is contained in:
parent
5c57a2bde0
commit
4e24658272
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user