Skip to content

Commit

Permalink
Layout Preferences Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
khaled-0 committed Jan 7, 2024
1 parent 8197518 commit e1fe19a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/lib/components/Interaction/Interaction.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
showPlayerScoreDetails: { player: Player; score: PlayerScore };
preferenceClicked: void;
}>();
let boardHint: boolean = true;
</script>

<div class="interaction-area global-container-bg">
Expand Down
26 changes: 21 additions & 5 deletions src/lib/components/Preference/PreferenceDialog.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
<script lang="ts">
import { createEventDispatcher } from 'svelte';
// import { createEventDispatcher } from 'svelte';
import Preference from './Preference.svelte';
export let dialog: HTMLDialogElement;
const dispatch = createEventDispatcher<{}>();
// const dispatch = createEventDispatcher<{}>();
</script>

<dialog bind:this={dialog}>
<h2>Preference</h2>
<!-- https://svelte.dev/repl/885653f873284f7880490dcdd1200238?version=3.48.0 -->

<dialog bind:this={dialog} class="global-subcontainer-bg">
<div class="title">
<span>Preferences</span>
<button class="rounded-xl h-6 w-6 bg-red-600 border-2" on:click={() => dialog.close()} />
</div>
<Preference />
</dialog>

<!-- https://svelte.dev/repl/885653f873284f7880490dcdd1200238?version=3.48.0 -->
<style lang="postcss">
dialog {
@apply w-9/12 large:w-5/12 h-5/6 large:h-3/6;
@apply p-4 rounded-xl;
@apply dark:text-platinum-800 text-rich_black-100;
}
.title {
@apply text-xl;
@apply flex gap-4 justify-between items-center;
}
</style>

0 comments on commit e1fe19a

Please sign in to comment.