Skip to content

Commit

Permalink
EPA-166: [ehealthid] Add logo to login button (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrichner-oviva authored Nov 7, 2024
1 parent 59559d9 commit 15ba1ee
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 51 deletions.
23 changes: 23 additions & 0 deletions ehealthid-rp/src/main/resources/www/GID_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 29 additions & 28 deletions ehealthid-rp/src/main/resources/www/select-idp.html.mustache
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{{<layout.html.mustache}}
{{$head}}
<style>
.form-inline {
{{$head}}
<style>
.form-inline {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
}
.form-inline .provider-wrapper {
.form-inline .provider-wrapper {
margin: auto 0;
}
}
.form-inline label {
.form-inline label {
margin: 0 10px 4px 0;
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 150%; /* 21px */
letter-spacing: 0.15px;
}
}
.form-inline select, .form-inline input {
.form-inline select, .form-inline input {
width: 100%;
height: 40px;
Expand All @@ -38,39 +38,40 @@
font-weight: 600;
line-height: 150%; /* 21px */
letter-spacing: 0.15px;
}
}
.form-inline select {
.form-inline select {
outline: none;
font-weight: 400;
}
}
.form-inline input[type=submit] {
.form-inline input[type=submit] {
padding: 10px 20px;
cursor: pointer;
background: #00A88F;
color: white;
border-radius: 24px;
}
.form-inline input[type=submit]:hover, .form-inline input[type=submit]:active {
background: #00A88F url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogICAgIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgIDxkZWZzPgogICAgICAgIDx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TEwLjA3Wm0tMjE1Ljg0LTQ4LjYxdi0yMS4xMWwuMDItNC4xNGMwLTM4LDIyLjM3LTcyLjg4LDU2Ljk5LTg4Ljg2LDUuMDUtMi4zMyw3LjI1LTguMzIsNC45Mi0xMy4zNy0yLjMzLTUuMDUtOC4zMS03LjI1LTEzLjM3LTQuOTItNDEuNzMsMTkuMjctNjguNjksNjEuMzMtNjguNjksMTA3LjA5bC0uMDIsMjUuMzFjMCw1LjU2LDQuNTEsMTAuMDcsMTAuMDcsMTAuMDdzMTAuMDctNC41MSwxMC4wNy0xMC4wN1oiLz4KICAgICAgICA8L2NsaXBQYXRoPgogICAgPC9kZWZzPgogICAgPGcgY2xhc3M9ImNscy0xIj4KICAgICAgICA8ZyBjbGFzcz0iY2xzLTUiPgogICAgICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNjk1IiBoZWlnaHQ9Ijg0OSIgZmlsbD0id2hpdGUiLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==) no-repeat 12px 0;
}
.form-inline input[type=submit]:hover, .form-inline input[type=submit]:active {
background-color: rgba(0, 168, 143, 0.92);
}
</style>
{{/head}}
{{$body}}
<form action="/auth/select-idp" method="post" class="form-inline">
<div class="provider-wrapper">
}
</style>
{{/head}}
{{$body}}
<form action="/auth/select-idp" method="post" class="form-inline">
<div class="provider-wrapper">
<h1>GesundheitsID</h1>
<label for="idp-selection">{{#trans}}idp.selection{{/trans}}</label>
<select name="identityProvider" id="idp-selection">
{{#identityProviders}}
{{#identityProviders}}
<option value="{{iss}}">{{name}}</option>
{{/identityProviders}}
{{/identityProviders}}
</select>
</div>
<input type="submit" value="{{#trans}}idp.login{{/trans}}">
</form>
{{/body}}
</div>
<input type="submit" value="{{#trans}}idp.login{{/trans}}">
</form>
{{/body}}
{{/layout.html.mustache}}
Original file line number Diff line number Diff line change
Expand Up @@ -65,29 +65,29 @@ a {
}

</style>
<style>
.form-inline {
<style>
.form-inline {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
}

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

.form-inline label {
.form-inline label {
margin: 0 10px 4px 0;

font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 150%; /* 21px */
letter-spacing: 0.15px;
}
}

.form-inline select, .form-inline input {
.form-inline select, .form-inline input {
width: 100%;
height: 40px;

Expand All @@ -103,32 +103,33 @@ a {
font-weight: 600;
line-height: 150%; /* 21px */
letter-spacing: 0.15px;
}
}

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

.form-inline input[type=submit] {
.form-inline input[type=submit] {
padding: 10px 20px;
cursor: pointer;
background: #00A88F;
color: white;

border-radius: 24px;
}

.form-inline input[type=submit]:hover, .form-inline input[type=submit]:active {
background: #00A88F url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogICAgIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgIDxkZWZzPgogICAgICAgIDxzdHlsZT4KICAgICAgICAgICAgLmNscy0xIHsKICAgICAgICAgICAgY2xpcC1wYXRoOiB1cmwoI2NsaXBwYXRoKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgLmNscy01IHsKICAgICAgICAgICAgY2xpcC1wYXRoOiB1cmwoI2NsaXBwYXRoLTEpOwogICAgICAgICAgICB9CiAgICAgICAgPC9zdHlsZT4KICAgICAgICA8Y2xpcFBhdGggaWQ9ImNsaXBwYXRoIj4KICAgICAgICAgICAgPHBhdGggZD0ibTI1Niw0NTQuMDNjLTg5LjA1LDAtMTYxLjUtNzIuNDUtMTYxLjUtMTYxLjV2LTczLjg2YzAtODkuMDUsNzIuNDUtMTYxLjUsMTYxLjUtMTYxL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ICA8ZyBjbGFzcz0iY2xzLTUiPgogICAgICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNjk1IiBoZWlnaHQ9Ijg0OSIgZmlsbD0id2hpdGUiLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==) no-repeat 12px 0;
}

.form-inline input[type=submit]:hover, .form-inline input[type=submit]:active {
background-color: rgba(0, 168, 143, 0.92);
}
</style>
}
</style>

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

</div>
</body>
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
<version.handlebars>4.3.1</version.handlebars>

<spotless-maven-plugin.version>2.43.0</spotless-maven-plugin.version>
<spotless-maven-plugin.google-java-format.version>1.18.1</spotless-maven-plugin.google-java-format.version>
<jacoco.version>0.8.12</jacoco.version>

<maven-shade.version>3.6.0</maven-shade.version>
Expand Down

0 comments on commit 15ba1ee

Please sign in to comment.