-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unavailable overlay for sidebar forms and temp panels on nav
- Loading branch information
1 parent
90f8b48
commit b109943
Showing
10 changed files
with
157 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
|
||
.tabContainer { | ||
flex-wrap: nowrap; | ||
position: relative; | ||
} | ||
|
||
.tabWrapper { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (C) 2024 PixieBrix, Inc. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import React from "react"; | ||
import styles from "./unavailableOverlay.module.scss"; | ||
import cx from "classnames"; | ||
import { Button, Modal } from "react-bootstrap"; | ||
|
||
const UnavailableOverlay = () => ( | ||
<div className={styles["unavailable-overlay"]}> | ||
<div | ||
className={cx("modal show position-static w-auto h-auto")} | ||
style={{ display: "block", marginTop: "10vh" }} | ||
> | ||
<Modal.Dialog | ||
size={"sm"} | ||
className={cx(styles["modal-dialog"], "shadow text-center")} | ||
> | ||
<Modal.Header className={styles["modal-header"]}> | ||
<strong>Panel not available on this page</strong> | ||
</Modal.Header> | ||
|
||
<Modal.Body className={styles["modal-body"]}> | ||
<p>The browser navigated away from the page</p> | ||
<Button variant="primary" className={styles["modal-button"]}> | ||
Close | ||
</Button> | ||
</Modal.Body> | ||
</Modal.Dialog> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default UnavailableOverlay; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/*! | ||
* Copyright (C) 2024 PixieBrix, Inc. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
.unavailable-overlay { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(255, 255, 255, 0.5); | ||
display: flex; | ||
justify-content: center; | ||
align-items: flex-start; | ||
backdrop-filter: blur(2.5px); | ||
pointer-events: all; | ||
} | ||
|
||
.modal-dialog { | ||
margin: 23px; | ||
padding: 16px; | ||
border-radius: 12px; | ||
background: white; | ||
border: 1px solid #cfcbd6; | ||
> div { | ||
border: 0; | ||
} | ||
} | ||
|
||
.modal-header { | ||
display: block; | ||
padding-bottom: 0; | ||
background: white; | ||
border: 0; | ||
} | ||
|
||
.modal-body { | ||
background: white; | ||
border: 0; | ||
} | ||
|
||
.modal-button { | ||
border-radius: 4px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters