From 1da5938ff29bc05c81208d4914d9c5e12846454a Mon Sep 17 00:00:00 2001 From: Steph <35910788+huynhicode@users.noreply.github.com> Date: Tue, 23 Jul 2024 16:28:50 -0700 Subject: [PATCH 1/5] update product hunt content --- src/lib/components/Navbar.svelte | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 53da4e7b..6f3737fc 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -88,17 +88,23 @@ Mermaidv{version} Live Editor - + - + class="decoration font-semibold underline decoration-orange-500 decoration-2 underline-offset-4"> + We're live on Product Hunt! + + + + + Date: Mon, 29 Jul 2024 00:27:48 -0700 Subject: [PATCH 2/5] remove product hunt text and badge --- src/lib/components/Navbar.svelte | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 6f3737fc..96340b6c 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -88,23 +88,6 @@ Mermaidv{version} Live Editor - - - We're live on Product Hunt! - - - - - Date: Tue, 6 Aug 2024 04:26:43 -0700 Subject: [PATCH 3/5] update promo bar --- src/lib/util/promos/August2024.svelte | 54 ++++++++++++++++++++++++++ src/lib/util/promos/Holiday2023.svelte | 7 ---- src/lib/util/promos/Jan2024.svelte | 25 ------------ src/lib/util/promos/promo.ts | 15 ++----- tailwind.config.cjs | 17 +++++++- 5 files changed, 74 insertions(+), 44 deletions(-) create mode 100644 src/lib/util/promos/August2024.svelte delete mode 100644 src/lib/util/promos/Holiday2023.svelte delete mode 100644 src/lib/util/promos/Jan2024.svelte diff --git a/src/lib/util/promos/August2024.svelte b/src/lib/util/promos/August2024.svelte new file mode 100644 index 00000000..7a9b54e1 --- /dev/null +++ b/src/lib/util/promos/August2024.svelte @@ -0,0 +1,54 @@ + + +{#key currentTagline} + + {currentTagline.label} + Try it now + +{/key} diff --git a/src/lib/util/promos/Holiday2023.svelte b/src/lib/util/promos/Holiday2023.svelte deleted file mode 100644 index b723ac3e..00000000 --- a/src/lib/util/promos/Holiday2023.svelte +++ /dev/null @@ -1,7 +0,0 @@ - - Get AI, team collaboration, storage, and more with - Mermaid Chart Pro. Start free trial today & get 25% off. - diff --git a/src/lib/util/promos/Jan2024.svelte b/src/lib/util/promos/Jan2024.svelte deleted file mode 100644 index 3d3a662c..00000000 --- a/src/lib/util/promos/Jan2024.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - - {tagline} - Try it now - diff --git a/src/lib/util/promos/promo.ts b/src/lib/util/promos/promo.ts index 20e540a8..45630714 100644 --- a/src/lib/util/promos/promo.ts +++ b/src/lib/util/promos/promo.ts @@ -1,7 +1,6 @@ import { writable, type Writable, get } from 'svelte/store'; import { persist, localStorage } from '../persist'; -import Holiday2023 from './Holiday2023.svelte'; -import Jan2024 from './Jan2024.svelte'; +import August2024 from './August2024.svelte'; interface Promotion { id: string; @@ -12,16 +11,10 @@ interface Promotion { const promotions: Promotion[] = [ { - id: 'holiday-2023', - startDate: new Date('2023-11-27'), - endDate: new Date('2024-01-09'), - component: Holiday2023 - }, - { - id: 'jan-2024', - startDate: new Date('2024-01-10'), + id: 'promo-2024', + startDate: new Date('2024-08-01'), endDate: new Date('2024-12-31'), - component: Jan2024 + component: August2024 } ]; diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 18cb32c1..d2b0cd08 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -2,7 +2,22 @@ module.exports = { plugins: [require('daisyui')], content: ['./src/**/*.{html,js,svelte,ts}'], theme: { - extend: {} + extend: { + keyframes: { + fadeIn: { + '0%': { opacity: '0' }, + '100%': { opacity: '1' } + }, + fadeOut: { + '0%': { opacity: '1' }, + '100%': { opacity: '0' } + } + }, + animation: { + fadeIn: 'fadeIn 1s ease-in', + fadeOut: 'fadeOut 1s ease-in' + } + } }, variants: { extend: {} From 2916eaedaaccfee00cf140610c5934fba074667c Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Wed, 7 Aug 2024 10:22:45 +0530 Subject: [PATCH 4/5] chore: Simplify promotion --- src/lib/util/promos/August2024.svelte | 38 +++++++++++++-------------- tailwind.config.cjs | 17 +----------- 2 files changed, 19 insertions(+), 36 deletions(-) diff --git a/src/lib/util/promos/August2024.svelte b/src/lib/util/promos/August2024.svelte index 7a9b54e1..7a4e1b6c 100644 --- a/src/lib/util/promos/August2024.svelte +++ b/src/lib/util/promos/August2024.svelte @@ -1,5 +1,6 @@ -{#key currentTagline} - - {currentTagline.label} - Try it now - -{/key} + + {#key currentTagline} + + {currentTagline.label} + Try it now + + {/key} + diff --git a/tailwind.config.cjs b/tailwind.config.cjs index d2b0cd08..18cb32c1 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -2,22 +2,7 @@ module.exports = { plugins: [require('daisyui')], content: ['./src/**/*.{html,js,svelte,ts}'], theme: { - extend: { - keyframes: { - fadeIn: { - '0%': { opacity: '0' }, - '100%': { opacity: '1' } - }, - fadeOut: { - '0%': { opacity: '1' }, - '100%': { opacity: '0' } - } - }, - animation: { - fadeIn: 'fadeIn 1s ease-in', - fadeOut: 'fadeOut 1s ease-in' - } - } + extend: {} }, variants: { extend: {} From fbf2bcb202238b6e386b218fcc642177d7b43994 Mon Sep 17 00:00:00 2001 From: Steph <35910788+huynhicode@users.noreply.github.com> Date: Wed, 4 Sep 2024 18:19:40 -0700 Subject: [PATCH 5/5] update promo bar styling --- src/lib/components/Navbar.svelte | 1 + src/lib/util/promos/August2024.svelte | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 96340b6c..37a16b7b 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -73,6 +73,7 @@ { dismissPromotion(activePromotion?.id); diff --git a/src/lib/util/promos/August2024.svelte b/src/lib/util/promos/August2024.svelte index 7a4e1b6c..ea734bf4 100644 --- a/src/lib/util/promos/August2024.svelte +++ b/src/lib/util/promos/August2024.svelte @@ -44,8 +44,7 @@ in:fade={{ delay: 750 }} out:fade={{ duration: 1000 }}> {currentTagline.label} - Try it now {/key}