Skip to content

Commit 42a3668

Browse files
committed
Add background image to auth pages
1 parent c899469 commit 42a3668

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

530 KB
Loading
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
Copyright 2019 New Vector Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
'use strict';
18+
19+
const React = require('react');
20+
import sdk from 'matrix-react-sdk/lib/index';
21+
22+
module.exports = React.createClass({
23+
displayName: 'VectorAuthPage',
24+
25+
statics: {
26+
replaces: 'AuthPage',
27+
},
28+
29+
render: function() {
30+
const AuthFooter = sdk.getComponent('auth.AuthFooter');
31+
32+
const style = {
33+
background: 'center/cover fixed url(../../themes/riot/img/backgrounds/valley.jpg)',
34+
};
35+
36+
return (
37+
<div className="mx_AuthPage" style={style}>
38+
<div className="mx_AuthPage_modal">
39+
{ this.props.children }
40+
</div>
41+
<AuthFooter />
42+
</div>
43+
);
44+
},
45+
});

0 commit comments

Comments
 (0)