-
Notifications
You must be signed in to change notification settings - Fork 1
/
auth0-page-template.liquid
37 lines (35 loc) · 1.33 KB
/
auth0-page-template.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html><html lang="{{locale}}">
<head>
{%- auth0:head -%}
<style>
{% if application.name == "Moon App" %}
body {
background-image: url("http://localhost:3000/img/moon-landscape.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}
{% elsif application.name == "Mars App" %}
body {
background-image: url("http://localhost:3001/img/mars-landscape.png");
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}
{% endif %}
</style>
<title>{{ prompt.screen.texts.pageTitle }}</title>
</head>
<body class="_widget-auto-layout">
{%- auth0:widget -%}
</body>
<script>
{% if application.name == "Moon App" %}
document.getElementById("prompt-logo-center").src="http://localhost:3000/img/moon-logo.png";
document.querySelector("._widget button[type='submit']").style.background="#fde68a";
{% elsif application.name == "Mars App" %}
document.getElementById("prompt-logo-center").src="http://localhost:3001/img/mars-logo.png";
document.querySelector("._widget button[type='submit']").style.background="#2563eb";
{% endif %}
</script>
</html>