diff --git a/frontend/header/css/header.css b/frontend/header/css/header.css index 376eba5..498e946 100644 --- a/frontend/header/css/header.css +++ b/frontend/header/css/header.css @@ -1,8 +1,16 @@ body { + display: flex; + flex-direction: column; font-family: system-ui; + height: 100dvh; margin: 0; } +.content { + border: 0; + flex: 1; +} + .header { background-color: #202020; box-sizing: border-box; diff --git a/frontend/header/header.html b/frontend/header/header.html index e3c3cee..6711f8b 100644 --- a/frontend/header/header.html +++ b/frontend/header/header.html @@ -13,6 +13,7 @@ + Instant Workstation @@ -35,8 +36,10 @@ - Account + Account + + \ No newline at end of file diff --git a/frontend/header/legacy-integration.js b/frontend/header/legacy-integration.js new file mode 100644 index 0000000..25c9567 --- /dev/null +++ b/frontend/header/legacy-integration.js @@ -0,0 +1,6 @@ +const payment = new URLSearchParams(window.location.search).get("payment"); + +if (payment === "success" || payment === "failure") { + document.querySelector(".content").src = + `/app/virtual-machines?payment=${payment}`; +} \ No newline at end of file