From 022eb32adfb80f7826f20e3b0a31422b2f52b124 Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Sun, 19 Jan 2025 18:12:43 +1030 Subject: [PATCH] style: enhance ConditionCard with gradient background and improved hover effects --- .../components/format/FormatGeneralTab.jsx | 87 +++++++++++-------- .../format/conditions/ConditionCard.jsx | 29 ++++--- 2 files changed, 67 insertions(+), 49 deletions(-) diff --git a/frontend/src/components/format/FormatGeneralTab.jsx b/frontend/src/components/format/FormatGeneralTab.jsx index 5d0816e..e79ee11 100644 --- a/frontend/src/components/format/FormatGeneralTab.jsx +++ b/frontend/src/components/format/FormatGeneralTab.jsx @@ -1,6 +1,7 @@ import React, {useState} from 'react'; import PropTypes from 'prop-types'; -import TextArea from '../ui/TextArea'; +import MarkdownEditor from '@ui/MarkdownEditor'; +import AddButton from '@ui/DataBar/AddButton'; const FormatGeneralTab = ({ name, @@ -37,19 +38,24 @@ const FormatGeneralTab = ({

)} -
+
{/* Name Input */}
- +
+ +

+ Give your format a descriptive name +

+
onNameChange(e.target.value)} placeholder='Enter format name' className='w-full rounded-md border border-gray-300 dark:border-gray-600 - bg-white dark:bg-gray-700 px-3 py-2 text-sm + bg-gray-50 dark:bg-gray-800 px-3 py-2 text-sm text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent @@ -59,28 +65,32 @@ const FormatGeneralTab = ({ {/* Description */}
- -