This coding challenge consists of four deliverables, the prompts are inside the /prompts
folder were copied as received:
For each folder, use the preview.jpg file as a reference and create a html / css / js version using the index.html (welcome to create external css / js file).
Here are some overal instructions for each exercise:
Specific instructions:
Navigation hover
Gradient background logo
To do application
Task | Vanilla | Svelte + TailwindCSS | Image Reference |
---|---|---|---|
1. Navigation | Open | Open | ![]() |
2. Gradient | Open | Open | ![]() |
3. To do | Open | Open | ![]() |
Developer notes: The Vanilla version is much closer to the provided image reference due to the tailwind token system. It is possible to set custom values to the theme but these are usually agreed between the design team and the dev teams. For these examples I've used Tailwind's default design tokens on the Tailwind version.
Animations for solution 1 and solution 3 rely heavily on the new browsers View Transition API. I was hoping that by now Firefox was already implementing the feature but it seems like we will have to wait a bit longer. I've added a polyfill, but for the full experience I'd recommend testing it on Chrome.
Vanilla HTML + CSS + JS versions are located in the repository's
static/vanilla/
folder.
To run this code locally please follow these steps:
git clone [email protected]:rijuma/svelte-challenge.git
Then, get into the folder by: cd svelte-challenge
npm install
Note: Check npm documentation here if needed.
npm run dev
and open the browser at http://localhost:5173.Note: To stop the server, just hit Ctrl + C in the terminal. Make sure to stop the server before closing the terminal window, otherwise the server process will remain open in the background.
TheDockerfile
, thecompose.yml
and the.env.example
are just part of the configuration for the server to be deployed.