Skip to content

Commit

Permalink
fix: move content to the middle and redirect to podman desktop on pag…
Browse files Browse the repository at this point in the history
…e load event (redhat-developer#75)

Signed-off-by: Denis Golovin <[email protected]>
  • Loading branch information
dgolovin authored Mar 6, 2024
1 parent f932641 commit 7aea86f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
13 changes: 4 additions & 9 deletions www/auth.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,13 @@

body {
box-sizing: border-box;
min-height: 100%;
height: max-content;
margin: 0;
padding: 15px 30px;
display: flex;
flex-direction: column;
}

.message-container {
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
margin: 0 30px;
justify-content: center;
align-items: center;
}

.message {
Expand All @@ -31,6 +25,7 @@ body {

body.error .message {
display: none;
margin: 30px;
}

body.error .error-message {
Expand Down
18 changes: 15 additions & 3 deletions www/success.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,31 @@
type="text/css"
href="https://unpkg.com/@patternfly/[email protected]/patternfly.min.css"
/>
<script lang="javascript">
function onLoad() {
window.location.href = 'podman-desktop://'
};
window.onload = onLoad;
</script>
</head>

<body>
<div class="pf-c-empty-state">
<div class="pf-c-empty-state" >
<div class="pf-c-empty-state__content">
<i class="fas fa-key pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg">
Welcome to <span id="service">Red Hat</span>
</h1>
<div class="pf-c-empty-state__body message">
You have successfully logged in as
<span style="font-weight: 700" id="login"></span>. <br />
You may now close this page.
<span style="font-weight: 700" id="login"></span>.
</div>
<div class="pf-c-empty-state__body message">
Redirecting to Podman Desktop.
</div>
<br />
<div>
<button onclick="onLoad();">Go back to Podman Desktop</button>
</div>
<div class="pf-c-empty-state__body error-message">
An error occurred while signing in:
Expand Down

0 comments on commit 7aea86f

Please sign in to comment.