This project is a web application built with React and TypeScript using the Next.js framework. It includes a dynamic editor component and allows users to add a cover image from a random image source. The UI is inspired from Notion and is a proof of concept to integrate into a much larger application I am working on.
- Dynamic import of the Editor component
- Fetch and display a random cover image
- Responsive design with Tailwind CSS
- Editable text area with autosize functionality
- Clone the repository:
git clone https://github.com/venu-prasath/block-editor.git
- Navigate to the project directory:
cd block-editor
- Install the dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000
.
- A customizable cover image area. This can be randomly generated or uploaded from local device.
- Dynamically imported component for text editing.
- A text area that automatically adjusts its height based on the content.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.