mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 00:24:45 +01:00
hey i tried (Implement dyn. background)
This commit is contained in:
@@ -27,7 +27,7 @@ select:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.App {
|
.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;
|
-webkit-background-size: cover;
|
||||||
-moz-background-size: cover;
|
-moz-background-size: cover;
|
||||||
-o-background-size: cover;
|
-o-background-size: cover;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class App extends React.Component<IProps, IState> {
|
|||||||
optionsOpen: false,
|
optionsOpen: false,
|
||||||
miniDownloadsOpen: false,
|
miniDownloadsOpen: false,
|
||||||
downloadsOpen: false,
|
downloadsOpen: false,
|
||||||
bgFile: '',
|
bgFile: 'https://webstatic.hoyoverse.com/upload/event/2020/11/04/7fd661b5184e1734f91f628b6f89a31f_7367318474207189623.png',
|
||||||
}
|
}
|
||||||
|
|
||||||
listen('lang_error', (payload) => {
|
listen('lang_error', (payload) => {
|
||||||
@@ -74,7 +74,7 @@ class App extends React.Component<IProps, IState> {
|
|||||||
return (
|
return (
|
||||||
<div className="App" style={
|
<div className="App" style={
|
||||||
this.state.bgFile ? {
|
this.state.bgFile ? {
|
||||||
backgroundImage: `url(${this.state.bgFile})`,
|
background: `url(${this.state.bgFile}) no-repeat center center fixed`,
|
||||||
} : {}
|
} : {}
|
||||||
}>
|
}>
|
||||||
<TopBar
|
<TopBar
|
||||||
|
|||||||
Reference in New Issue
Block a user