mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 11:16:01 +00:00
json UI improvements
This commit is contained in:
@@ -1,19 +1,28 @@
|
||||
<script lang="ts">
|
||||
export let text: string;
|
||||
export let colorClass: string = 'premium-gradient';
|
||||
export let link: string;
|
||||
</script>
|
||||
|
||||
<div class="highlight {colorClass}">
|
||||
{text}
|
||||
</div>
|
||||
{#if link}
|
||||
<a class="highlight {colorClass}" href={link}>
|
||||
{text}
|
||||
</a>
|
||||
{:else}
|
||||
<div class="highlight {colorClass}">
|
||||
{text}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.highlight {
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin: 10px;
|
||||
font-size: large;
|
||||
font-weight: bold;
|
||||
border: 1px solid;
|
||||
padding: 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user