databricks-cli/libs/auth/page.tmpl

102 lines
6.9 KiB
Cheetah

<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<title>{{if .Error }}{{ .Error | title }}{{ else }}Success{{end}}</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=DM+Sans&display=swap" rel="stylesheet" />
<style>
html,
body {
height: 100%;
}
body {
font-family: "DM Sans";
font-style: normal;
font-size: 14px;
margin: 0;
padding: 0;
height: 100%;
width: 100%;
background: #f5f6f6;
align-items: center;
}
.root-container {
display: flex;
height: 100%;
align-items: center;
justify-content: center;
}
.info-container {
width: 320px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1),
0px 8px 25px rgba(0, 0, 0, 0.1);
border-radius: 8px;
display: flex;
flex-direction: column;
padding: 48px;
background: #fff;
justify-content: center;
align-items: center;
text-align: center;
gap: 24px;
}
.title {
font-weight: 600;
font-size: 24px;
line-height: 28px;
}
a {
color: #C4CCD6;
}
a:hover {
color: #90A5B1;
}
.content {
width: 300px;
font-size: 14px;
}
.button {
display: flex;
background: #1B3139;
align-items: center;
justify-content: center;
height: 40px;
width: 300px;
border-radius: 4px;
text-align: center;
text-decoration: none;
color: #ffffff !important;
}
</style>
</head>
<body>
<div class="root-container">
<div class="info-container">
<img
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDcxMi43NyAxMTIuOTciPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZD0iTTAgMGg3MjUuMzN2MTEyLjk3SDB6IiBzdHlsZT0iZmlsbDpub25lIi8+PC9jbGlwUGF0aD48L2RlZnM+PHBhdGggZD0iTTAgMjkuNDR2My40bDUyLjEzIDI5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 .ErrorDescription }}</div>
<!-- {{ else }} -->
<div class="title">Authenticated</div>
<div class="content">Go to <a href="https://{{.Host}}">{{.Host}}</a></div>
<!-- {{ end }} -->
<div class="content">
You can close this tab. Or go to <a href="https://docs.databricks.com/dev-tools/index-cli.html">documentation</a>
</div>
</div>
</div>
</body>
</html>