advice-generator-app Svelte Themes

Advice Generator App

Solution to the Advice Generator App challenge by Frontend Mentor. Built with Sveltekit (SSR and no JavaScript needed!) + TypeScript+ WindiCSS + Vite.

Frontend Mentor - Advice Generator App solution

This is a solution to the Advice generator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

Screenshot

My process

Built with

  • Semantic HTML5 markup
  • Svelte + Sveltekit
  • TypeScript
  • WindiCSS
  • Flexbox
  • Mobile-first workflow

What I learned

I learnt to use the picture tag for displaying different images in certain viewports. This is awesome for building responsive layouts!

<picture class="block mt-3 my-6">
    <source srcset="/pattern-divider-desktop.svg" media="(min-width: 640px)" />
    <source srcset="/pattern-divider-mobile.svg" media="(max-width: 640px)" />
    <img src="/pattern-divider-mobile.svg" alt="" />
</picture>

Continued development

I just discovered the picture tag and how awesome it is; I feel like learning more about HTML tags and HTML in general would be great!

Useful resources

Author

Acknowledgments

Thanks to Ivan I discovered the picture tag.

Top categories

Loading Svelte Themes