Add back button for segments
This commit is contained in:
parent
dc64aa0bc8
commit
b0353dc334
1 changed files with 46 additions and 12 deletions
|
|
@ -6,6 +6,8 @@ const mode = ref<"text">();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<div class="outer">
|
||||||
|
<button v-if="mode" class="close" @click="mode = undefined">X</button>
|
||||||
<CSegmentText v-if="mode === 'text'" />
|
<CSegmentText v-if="mode === 'text'" />
|
||||||
<section v-else class="choose">
|
<section v-else class="choose">
|
||||||
<p>What do you want to print?</p>
|
<p>What do you want to print?</p>
|
||||||
|
|
@ -18,9 +20,41 @@ const mode = ref<"text">();
|
||||||
<button @click="mode = 'text'">Tic Tac Toe</button>
|
<button @click="mode = 'text'">Tic Tac Toe</button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.outer {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
|
||||||
|
color: white;
|
||||||
|
background-color: black;
|
||||||
|
|
||||||
|
border: 2px solid black;
|
||||||
|
border-radius: 100px;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close:hover {
|
||||||
|
background-color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close:active {
|
||||||
|
background-color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin-bottom: 1ch;
|
margin-bottom: 1ch;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue