added display logic for the basic elements
This commit is contained in:
parent
a50a28622a
commit
cc5cb2782f
@ -1,6 +1,12 @@
|
|||||||
<h2 class="text-center text-2xl font-bold text-gray-800 dark:text-gray-100 pb-3">
|
<script>
|
||||||
Create new url
|
$: targetUrl = '';
|
||||||
</h2>
|
$: customShortcode = '';
|
||||||
|
$: shortcode = '';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<h2 class="text-center text-2xl font-bold text-gray-800 dark:text-gray-100 pb-3">Create new url</h2>
|
||||||
|
{#if shortcode == ''}
|
||||||
|
<div>
|
||||||
<div class="mx-auto lg:w-1/3 w-full mt-1 flex rounded-md shadow-sm">
|
<div class="mx-auto lg:w-1/3 w-full mt-1 flex rounded-md shadow-sm">
|
||||||
<input
|
<input
|
||||||
type="url"
|
type="url"
|
||||||
@ -21,11 +27,22 @@
|
|||||||
placeholder="custom_code"
|
placeholder="custom_code"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
{:else}
|
||||||
|
TODO:
|
||||||
|
{/if}
|
||||||
<div class="mt-3 mx-auto text-center lg:w-1/3 w-full">
|
<div class="mt-3 mx-auto text-center lg:w-1/3 w-full">
|
||||||
<button class="px-4 py-2 font-medium tracking-wide text-white capitalize transition-colors duration-200 transform bg-blue-600 rounded-md dark:bg-gray-900 hover:bg-blue-500 dark:hover:bg-gray-700 focus:outline-none focus:bg-blue-500 dark:focus:bg-gray-700">
|
{#if shortcode == ''}
|
||||||
|
<button
|
||||||
|
class="px-4 py-2 font-medium tracking-wide text-white capitalize transition-colors duration-200 transform bg-blue-600 rounded-md dark:bg-gray-900 hover:bg-blue-500 dark:hover:bg-gray-700 focus:outline-none focus:bg-blue-500 dark:focus:bg-gray-700"
|
||||||
|
>
|
||||||
Create shorturl
|
Create shorturl
|
||||||
</button>
|
</button>
|
||||||
<button class="px-4 py-2 font-medium tracking-wide text-white capitalize transition-colors duration-200 transform bg-blue-600 rounded-md dark:bg-gray-900 hover:bg-blue-500 dark:hover:bg-gray-700 focus:outline-none focus:bg-blue-500 dark:focus:bg-gray-700">
|
{:else}
|
||||||
|
<button
|
||||||
|
class="px-4 py-2 font-medium tracking-wide text-white capitalize transition-colors duration-200 transform bg-blue-600 rounded-md dark:bg-gray-900 hover:bg-blue-500 dark:hover:bg-gray-700 focus:outline-none focus:bg-blue-500 dark:focus:bg-gray-700"
|
||||||
|
>
|
||||||
Add another url
|
Add another url
|
||||||
</button>
|
</button>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
Loading…
x
Reference in New Issue
Block a user