2024-09-29 13:56:38 +02:00
|
|
|
import * as plugins from '../plugins.js';
|
2024-09-29 16:48:06 +02:00
|
|
|
import * as elements from '../elements/index.js';
|
2024-09-29 13:56:38 +02:00
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
customElement,
|
|
|
|
|
DeesElement,
|
|
|
|
|
property,
|
|
|
|
|
html,
|
|
|
|
|
cssManager,
|
|
|
|
|
unsafeCSS,
|
|
|
|
|
css,
|
|
|
|
|
type TemplateResult,
|
|
|
|
|
} from '@design.estate/dees-element';
|
2024-09-29 16:48:06 +02:00
|
|
|
import type { IdpViewcontainer } from '../views/viewcontainer.js';
|
2024-09-29 13:56:38 +02:00
|
|
|
|
|
|
|
|
@customElement('idp-welcome')
|
|
|
|
|
export class IdpWelcome extends DeesElement {
|
2024-09-29 16:48:06 +02:00
|
|
|
viewContainer: IdpViewcontainer;
|
2024-09-29 13:56:38 +02:00
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
|
super();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static styles = [
|
|
|
|
|
cssManager.defaultStyles,
|
|
|
|
|
css`
|
|
|
|
|
:host {
|
|
|
|
|
display: block;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-family: 'Geist Sans';
|
|
|
|
|
}
|
|
|
|
|
:host([hidden]) {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h1 {
|
2024-09-29 16:48:06 +02:00
|
|
|
font-family: 'Cal Sans';
|
2024-09-29 13:56:38 +02:00
|
|
|
text-align: center;
|
2024-10-01 20:03:49 +02:00
|
|
|
font-size: 24px;
|
|
|
|
|
margin: 24px auto;
|
|
|
|
|
padding: 0px 24px;
|
|
|
|
|
width: 500px;
|
2024-09-29 13:56:38 +02:00
|
|
|
letter-spacing:0.0125em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.textbox {
|
|
|
|
|
margin: 24px auto;
|
|
|
|
|
width: 500px;
|
|
|
|
|
background: #111111;
|
2024-10-01 20:03:49 +02:00
|
|
|
border-radius: 16px;
|
|
|
|
|
border-top: 1px solid ${cssManager.bdTheme('#ffffff', '#222222')};
|
2024-09-29 13:56:38 +02:00
|
|
|
padding: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.textbox dees-button {
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
}
|
|
|
|
|
`,
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public render(): TemplateResult {
|
|
|
|
|
return html`
|
|
|
|
|
<style></style>
|
|
|
|
|
<h1>idp.global</h1>
|
2024-09-29 16:48:06 +02:00
|
|
|
|
2024-09-29 13:56:38 +02:00
|
|
|
<div class="textbox">
|
2024-09-29 16:48:06 +02:00
|
|
|
Do you want to sign in or register?
|
2024-09-29 13:56:38 +02:00
|
|
|
<dees-button @click=${() => {
|
2024-09-29 16:48:06 +02:00
|
|
|
this.viewContainer.loadElement(elements.IdpLogincontainer);
|
|
|
|
|
}}>Sign In</dees-button>
|
|
|
|
|
<dees-button @click=${() => {}}>Register</dees-button>
|
2024-09-29 13:56:38 +02:00
|
|
|
</div>
|
2024-09-29 16:48:06 +02:00
|
|
|
|
2024-09-29 13:56:38 +02:00
|
|
|
<div class="textbox">
|
2024-09-29 16:48:06 +02:00
|
|
|
Do you want to use idp.global for your app?
|
|
|
|
|
<dees-button @click=${() => {}}>Open Developer Dashboard</dees-button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="textbox">
|
|
|
|
|
idp.global is a Open Source identity provider for the world wide web. You can get the code if you want to improve it.
|
|
|
|
|
<dees-button @click=${() => {
|
|
|
|
|
window.open('https://code.foss.global/idp.global/idp.global', '_blank');
|
|
|
|
|
}}>Get the code</dees-button>
|
2024-09-29 13:56:38 +02:00
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
}
|
|
|
|
|
}
|