*: add theme based frontend configuration
This PR reworks the web layout so static files can be provided and a "themes" directory to allow a certain degree of control over logos, styles, etc. This PR does NOT add general support for frontend customization, only enough to allow us to start exploring theming internally. The dex binary also must now be run from the root directory since templates are no longer "compiled into" the binary. The docker image has been updated with frontend assets.
This commit is contained in:
0
web/static/main.css
Normal file
0
web/static/main.css
Normal file
@@ -3,8 +3,10 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>{{ .Issuer }}</title>
|
||||
<title>{{ issuer }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="{{ url "static/main.css" }}" rel="stylesheet">
|
||||
<link href="{{ url "theme/style.css" }}" rel="stylesheet">
|
||||
<style>
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
@@ -232,7 +234,7 @@
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<div id="navbar-logo-wrap">
|
||||
<img id="navbar-logo" src="{{ .LogoURL }}">
|
||||
<img id="navbar-logo" src="{{ logo }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{{ template "header.html" . }}
|
||||
|
||||
<div class="panel">
|
||||
<h2 class="heading">Log in to {{ .Issuer }} </h2>
|
||||
<h2 class="heading">Log in to {{ issuer }} </h2>
|
||||
|
||||
<div>
|
||||
{{ range $c := .Connectors }}
|
||||
|
BIN
web/themes/coreos/logo.png
Normal file
BIN
web/themes/coreos/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
0
web/themes/coreos/style.css
Normal file
0
web/themes/coreos/style.css
Normal file
Reference in New Issue
Block a user