55 lines
1.4 KiB
Handlebars
55 lines
1.4 KiB
Handlebars
<div class='min-h-screen flex flex-col justify-center py-12 sm:px-6 lg:px-8'>
|
|
<div class='sm:mx-auto sm:w-full sm:max-w-md'>
|
|
<div class='bg-base-7 py-8 px-4 mb-6'>
|
|
<form class='space-y-6' {{on 'submit' this.authenticate}}>
|
|
<Headers::H1 class='text-center' @title="MeiliAdmin"/>
|
|
|
|
<Form::Input
|
|
@label='URL'
|
|
@value={{this.url}}
|
|
@required={{true}}
|
|
@onChange={{set this 'url'}}
|
|
@placeholder='https://example.com'
|
|
/>
|
|
|
|
<Form::Input
|
|
@label='API key'
|
|
@value={{this.key}}
|
|
@onChange={{set this 'key'}}
|
|
/>
|
|
|
|
<Button
|
|
type='submit'
|
|
@text='Sign in'
|
|
@style='primary'
|
|
class='w-full flex justify-center'
|
|
/>
|
|
|
|
{{#if this.errorMessage}}
|
|
<p class="text-danger">
|
|
{{this.errorMessage}}
|
|
</p>
|
|
{{/if}}
|
|
</form>
|
|
</div>
|
|
|
|
<div class='flex items-center justify-around px-10'>
|
|
<a
|
|
href='https://www.meilisearch.com/'
|
|
title='Website Meilisearch'
|
|
class='flex items-center'
|
|
>
|
|
<img src='/logo.svg' alt='MeiliSearch' class='w-5 h-5 mr-1' />
|
|
MeiliSearch
|
|
</a>
|
|
<a
|
|
href='https://github.com/kaermorchen/meiliadmin'
|
|
title='MeiliAdmin on GitHub'
|
|
class='flex items-center'
|
|
>
|
|
<Icons::Github @size='20' class='mr-1' />
|
|
MeiliAdmin
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|