Skip to content

Commit

Permalink
ARC-1296: Align GesundheitsID Provider form
Browse files Browse the repository at this point in the history
  • Loading branch information
tarasvarshava committed Feb 15, 2024
1 parent d750ec2 commit 7ba62b0
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 30 deletions.
17 changes: 14 additions & 3 deletions ehealthid-rp/src/main/resources/www/common.css.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
html body {
position: relative;
width: 100%;
height: 100%;
height: 100vh;
font-family: Inter, sans-serif;
font-style: normal;
Expand All @@ -14,13 +15,22 @@ html body {
padding: 0;
}

body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

* {
box-sizing: border-box;
}

.container {
display: flex;
flex-direction: column;
max-width: 400px;
margin: 1em auto 2em;
padding: 20px;
border-radius: 12px;
Expand All @@ -38,11 +48,12 @@ a {

@media (max-width: 500px) {
.container {
margin: 0 auto;
height: 100%;
border: none;
}

html body {
height: 100svh;
background: #FFF;
}
}
28 changes: 18 additions & 10 deletions ehealthid-rp/src/main/resources/www/select-idp.html.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
{{$head}}
<style>
.form-inline {
flex: 1;
display: flex;
flex-flow: row wrap;
flex-direction: column;
align-items: stretch;
justify-content: space-between;
}
.form-inline .provider-wrapper {
margin: auto 0;
}
.form-inline label {
Expand All @@ -19,9 +23,10 @@
}
.form-inline select, .form-inline input {
vertical-align: middle;
padding: 0 16px;
width: 100%;
height: 40px;
padding: 0 16px;
margin: 10px 0;
border-radius: 8px;
Expand All @@ -36,6 +41,7 @@
}
.form-inline select {
outline: none;
font-weight: 400;
}
Expand All @@ -56,12 +62,14 @@
{{$body}}
<h1>GesundheitsID</h1>
<form action="/auth/select-idp" method="post" class="form-inline">
<label for="idp-selection">Select your GesundheitsID Provider</label>
<select name="identityProvider" id="idp-selection">
{{#identityProviders}}
<option value="{{iss}}">{{name}}</option>
{{/identityProviders}}
</select>
<div class="provider-wrapper">
<label for="idp-selection">Select your GesundheitsID Provider</label>
<select name="identityProvider" id="idp-selection">
{{#identityProviders}}
<option value="{{iss}}">{{name}}</option>
{{/identityProviders}}
</select>
</div>
<input type="submit" value="Login">
</form>
{{/body}}
Expand Down
17 changes: 14 additions & 3 deletions ehealthid-rp/src/test/resources/fixtures/pages_golden_error.bin
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
<style>
html body {
position: relative;

width: 100%;
height: 100%;
height: 100vh;

font-family: Inter, sans-serif;
font-style: normal;
Expand All @@ -21,13 +22,22 @@
padding: 0;
}

body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

* {
box-sizing: border-box;
}

.container {
display: flex;
flex-direction: column;

max-width: 400px;
margin: 1em auto 2em;
padding: 20px;

border-radius: 12px;
Expand All @@ -45,11 +55,12 @@ a {

@media (max-width: 500px) {
.container {
margin: 0 auto;
height: 100%;
border: none;
}

html body {
height: 100svh;
background: #FFF;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
<style>
html body {
position: relative;

width: 100%;
height: 100%;
height: 100vh;

font-family: Inter, sans-serif;
font-style: normal;
Expand All @@ -21,13 +22,22 @@
padding: 0;
}

body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

* {
box-sizing: border-box;
}

.container {
display: flex;
flex-direction: column;

max-width: 400px;
margin: 1em auto 2em;
padding: 20px;

border-radius: 12px;
Expand All @@ -45,22 +55,27 @@ a {

@media (max-width: 500px) {
.container {
margin: 0 auto;
height: 100%;
border: none;
}

html body {
height: 100svh;
background: #FFF;
}
}

</style>
<style>
.form-inline {
flex: 1;
display: flex;
flex-flow: row wrap;
flex-direction: column;
align-items: stretch;
justify-content: space-between;
}

.form-inline .provider-wrapper {
margin: auto 0;
}

.form-inline label {
Expand All @@ -74,9 +89,10 @@ a {
}

.form-inline select, .form-inline input {
vertical-align: middle;
padding: 0 16px;
width: 100%;
height: 40px;

padding: 0 16px;
margin: 10px 0;

border-radius: 8px;
Expand All @@ -91,6 +107,7 @@ a {
}

.form-inline select {
outline: none;
font-weight: 400;
}

Expand All @@ -113,13 +130,15 @@ a {
<div class="container">
<h1>GesundheitsID</h1>
<form action="/auth/select-idp" method="post" class="form-inline">
<label for="idp-selection">Select your GesundheitsID Provider</label>
<select name="identityProvider" id="idp-selection">
<option value="https://a.example.com">AoK Tesfalen</option>
<option value="https://d.example.com">Barmer</option>
<option value="https://b.example.com">Siemens</option>
<option value="https://c.example.com">Zuse</option>
</select>
<div class="provider-wrapper">
<label for="idp-selection">Select your GesundheitsID Provider</label>
<select name="identityProvider" id="idp-selection">
<option value="https://a.example.com">AoK Tesfalen</option>
<option value="https://d.example.com">Barmer</option>
<option value="https://b.example.com">Siemens</option>
<option value="https://c.example.com">Zuse</option>
</select>
</div>
<input type="submit" value="Login">
</form>

Expand Down

0 comments on commit 7ba62b0

Please sign in to comment.