This was my submission for Duggup's Frontend Engineer Role. For this short assignment my primary focus was to,
- Develop pixel perfect page using SvelteKit & Shadcn
- Write styles using Tailwind CSS.
- Deploy it on Vercel. [No longer hosted, Please run locally.]
From the Figma designs provided I derived 3 main parts that needed to be tackled. This was also the order in which I coded the page.
- Navbar with Logo, 3 nav elements, 1 button w/ hover state & an Avatar with Label.
- Hero Section w/ Profile picture, a blurb and other info.
- Timeline with two types of sections: Timeline Story & Timeline Status
- Initially I created a Timeline component with hardcoded data.
- The reusable markup and styles were factored out into DynamicTimeline which imports a JSON data object and creates the timeline dynamically as per assignment requirement.
- I've left out 'Timeline' as a zombie component for inspection. It however does not get used anywhere in the production code.
-
Clone the repository,
git clone https://github.com/jaitjacob/throwaway-repo-dgp.git
-
cd
into thetimeline
directory where thepackage.json
lives, cd timeline -
Install all the dependencies,
npm install
-
npm run dev
-
Visit
localhost:5173
on your browser.
Few things I might get around to after submission,
- Mobile responsiveness
- Add a smoke test, and few UI tests using Playwright