This commit is contained in:
Jan Prochazka
2024-10-21 13:07:29 +02:00
parent 3fdf27f820
commit aee3a28465
3 changed files with 80 additions and 91 deletions

View File

@@ -1,5 +1,4 @@
<script lang="ts"> <script lang="ts">
import { onMount } from 'svelte';
import { useConfig } from './utility/metadataLoaders'; import { useConfig } from './utility/metadataLoaders';
import Link from './elements/Link.svelte'; import Link from './elements/Link.svelte';
import { internalRedirectTo } from './clientAuth'; import { internalRedirectTo } from './clientAuth';
@@ -26,11 +25,6 @@
errorMessage = 'Your license is expired'; errorMessage = 'Your license is expired';
expiredMessageSet = true; expiredMessageSet = true;
} }
onMount(() => {
const removed = document.getElementById('starting_dbgate_zero');
if (removed) removed.remove();
});
</script> </script>
<FormProviderCore {values}> <FormProviderCore {values}>

View File

@@ -10,11 +10,6 @@
const params = new URLSearchParams(location.search); const params = new URLSearchParams(location.search);
const error = params.get('error'); const error = params.get('error');
onMount(() => {
const removed = document.getElementById('starting_dbgate_zero');
if (removed) removed.remove();
});
</script> </script>
<SpecialPageLayout> <SpecialPageLayout>

View File

@@ -1,22 +1,13 @@
<script lang="ts"> <script lang="ts">
import { onMount } from 'svelte'; import { onMount } from 'svelte';
import { useConfig } from '../utility/metadataLoaders';
import ErrorInfo from '../elements/ErrorInfo.svelte';
import Link from '../elements/Link.svelte';
import { internalRedirectTo } from '../clientAuth';
const config = useConfig();
const params = new URLSearchParams(location.search);
const error = params.get('error');
onMount(() => { onMount(() => {
const removed = document.getElementById('starting_dbgate_zero'); const removed = document.getElementById('starting_dbgate_zero');
if (removed) removed.remove(); if (removed) removed.remove();
}); });
</script>
<div class="root theme-light theme-type-light">
<div class="text">DbGate</div> <div class="text">DbGate</div>
<div class="wrap"> <div class="wrap">
<div class="logo"> <div class="logo">
@@ -25,10 +16,14 @@
<div class="box"> <div class="box">
<slot /> <slot />
</div> </div>
</div>
</div>
<div class="bottomButtonsWrapperWrapper">
<slot name="bottom-buttons" />
</div>
</div>
</div>
<style>
.logo { .logo {
display: flex; display: flex;
margin-bottom: 1rem; margin-bottom: 1rem;
@@ -80,5 +75,10 @@
margin: 1em; margin: 1em;
font-size: xx-large; font-size: xx-large;
} }
}
.bottomButtonsWrapperWrapper {
display: flex;
flex-wrap: wrap;
width: 600px;
}
</style>