forked from external-repos/LifeTrinket
fix emergency button
This commit is contained in:
12
src/App.tsx
12
src/App.tsx
@@ -42,10 +42,13 @@ const removeLocalStorage = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const EmergencyResetButton = styled.button`
|
const EmergencyResetButton = styled.button`
|
||||||
|
width: 100vmax;
|
||||||
|
height: 100vmin;
|
||||||
|
font-size: 4vmax;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
top: 0;
|
||||||
bottom: 0;
|
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
background-color: #4e6815;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
@@ -115,7 +118,10 @@ const App = () => {
|
|||||||
wakeLock={wakeLock}
|
wakeLock={wakeLock}
|
||||||
/>
|
/>
|
||||||
<EmergencyResetButton onClick={goToStart}>
|
<EmergencyResetButton onClick={goToStart}>
|
||||||
Go To Start
|
<p>If you can see this, something is wrong.</p>
|
||||||
|
<p>Press screen to go to start.</p>
|
||||||
|
<br />
|
||||||
|
<p>If the issue persists, please inform me.</p>
|
||||||
</EmergencyResetButton>
|
</EmergencyResetButton>
|
||||||
</PlayWrapper>
|
</PlayWrapper>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user