owlboard-svelte/src/lib/islands/input-island-form.svelte

48 lines
1.3 KiB
Svelte
Raw Normal View History

2023-07-24 11:44:38 +01:00
<script lang="ts">
2023-07-07 11:27:28 +01:00
import Island from '$lib/islands/island.svelte';
export let variables = {
title: 'Uninitialised',
action: '/',
placeholder: 'Uninitialised',
queryName: 'uninitiailsed'
};
2023-06-15 18:19:23 +01:00
</script>
<Island {variables}>
2023-07-07 11:27:28 +01:00
<form action={variables.action}>
2023-07-07 11:29:33 +01:00
<input class="form-input" type="text" id="input-headcode" name={variables.queryName} placeholder={variables.placeholder} autocomplete="off" />
2023-07-07 11:27:28 +01:00
<br />
<button type="submit">Submit</button>
2023-07-07 11:27:28 +01:00
</form>
</Island>
2023-06-15 18:19:23 +01:00
<style>
2023-07-07 11:27:28 +01:00
.form-input {
width: 75%;
height: 32px;
margin-top: 5px;
margin-bottom: 5px;
border-radius: 50px;
border: none;
text-align: center;
2023-07-07 11:29:33 +01:00
font-family: urwgothic, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
2023-07-07 11:27:28 +01:00
text-transform: uppercase;
font-size: 15px;
2023-10-10 12:46:42 +01:00
box-shadow: var(--box-shadow);
2023-07-07 11:27:28 +01:00
}
button {
width: 50%;
margin-bottom: 5px;
margin-top: 5px;
border: none;
border-radius: 20px;
padding: 5px;
2023-07-07 11:29:33 +01:00
font-family: urwgothic, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
2023-07-07 11:27:28 +01:00
font-size: 16px;
font-weight: 400;
background-color: var(--island-button-color);
color: var(--island-link-color);
2023-10-10 12:46:42 +01:00
box-shadow: var(--box-shadow);
2023-07-07 11:27:28 +01:00
}
</style>