Skip to content

Sunnyside agency landing page - Frontend Mentor challenge (React app created with Vitejs)

Notifications You must be signed in to change notification settings

Mary2021/sunnyside-landing-page

Repository files navigation

Frontend Mentor - Sunnyside agency landing page solution

This is a solution to the Sunnyside agency landing page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

My challenge was to build out Sunnyside agency landing page and get it looking as close to the design as possible. Designs could be found inside the /design folder and Style Guide in file style-guide.md.

The challenge

Users should be able to:

  • View the optimal layouts for many screen sizes.
  • See hover states for all interactive elements on the page

Desktop design preview

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • This project was bootstrapped with Vite. Read more

Useful resources

Author

Getting Started with Vite

Run npm create vite@latest my-react-app -- --template react to start a React app template.

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. Vite requires Node.js version 18+ or 20+.

Currently, two official plugins are available:

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:5173/ to view it in your browser.

The page will reload when you make changes.\

npm run build

By default, the build output will be placed at dist. You may deploy this dist folder to any of your preferred platforms.

npm run preview

The vite preview command will boot up a local static web server that serves the files from dist at http://localhost:4173. It's an easy way to check if the production build looks OK in your local environment.

You may configure the port of the server by passing the --port flag as an argument.

{
  "scripts": {
    "preview": "vite preview --port 8080"
  }
}

Now the preview command will launch the server at http://localhost:8080.

Deployment

  • Set base in vite.config.js:
export default defineConfig({
  ....
  base: '/reponame/'
})

About

Sunnyside agency landing page - Frontend Mentor challenge (React app created with Vitejs)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published