In this tutorial, we will implement a Svelte component that serves as a structure for our project’s pages.
It comes in handy when our pages have similar layouts and we want to react to content scroll.
The structure we will build here is composed by:
We can obviously adapt the component to our needs. You can skip to the end if you only want the complete component code.
We start adding the main content layout. …
When we are working on a webapp that we want to distribute globally, we must think that many people will not speak our language. If they don’t understand us, we can lose a large chunk of users.
In this tutorial we will learn how to create a plugin that brings a language file, parse it, and return the required string in the user’s language. …
Since in SPA all the web page requests are redirected to the root page, we need to simulate the “standard” way of navigating pages. This is where routing libraries help us, and although it seems like a complicated task to reproduce, its base functionality is very simple and can be done in few lines of code.
At the end of the article, we can use our own router, maybe for our next project. …