Skip to content

TeenageMutantCoder/space-tourism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Space tourism website solution

This is a solution to the Space tourism website challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

How to run

From live site

Visit https://sw-space-tourism.netlify.app/

From source

  1. Open a terminal.
  2. Clone the repository with git clone https://github.com/TeenageMutantCoder/space-tourism.git
  3. Change into the repository directory with cd space-tourism
  4. Install dependencies with npm install Note: Must have Node installed
  5. Run the development server with npm start or the production server with npm run build && npm run serve
  6. Visit the website at 127.0.0.1:8000 (development) or 127.0.0.1:9000 (production)

Overview

The challenge

Users should be able to:

  • View the optimal layout for each of the website's pages depending on their device's screen size
  • See hover states for all interactive elements on the page
  • View each page and be able to toggle between the tabs to see new information

Screenshot

Homepage on Desktop

Links

My process

Built with

What I learned

While building this website from the Figma design, I learned many things. This is the second project that I have built from someone else's design, and I

I learned:

  • How to use Styled Components, a tool I had never used before
  • How to create a TypeScript declaration file for imported image assets
  • About the partiallyActive prop that allows Gatsby Links to be active when the user is inside a nested route

Continued development

In the future, I would like to write automated tests for my code. I will always probably do some manual QA, but understanding how to write good tests is essential to being a good developer, especially if someone wants to work on a large or impactful project.

Useful resources

  • StackOverflow - This stack overflow answer helped me fix the TypeScript errors that came up when I tried to import an svg, png, or jpg file.
  • MDN Web Docs - This website is essential for a web developer. It contains all of the necessary information regarding HTML, CSS, and JavaScript. I used it very often.

Author

About

Space tourism website built using Gatsby and TypeScript

Resources

Stars

Watchers

Forks