Skip to content

Commit 9b55461

Browse files
committed
Lock screen when loading Boriel BASIC
1 parent ea16800 commit 9b55461

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

apps/web/src/components/LockScreen.jsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import React from "react";
2+
import {ProgressSpinner} from "primereact/progressspinner";
23

34
export default function LockScreen() {
45
return (
56
<React.Fragment>
67
<div className="dashboard-lock-screen" style={styles.fullPage}/>
78
<div className="dashboard-lock-screen" style={styles.contentBlanker}/>
89
<div className="dashboard-lock-screen" style={styles.container}>
9-
<div className="center-screen">
10-
10+
<div className="center-screen" style={styles.centerScreen}>
11+
<ProgressSpinner/>
1112
</div>
1213
</div>
1314
</React.Fragment>
@@ -37,7 +38,7 @@ const styles = {
3738
width: '100%',
3839
height: '100vh',
3940
backgroundColor: 'black',
40-
opacity: 0.05,
41+
opacity: 0.5,
4142
display: 'none',
4243
userSelect: 'none'
4344
},
@@ -52,5 +53,12 @@ const styles = {
5253
height: '100vh',
5354
display: 'none',
5455
userSelect: 'none'
56+
},
57+
centerScreen: {
58+
display: 'flex',
59+
alignItems: 'center',
60+
justifyContent: 'center',
61+
width: '100%',
62+
height: '100%'
5563
}
5664
};

0 commit comments

Comments
 (0)