Skip to content

Space Tourism mulitple page website in HTML / CSS / JavaScript and with data from JSON file.

Notifications You must be signed in to change notification settings

dabinderudhan/space-tourism-website

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

Overview

I used Vanilla JavaScript to change the content of the pages by fetching the data from json local file.

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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Vanilla JavaScript

What I learned

With this challenge I was able to understand better the CSS new properties and async/await json fetch in JavaScript

.example {
  margin-block: 1rem;
  aspect-ratio: 1 / 1;
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
}
async function loadData() {
  const response = await fetch("./data.json");
  const data = await response.json();
  console.log(data);
}

Useful resources

  • Srimba course - This helped me to learn more about Frontend Web development.

Author

About

Space Tourism mulitple page website in HTML / CSS / JavaScript and with data from JSON file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published