Skip to content

A dynamic, animated, and accessible Single-Page website about Space Tourism built with only semantic HTML, vanilla JavaScript, and CSS, featuring reusable styles and keyboard navigation.

Notifications You must be signed in to change notification settings

AnaCarol2001/SpaceTourismWebsite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Space tourism website solution - SPA

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

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
  • Personal challenge: add a loading screen.

Screenshot

screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • JavaScript
  • Single Page Application

What I learned

Building this project was challenging, but seeing it all coming together was fascinating, and overcoming the problems was satisfying. I got to learn a lot from it. In the design aspect, Kevin Powell's videos helped me understand how to turn a style guide and layouts into custom CSS properties and utility classes. Thus, CSS styles are more readable and reusable. From his videos, I also learned how to make tabs accessible, allowing users to navigate them using the left and right keys instead of the tab key.

The functionality aspect was the biggest challenge. Make the navigation through pages and tabs without using different HTML pages, but making it dynamic with JavaScript was hard. What helped me with this was one of the projects from Web Development for Beginners by Microsoft. So, the solution was to use the window object to retrieve/change the URL and, based on that, update the page content by replacing an element with another from a template tag or its content with data from a JSON file (provided by Frontend Mentor).

Continued development

This project still has room for improvement, such as implementing a mobile slider for the tabs and loading animations between page navigation. And I'd like to build this, or similar projects, using frameworks like React and React Router or NextJs, and Tailwind for the style.

Useful resources

Author

About

A dynamic, animated, and accessible Single-Page website about Space Tourism built with only semantic HTML, vanilla JavaScript, and CSS, featuring reusable styles and keyboard navigation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published