-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pauline Didier
committed
Oct 25, 2024
1 parent
138e795
commit 30c4da8
Showing
12 changed files
with
297 additions
and
284 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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
import React from "react"; | ||
import { useIsFramed } from "../../hooks/useIsFramed"; | ||
import Grid from "@mui/material/Grid2"; | ||
|
||
export function CenteredPage({ children }) { | ||
const isFramed = useIsFramed(); | ||
export function CenteredPage({ children, marginTop = true }) { | ||
return ( | ||
<Grid | ||
container | ||
spacing={0} | ||
columns={12} | ||
spacing={2} | ||
direction="row" | ||
alignItems="center" | ||
justifyContent="center" | ||
marginTop={marginTop ? "20px" : ""} | ||
marginX={"auto"} | ||
maxWidth={"80%"} | ||
> | ||
<Grid width={"80%"} marginTop={isFramed ? "" : "84px"}> | ||
{children} | ||
</Grid> | ||
{children} | ||
</Grid> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import { Box } from "@mui/material"; | ||
|
||
export function ModelPreview({ modelId, ...props }) { | ||
return ( | ||
<iframe | ||
title="Model Preview" | ||
{...props} | ||
src={document.location.origin + "/model/" + modelId} | ||
></iframe> | ||
<Box> | ||
<iframe | ||
title="Model Preview" | ||
{...props} | ||
src={document.location.origin + "/model/" + modelId} | ||
></iframe> | ||
</Box> | ||
); | ||
} |
Oops, something went wrong.