Welcome to the Alai Coding Challenge! This project is set up with React, TypeScript, and TLDraw.
Your task is to create a timeline component using TLDraw, similar to the one found on https://getalai.com/. You will also need to implement a user input feature to dynamically generate timeline elements.
-
Create a timeline element using TLDraw similar to what you can see on https://getalai.com/
-
Add an input field where the user can enter desired number of items and a generate button. When the user clicks generate, then the timeline element should show that many number of elements.
- Clone this repository
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open your browser and navigate to
http://localhost:5173
(or the port shown in your terminal)
src/App.tsx
: Main application componentsrc/TldrawComponent.tsx
: TLDraw canvas implementation (You'll likely need to modify this)
- Feature completion: All required features are fully implemented and functional.
- Code quality and organization
- Proper use of React, TypeScript, and TLDraw
Please create a private repo for your submission to avoid leaking the solution. Add our emails (krishna@getalai.com and anmol@getalai.com) when you're ready for review. Include a brief description of your approach and any challenges you faced.
Good luck, and we look forward to seeing your implementation!