Add banner explaining static openscad images

This commit is contained in:
Kurt Hutten
2021-09-05 20:57:57 +10:00
parent e4c95cb396
commit 597bf89135
9 changed files with 724 additions and 643 deletions

View File

@@ -14,8 +14,6 @@ interface Props {
}
const IdeWrapper = ({ cadPackage }: Props) => {
const [shouldShowConstructionMessage, setShouldShowConstructionMessage] =
useState(true)
const { state, project } = useIdeContext()
const handleRender = useRender()
const saveCode = useSaveCode()
@@ -34,26 +32,6 @@ const IdeWrapper = ({ cadPackage }: Props) => {
<nav className="flex">
<IdeHeader handleRender={onRender} />
</nav>
{shouldShowConstructionMessage && (
<div className="py-1 md:py-2 bg-pink-200 flex">
<div className="flex-grow text-center text-xs md:text-base">
We're still working on this. Since you're here, have a look what{' '}
<OutBound
className="text-pink-700"
to="https://github.com/Irev-Dev/cadhub/discussions/212"
>
we've got planned
</OutBound>
.
</div>
<button
className="flex mr-3"
onClick={() => setShouldShowConstructionMessage(false)}
>
<Svg className="h-4 w-6 text-gray-500 items-center" name="x" />
</button>
</div>
)}
<IdeContainer />
</div>
</div>