Skip to content

Commit 7aea86f

Browse files
authored
fix: move content to the middle and redirect to podman desktop on page load event (#75)
Signed-off-by: Denis Golovin <[email protected]>
1 parent f932641 commit 7aea86f

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

www/auth.css

+4-9
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,13 @@
99

1010
body {
1111
box-sizing: border-box;
12-
min-height: 100%;
12+
height: max-content;
1313
margin: 0;
1414
padding: 15px 30px;
1515
display: flex;
1616
flex-direction: column;
17-
}
18-
19-
.message-container {
20-
flex-grow: 1;
21-
display: flex;
22-
align-items: center;
23-
justify-content: center;
24-
margin: 0 30px;
17+
justify-content: center;
18+
align-items: center;
2519
}
2620

2721
.message {
@@ -31,6 +25,7 @@ body {
3125

3226
body.error .message {
3327
display: none;
28+
margin: 30px;
3429
}
3530

3631
body.error .error-message {

www/success.html

+15-3
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,31 @@
1010
type="text/css"
1111
href="https://unpkg.com/@patternfly/[email protected]/patternfly.min.css"
1212
/>
13+
<script lang="javascript">
14+
function onLoad() {
15+
window.location.href = 'podman-desktop://'
16+
};
17+
window.onload = onLoad;
18+
</script>
1319
</head>
1420

1521
<body>
16-
<div class="pf-c-empty-state">
22+
<div class="pf-c-empty-state" >
1723
<div class="pf-c-empty-state__content">
1824
<i class="fas fa-key pf-c-empty-state__icon" aria-hidden="true"></i>
1925
<h1 class="pf-c-title pf-m-lg">
2026
Welcome to <span id="service">Red Hat</span>
2127
</h1>
2228
<div class="pf-c-empty-state__body message">
2329
You have successfully logged in as
24-
<span style="font-weight: 700" id="login"></span>. <br />
25-
You may now close this page.
30+
<span style="font-weight: 700" id="login"></span>.
31+
</div>
32+
<div class="pf-c-empty-state__body message">
33+
Redirecting to Podman Desktop.
34+
</div>
35+
<br />
36+
<div>
37+
<button onclick="onLoad();">Go back to Podman Desktop</button>
2638
</div>
2739
<div class="pf-c-empty-state__body error-message">
2840
An error occurred while signing in:

0 commit comments

Comments
 (0)