mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-12 18:43:47 +00:00
feat(*): Improve modal functionality
This commit is contained in:
@@ -19,12 +19,30 @@
|
|||||||
<div class="modal-overlay">
|
<div class="modal-overlay">
|
||||||
<div class="modal">
|
<div class="modal">
|
||||||
<h2>Enter Your Name</h2>
|
<h2>Enter Your Name</h2>
|
||||||
<input type="text" placeholder="Your Name" bind:value={userName} on:input={handleNameChange} />
|
<p>Try clicking on someone's card...</p>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
placeholder="Your name"
|
||||||
|
bind:value={userName}
|
||||||
|
on:input={handleNameChange}
|
||||||
|
on:keydown={(event) => {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
event.preventDefault();
|
||||||
|
handleSubmit();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<button on:click={handleSubmit}>Save</button>
|
<button on:click={handleSubmit}>Save</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
p {
|
||||||
|
font-size: 12px;
|
||||||
|
font-style: italic;
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
/* Styles for the modal overlay */
|
/* Styles for the modal overlay */
|
||||||
.modal-overlay {
|
.modal-overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
Reference in New Issue
Block a user