From e09adee7cd0d9ffbf587ca817e5802026a529058 Mon Sep 17 00:00:00 2001 From: Felix Thape Date: Thu, 26 Dec 2024 15:31:05 +0100 Subject: [PATCH 1/2] feat: update images on tasks sections and fix appstore buttons --- landing-page/components/TasksAppStoreBadge.tsx | 2 +- landing-page/components/TasksPlaystoreBadge.tsx | 7 +++---- landing-page/components/sections/SectionBase.tsx | 4 ++-- .../sections/tasks/MobileFeatureSection.tsx | 13 ++++++------- .../components/sections/tasks/PatientSection.tsx | 11 ++++++----- .../components/sections/tasks/PropertiesSection.tsx | 9 +++++---- .../components/sections/tasks/StartSection.tsx | 2 +- .../sections/tasks/TasksKanbanSection.tsx | 2 +- 8 files changed, 25 insertions(+), 25 deletions(-) diff --git a/landing-page/components/TasksAppStoreBadge.tsx b/landing-page/components/TasksAppStoreBadge.tsx index 1bf776d92..acf2b5cd1 100644 --- a/landing-page/components/TasksAppStoreBadge.tsx +++ b/landing-page/components/TasksAppStoreBadge.tsx @@ -32,7 +32,7 @@ export const TasksAppStoreBadge = () => { {alt} ) diff --git a/landing-page/components/TasksPlaystoreBadge.tsx b/landing-page/components/TasksPlaystoreBadge.tsx index cce383f3f..7c5df86c5 100644 --- a/landing-page/components/TasksPlaystoreBadge.tsx +++ b/landing-page/components/TasksPlaystoreBadge.tsx @@ -1,7 +1,7 @@ import { useLanguage } from '@helpwave/common/hooks/useLanguage' import Image from 'next/image' import Link from 'next/link' -import { tw } from '@twind/core' +import { tx } from '@twind/core' /** * WHEN USING MAKE THE NECESSARY ATTRIBUTION TO GOOGLE @@ -26,9 +26,8 @@ export const TasksPlaystoreBadge = () => { en: '/images/google_play_badge_english.png' }[language] return ( - - {alt} + + {alt} ) } diff --git a/landing-page/components/sections/SectionBase.tsx b/landing-page/components/sections/SectionBase.tsx index da1bc929c..b3c7a191c 100644 --- a/landing-page/components/sections/SectionBase.tsx +++ b/landing-page/components/sections/SectionBase.tsx @@ -1,5 +1,5 @@ import type { PropsWithChildren } from 'react' -import { tx } from '@twind/core' +import { apply, tx } from '@twind/core' type BackgroundColor = 'white' | 'black' | 'gray' | 'darkSecondary' | 'darkPrimary' @@ -24,7 +24,7 @@ export const SectionBase = ({ 'bg-hw-grayscale-1000': backgroundColor === 'black', 'bg-hw-secondary-800': backgroundColor === 'darkSecondary', 'bg-hw-primary-900': backgroundColor === 'darkPrimary', - 'desktop:px-24 tablet:px-12 mobile:px-6 py-16': useDefaultStyle + [apply('desktop:px-24 tablet:px-12 mobile:px-6 py-16')]: useDefaultStyle }, outerClassName)}>
-
-
+
+

{translation.title}

@@ -59,15 +59,14 @@ export const MobileFeatureSection = ({ overwriteTranslation }: PropsForTranslati
diff --git a/landing-page/components/sections/tasks/PatientSection.tsx b/landing-page/components/sections/tasks/PatientSection.tsx index cbed93a6e..f7096754c 100644 --- a/landing-page/components/sections/tasks/PatientSection.tsx +++ b/landing-page/components/sections/tasks/PatientSection.tsx @@ -33,18 +33,19 @@ export const PatientSection = ({ overwriteTranslation }: PropsForTranslation
diff --git a/landing-page/components/sections/tasks/PropertiesSection.tsx b/landing-page/components/sections/tasks/PropertiesSection.tsx index 802773992..ec0a460a4 100644 --- a/landing-page/components/sections/tasks/PropertiesSection.tsx +++ b/landing-page/components/sections/tasks/PropertiesSection.tsx @@ -33,17 +33,18 @@ export const PropertiesSection = ({ overwriteTranslation }: PropsForTranslation< return (
diff --git a/landing-page/components/sections/tasks/StartSection.tsx b/landing-page/components/sections/tasks/StartSection.tsx index 7bcdbd002..e33694855 100644 --- a/landing-page/components/sections/tasks/StartSection.tsx +++ b/landing-page/components/sections/tasks/StartSection.tsx @@ -42,7 +42,7 @@ const StartSection = ({ overwriteTranslation }: PropsForTranslation
diff --git a/landing-page/components/sections/tasks/TasksKanbanSection.tsx b/landing-page/components/sections/tasks/TasksKanbanSection.tsx index 36b478272..e611da927 100644 --- a/landing-page/components/sections/tasks/TasksKanbanSection.tsx +++ b/landing-page/components/sections/tasks/TasksKanbanSection.tsx @@ -47,7 +47,7 @@ export const TasksKanbanSection = ({ overwriteTranslation }: PropsForTranslation
Date: Thu, 26 Dec 2024 15:32:26 +0100 Subject: [PATCH 2/2] feat: open appstores in different tab --- landing-page/components/TasksAppStoreBadge.tsx | 2 +- landing-page/components/TasksPlaystoreBadge.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/landing-page/components/TasksAppStoreBadge.tsx b/landing-page/components/TasksAppStoreBadge.tsx index acf2b5cd1..d6c0d3051 100644 --- a/landing-page/components/TasksAppStoreBadge.tsx +++ b/landing-page/components/TasksAppStoreBadge.tsx @@ -29,7 +29,7 @@ export const TasksAppStoreBadge = () => { }[language] return ( - + {alt} { en: '/images/google_play_badge_english.png' }[language] return ( - + {alt} )