Add calendar segment
This commit is contained in:
parent
b0353dc334
commit
020daf8a16
2 changed files with 97 additions and 3 deletions
|
|
@ -1,18 +1,21 @@
|
|||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import CSegmentCalendar from "./CSegmentCalendar.vue";
|
||||
import CSegmentText from "./CSegmentText.vue";
|
||||
|
||||
const mode = ref<"text">();
|
||||
const mode = ref<"calendar" | "text">();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="outer">
|
||||
<button v-if="mode" class="close" @click="mode = undefined">X</button>
|
||||
<CSegmentCalendar v-if="mode === 'calendar'" />
|
||||
<CSegmentText v-if="mode === 'text'" />
|
||||
<section v-else class="choose">
|
||||
<hr v-if="mode !== undefined" />
|
||||
<section>
|
||||
<p>What do you want to print?</p>
|
||||
<div class="list">
|
||||
<button @click="mode = 'text'">Calendar</button>
|
||||
<button @click="mode = 'calendar'">Calendar</button>
|
||||
<button @click="mode = 'text'">Cellular Automaton</button>
|
||||
<button @click="mode = 'text'">Chat Message</button>
|
||||
<button @click="mode = 'text'">Easter Egg</button>
|
||||
|
|
@ -55,6 +58,12 @@ const mode = ref<"text">();
|
|||
background-color: #666;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
border-top: 2px groove white;
|
||||
margin: 32px -32px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 1ch;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue