To develop the front-end side of Tabunganku, I am faced with numerous options. Based on Stack Overflow Survey, most developers used React, jQuery, or Angular to develop their front-end. I searched around and discovered Svelte. I think it is an interesting technology because people keep hyping it up.
Page Layout
Svelte allows me to create a separate page just for layout so that the header and sidebar will be consistent across every page.
|
|
The code snippet above represents the content of +layout.svelte
, the dedicated page that I can use to define the page layout. I create a 2x2 table using CSS Grid to separate the header, navigation link, and main content. In the header, I use a flexbox to separate the logo and my name. The slot
element exists because it is used by Svelte to display the main content.
Repository
If you are looking for the code, I store it on Github.