Hi and thank you for taking the time to complete this challenge. We hope you enjoy it! To start your challenge, please fork this repository into your own GitHub account and follow the instructions below.
Once you've forked and cloned this repo and installed dependencies with npm install
, start a development server:
npm run dev
You can find the Figma File here. The password is Challenge2023
You should only invest a maximum of 6hrs for the coding part of this challenge. Since we know that Svelte(Kit) is a new kid on the block we don't expect you to be an expert in it.
As the scope of the design could simply blow up your invested time, it is absolutely fine if you don't complete every section.
We are looking for a solution that is well structured, easy to understand and maintainable. It doesn't matter if you don't finish all the tasks, we are more interested in how you approach the problem. Be exactly as structured as you would be if it was your own project. Document exactly as it was your own project. We want to get to know you and your way of working.
As mentioned in the Figma file you don't have to implement the functionality for any button but the Subscribe button within the newsletter section.
You can use the following Checklist to keep track of your progress:
Create the Hero element
Create the Clients section
Create the Introduction section
Create the Features section
Create the Pricing section
Code the UI
Fetch the data from API (see below)
Display the data
Add loading states
Create the Newsletter section
Code the UI
Send the data to a SvelteKit API Route
Validate the Email address format (clientside and serverside)
Display a success/error message
Create the Footer element
.svelte
files as well by adding a <script lang="ts">
tagThe API-Endpoint you will need is available at https://n8n.thearc.dev/webhook/pricing
.
-> You can only use POST requests
-> You need to send a body that contains a json object with the key interval
and the value monthly
or yearly
.