From 252ba131c1b7e39b535c428102e66b90cd70d665 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 28 Jan 2023 09:16:08 +1100 Subject: Shorten intro content --- src/components/IntroModal.vue | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/src/components/IntroModal.vue b/src/components/IntroModal.vue index fc79ed0..c4f5e0f 100644 --- a/src/components/IntroModal.vue +++ b/src/components/IntroModal.vue @@ -5,29 +5,25 @@ -

+

Welcome

-
-

- This is an interactive historical timeline, displaying events from - {{dateToDisplayStr(MIN_DATE)}} to {{dateToYearStr(MAX_DATE)}}. +

+

+ This is an interactive historical timeline, spanning 14 billion years ago to 2030.

-
    +
    • - Drag the screen to move the timeline + Drag the screen to move
    • Scroll or - press {{vert ? 'up and down': 'left and right'}} - to move the timeline + press {{vert ? 'up & down': 'left & right'}} + to move
    • - {{touchDevice ? 'Pinch' : 'Hold shift'}} to zoom in and out -
    • -
    • - {{touchDevice ? 'Tap' : 'Click'}} the help button for more details + {{touchDevice ? 'Pinch' : 'Hold shift'}} to zoom in & out
@@ -39,7 +35,6 @@ import {ref, computed} from 'vue'; import CloseIcon from './icon/CloseIcon.vue'; -import {MIN_DATE, MAX_DATE, dateToDisplayStr, dateToYearStr} from '../lib'; import {useStore} from '../store'; const rootRef = ref(null as HTMLDivElement | null); @@ -48,7 +43,7 @@ const closeRef = ref(null as typeof CloseIcon | null); const store = useStore(); const touchDevice = computed(() => store.touchDevice) -const props = defineProps({ +defineProps({ vert: {type: Boolean, required: true}, }); @@ -61,7 +56,7 @@ function onClose(evt: Event){ } const styles = computed(() => ({ - backgroundColor: store.color.bgAlt, + backgroundColor: store.color.bgAltDark, borderRadius: store.borderRadius + 'px', overflow: 'visible auto', })); -- cgit v1.2.3