From 4404b650d136382097aba6f471b80cc96c4bd787 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 21 Jan 2023 20:06:29 +1100 Subject: Adjust coloring and spacing --- src/App.vue | 10 +++++----- src/components/BaseLine.vue | 6 +++--- src/components/HelpModal.vue | 6 +++--- src/components/InfoModal.vue | 35 +++++++++++++++++++++++------------ src/components/SearchModal.vue | 4 +++- src/components/SettingsModal.vue | 24 ++++++++++++------------ src/components/TimeLine.vue | 19 ++++++++----------- src/store.ts | 26 ++++++++++++-------------- 8 files changed, 69 insertions(+), 61 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6369751..0eb07d8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,8 +2,8 @@
-

Histplorer

+

Chrona

@@ -25,13 +25,13 @@
- +
diff --git a/src/components/BaseLine.vue b/src/components/BaseLine.vue index 53ab6bd..f8227dc 100644 --- a/src/components/BaseLine.vue +++ b/src/components/BaseLine.vue @@ -4,6 +4,7 @@
{{p.label}}
+
@@ -86,7 +87,7 @@ function periodStyles(period: Period){ const labelStyles = computed((): Record => ({ transform: props.vert ? 'rotate(90deg) translate(50%, 0)' : 'none', whiteSpace: 'nowrap', - width: props.vert ? '40px' : 'auto', + width: props.vert ? '40px' : 'auto', // Chose vertical value to roughly match height in horizontal mode padding: props.vert ? '0' : '4px', })); @@ -140,11 +141,10 @@ function spanStyles(stateIdx: number){ return { ...styles, transition: skipTransition.value ? 'none' : 'all 300ms ease-out', - color: 'black', backgroundColor: store.color.alt, opacity: 0.6, borderWidth: '1px', - borderColor: store.color.bg, + borderColor: store.color.bgDark2, }; } diff --git a/src/components/HelpModal.vue b/src/components/HelpModal.vue index ab1c73d..d0fc57a 100644 --- a/src/components/HelpModal.vue +++ b/src/components/HelpModal.vue @@ -4,7 +4,7 @@ w-[90%] max-w-[16cm] max-h-[80%] overflow-auto" :style="styles"> -

Help

+

Help

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.

@@ -121,7 +121,7 @@ function onClose(evt: Event){ // ========== For styles ========== const scClasses = 'border border-stone-400 rounded'; -const scSummaryClasses = 'relative text-center p-1 bg-stone-300 hover:brightness-90 hover:bg-yellow-200 md:p-2'; +const scSummaryClasses = 'relative text-center p-1 bg-stone-300 hover:brightness-90 hover:bg-amber-200 md:p-2'; const downIconClasses = 'absolute w-6 h-6 my-auto mx-1 transition-transform duration-300'; const downIconExpandedClasses = computed(() => downIconClasses + ' -rotate-90'); const contentClasses = 'py-2 px-2 text-sm md:text-base'; @@ -132,6 +132,6 @@ const styles = computed(() => ({ })); const aStyles = computed(() => ({ - color: store.color.altDark, + color: store.color.altDark2, })); diff --git a/src/components/InfoModal.vue b/src/components/InfoModal.vue index 6b32ed0..25a1d36 100644 --- a/src/components/InfoModal.vue +++ b/src/components/InfoModal.vue @@ -2,18 +2,23 @@
+ -

+ + +

{{event.title}}

-
- Start: {{datesDisplayStrs[0]}} -
-
- End: {{datesDisplayStrs[1]}} +
+
+ Start: {{datesDisplayStrs[0]}} +
+
+ End: {{datesDisplayStrs[1]}} +
@@ -35,20 +40,20 @@
  • - Source: + Source: Link
  • - Artist: + Artist: {{eventInfo.imgInfo.artist}}
  • - Credits: + Credits: {{eventInfo.imgInfo.credit}}
  • - License: + License: