Skip to content

intro-section-with-dropdown-navigation using SvelteKit and Tailwindcss

Notifications You must be signed in to change notification settings

haguerrerob/intro-section-with-dropdown-navigation

Repository files navigation

create-svelte

Everything you need to build a Svelte project, powered by create-svelte.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npm init svelte

# create a new project in my-app
npm init svelte my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Frontend Mentor - Intro section with dropdown navigation solution

This is a solution to the Intro section with dropdown navigation challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • View the relevant dropdown menus on desktop and mobile when interacting with the navigation links
  • View the optimal layout for the content depending on their device's screen size
  • See hover states for all interactive elements on the page

Screenshot

Links

My process

Built with

What I learned

We worked on this challenge presented by FrontEndMentor. To solve it, we have used Svelte (SvelteKit) together with Tailwindcss. We have divided the problem into multiple reactive components, controlled by index.svelte. The application has been developed keeping in mind the mobile-first workflow philosophy. This way we achieved a responsive solution that adapts to different device sizes. The biggest achievement was to use tailwindcss as a tool to give the final styles and learn how to configure this tool globally. The use of Sveltekit allows us to develop a responsive application in a simple way.

Useful resources

  • Example resource 1 - This helped me for XYZ reason. I really liked this pattern and will use it going forward.
  • Example resource 2 - This is an amazing article which helped me finally understand XYZ. I'd recommend it to anyone still learning this concept.

Note: Delete this note and replace the list above with resources that helped you during the challenge. These could come in handy for anyone viewing your solution or for yourself when you look back on this project in the future.

Author

Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.

About

intro-section-with-dropdown-navigation using SvelteKit and Tailwindcss

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published