Skip to content

Commit

Permalink
Ajout d'une version étroite de l'iframe pour montrer et tester le mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
laem committed Oct 22, 2024
1 parent a28f9c6 commit b012605
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion app/module/AmpleurDemonstration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function () {
text-align: center;
`}
>
<h3>Le module de simulation que verra l'usager</h3>
<h3>Le module de simulation que verra l'usager sur écran large</h3>
<iframe
src={
getAppUrl() +
Expand All @@ -114,6 +114,29 @@ export default function () {
box-shadow: var(--shadow-elevation-medium);
`}
></iframe>
<h3>... et sur écran mobile</h3>
<iframe
src={
getAppUrl() +
'/module/integration?' +
new URLSearchParams(searchParams).toString()
}
css={`
border: none;
border-radius: 0.4rem;
margin: 3rem auto;
height: 800px;
width: 370px;
max-width: 90vw;
--shadow-color: 0deg 0% 63%;
--shadow-elevation-medium: 0.3px 0.5px 0.7px
hsl(var(--shadow-color) / 0.36),
0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.36),
2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.36),
5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.36);
box-shadow: var(--shadow-elevation-medium);
`}
></iframe>
</section>
</div>
</section>
Expand Down

0 comments on commit b012605

Please sign in to comment.