Skip to content

Commit 4bba657

Browse files
committed
docs: landing cards of login and OAuth are drawn on DialogPanel, the OAuth card shows the provider icons in one row under an or divider AdminForth/2005
1 parent a628f7c commit 4bba657

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

‎documentation/static/landing-previews/login.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<div class="screen" style="display: flex">
1111
<img src="login-bg.jpg" alt="" style="width: 50%; height: 100%; object-fit: cover">
1212
<div class="center" style="flex: 1">
13-
<div style="width: 328px; background: var(--surface); border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1)">
14-
<div style="padding: 20px; border-bottom: 1px solid var(--border)">
15-
<h3 style="font-size: 20px; line-height: 28px; font-weight: 600">Sign in to My Admin</h3>
13+
<div style="width: 328px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xs)">
14+
<div style="padding: 20px 24px; border-bottom: 1px solid var(--border)">
15+
<h3 style="font-size: 18px; line-height: 24px; font-weight: 600">Sign in to My Admin</h3>
1616
</div>
17-
<div style="padding: 20px; display: flex; flex-direction: column; gap: 16px; font-size: 14px">
17+
<div style="padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; font-size: 14px">
1818
<div>
1919
<div style="margin-bottom: 8px; font-weight: 500">Your email</div>
2020
<div class="input" style="color: var(--faint)">name@company.com</div>

‎documentation/static/landing-previews/oauth.html‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@
55
<title>OAuth sign-in</title>
66
<link rel="stylesheet" href="previews.css">
77
<style>
8-
.oauth { width: 44px; height: 44px; }
9-
.oauth svg { width: 20px; height: 20px; }
8+
.or { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
9+
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
10+
.oauth { width: auto; }
11+
.oauth svg { width: 18px; height: 18px; }
1012
</style>
1113
</head>
1214
<body>
13-
<!-- core LoginView with the provider buttons of the OAuth plugin (iconOnly) under the login button -->
15+
<!-- core LoginView on DialogPanel with the provider buttons of the OAuth plugin (iconOnly) under an "or" divider -->
1416
<div class="screen center">
15-
<div style="width: 368px; background: var(--surface); border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1)">
16-
<div style="padding: 20px; border-bottom: 1px solid var(--border)">
17-
<h3 style="font-size: 20px; line-height: 28px; font-weight: 600">Sign in to My Admin</h3>
17+
<div style="width: 368px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xs)">
18+
<div style="padding: 20px 24px; border-bottom: 1px solid var(--border)">
19+
<h3 style="font-size: 18px; line-height: 24px; font-weight: 600">Sign in to My Admin</h3>
1820
</div>
19-
<div style="padding: 20px; display: flex; flex-direction: column; gap: 16px; font-size: 14px">
21+
<div style="padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; font-size: 14px">
2022
<div>
2123
<div style="margin-bottom: 8px; font-weight: 500">Your email</div>
2224
<div class="input">adminforth</div>
@@ -25,9 +27,9 @@ <h3 style="font-size: 20px; line-height: 28px; font-weight: 600">Sign in to My A
2527
<div style="margin-bottom: 8px; font-weight: 500">Your password</div>
2628
<div class="input" style="justify-content: space-between; letter-spacing: 2px">••••••••••<svg class="i"><use href="icons.svg#eye"/></svg></div>
2729
</div>
28-
<div style="display: flex; align-items: center; gap: 8px; color: var(--text-2)"><input class="cb" type="checkbox" checked>Remember me</div>
2930
<div class="btn btn-primary">Login to your account</div>
30-
<div style="display: flex; justify-content: center; gap: 12px">
31+
<div class="or">or continue with</div>
32+
<div style="display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px">
3133
<div class="btn btn-secondary btn-icon oauth" style="color: var(--text)"><svg><use href="brands.svg#github"/></svg></div>
3234
<div class="btn btn-secondary btn-icon oauth"><svg><use href="brands.svg#google"/></svg></div>
3335
<div class="btn btn-secondary btn-icon oauth"><svg><use href="brands.svg#facebook"/></svg></div>

0 commit comments

Comments
 (0)