implemented home page also updated package.json and translation files
This commit is contained in:
17
src/components/FormBox.jsx
Normal file
17
src/components/FormBox.jsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { PropTypes } from 'prop-types';
|
||||
|
||||
function FormBox({title, children}) {
|
||||
return (
|
||||
<div className='transition-color-mode font-body bg-surface-variant border-secondary dark:bg-surface-variant-dark dark:border-primary-dark border-2 p-4 rounded-3xl relative h-full'>
|
||||
<label className='font-body absolute left-11 -top-4 bg-secondary dark:bg-secondary-dark text-primary dark:text-primary-dark font-medium py-1 px-4 rounded-full'>{title}</label>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
FormBox.propTypes = {
|
||||
children: PropTypes.node.isRequired,
|
||||
title: PropTypes.string.isRequired
|
||||
};
|
||||
|
||||
export default FormBox;
|
||||
Reference in New Issue
Block a user