Skip to content

Commit bf0b2ea

Browse files
committed
Add glass effect
1 parent 42a3668 commit bf0b2ea

1 file changed

Lines changed: 29 additions & 4 deletions

File tree

‎src/components/views/auth/VectorAuthPage.js‎

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,39 @@ module.exports = React.createClass({
2929
render: function() {
3030
const AuthFooter = sdk.getComponent('auth.AuthFooter');
3131

32-
const style = {
32+
const pageStyle = {
3333
background: 'center/cover fixed url(../../themes/riot/img/backgrounds/valley.jpg)',
3434
};
3535

36+
const modalStyle = {
37+
position: 'relative',
38+
background: 'initial',
39+
};
40+
41+
const blurStyle = {
42+
position: 'absolute',
43+
top: 0,
44+
right: 0,
45+
bottom: 0,
46+
left: 0,
47+
filter: 'blur(10px)',
48+
background: pageStyle.background,
49+
};
50+
51+
const modalContentStyle = {
52+
display: 'flex',
53+
zIndex: 1,
54+
background: 'rgba(255, 255, 255, 0.59)',
55+
borderRadius: '4px',
56+
};
57+
3658
return (
37-
<div className="mx_AuthPage" style={style}>
38-
<div className="mx_AuthPage_modal">
39-
{ this.props.children }
59+
<div className="mx_AuthPage" style={pageStyle}>
60+
<div className="mx_AuthPage_modal" style={modalStyle}>
61+
<div className="mx_AuthPage_modalBlur" style={blurStyle}></div>
62+
<div className="mx_AuthPage_modalContent" style={modalContentStyle}>
63+
{ this.props.children }
64+
</div>
4065
</div>
4166
<AuthFooter />
4267
</div>

0 commit comments

Comments
 (0)