Giter VIP home page Giter VIP logo

space-tourism-website's Introduction

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

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

Links

My process

Built with

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

What I learned

I actually wanted to complete this without deviating too much. I need to improve my accessibility and add to my baseline performance.

  • A Few Takeaways:
    • You can have multiple headers on a page.
    • Put images inside a div. The div will be the flex item. Flex on images === bugs.
    • Don't break up headlines just to make styling easier. Use spans and work around it.
    • Subtitles should use a paragraph tag.
    • Grid is a inner display value.
    • Viewport units don't response to zooming in and out.
    • @supports requires both property and value - even if value is overridden immediately.
    • To toggle a nav, you generally use attributes or a class.
    • Remember, data-attributes are 'strings'.
    • You can't animate background images.
    • In keyboard navigation, the spacebar triggers the click event. Don't need extra event listener.
    • where/is css - where doesn't add specificity.
    • aspect-ratio: width / height

Continued development

  • The crew page pictures might be a little too large.
  • I had issues with using hidden on a picture element. I created a utility class of d-none to hide the content instead.
  • Use data.json() and fetch data from it when user click link to page / tab.
  • Adjust padding / gaps to ensure everything fits into viewport height. No more scrollbar.
  • Technology page only has mobile and desktop pictures. Not webp either. Thus, tablet view is compromised.

Useful resources

Acknowledgments

  • Kevin Powell
  • Scrimba
  • Frontend Mentor

space-tourism-website's People

Contributors

jdegand avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.