mirror of
https://github.com/mue/mue.git
synced 2026-07-21 07:54:13 +02:00
feat: add preview mue button to welcome modal
This commit is contained in:
11
src/components/helpers/preview/Preview.jsx
Normal file
11
src/components/helpers/preview/Preview.jsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import './preview.scss';
|
||||
|
||||
export default function Preview(props) {
|
||||
return (
|
||||
<div className='preview'>
|
||||
<h3>NOTICE</h3>
|
||||
<h1>You are currently in preview mode. Settings will be reset on closing this tab.</h1>
|
||||
<button className='uploadbg' onClick={() => props.setup()}>Continue Setup</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
15
src/components/helpers/preview/preview.scss
Normal file
15
src/components/helpers/preview/preview.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
.preview {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
padding: 15px;
|
||||
color: var(--modal-text);
|
||||
background: var(--background);
|
||||
max-width: 300px;
|
||||
border-radius: 0.7em;
|
||||
z-index: 999;
|
||||
|
||||
h1 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user