Update auth templates to use general assets, update auth background
This commit is contained in:
parent
227cd24936
commit
43ddaf1e56
BIN
assets/src/release-background.png
Normal file
BIN
assets/src/release-background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 624 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 562 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB |
@ -7,5 +7,5 @@
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask.js" integrity="sha512-0XDfGxFliYJPFrideYOoxdgNIvrwGTLnmK20xZbCAvPfLGQMzHUsaqZK8ZoH+luXGRxTrS46+Aq400nCnAT0/w==" crossorigin="anonymous"></script>
|
||||
<script src="{{ links.Assets }}/script.js?{{ buildtime }}"></script>
|
||||
<script src="{{ links.AuthAssets }}/script.js?{{ buildtime }}"></script>
|
||||
</html>
|
||||
|
||||
@ -11,10 +11,10 @@
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
|
||||
<!-- Custom CSS -->
|
||||
<link href="{{ links.Assets }}/style.css?{{ buildtime }}" rel="stylesheet">
|
||||
<link href="{{ links.AuthAssets }}/style.css?{{ buildtime }}" rel="stylesheet">
|
||||
<title>Corteza</title>
|
||||
</head>
|
||||
<body style="background: url({{ links.Assets }}/background.jpeg) no-repeat top;background-size: cover;background-attachment: fixed;">
|
||||
<body style="background: url({{ links.Assets }}/release-background.png) no-repeat top;background-size: cover;background-attachment: fixed;">
|
||||
{{ if .user }}
|
||||
<div class="position-absolute user text-white m-2">
|
||||
<a class="font-weight-bold text-white" href="{{ links.Base }}"><i class="bi bi-grid-3x2-gap-fill text-white mr-1 align-middle" style="font-size: 1.4rem;"></i></a>
|
||||
|
||||
@ -43,7 +43,9 @@ type (
|
||||
|
||||
Base,
|
||||
|
||||
Assets string
|
||||
Assets,
|
||||
|
||||
AuthAssets string
|
||||
}
|
||||
)
|
||||
|
||||
@ -87,8 +89,9 @@ func GetLinks() Links {
|
||||
SamlMetadata: b + "auth/external/saml/metadata",
|
||||
SamlLogout: b + "auth/external/saml/slo",
|
||||
|
||||
Assets: b + "auth/assets/public",
|
||||
Base: b,
|
||||
Assets: b + "assets",
|
||||
AuthAssets: b + "auth/assets/public",
|
||||
Base: b,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user