Giter Club home page Giter Club logo

responsive-website-example's Introduction

Frontend Mentor - Product preview card component solution

This is my solution to the Product preview card component challenge on Frontend Mentor.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover and focus states for interactive elements

Screenshot

So far this is what it looks like:

  • Desktop:
  • Mobile (using Firefox's Responsive Design Mode, Samsung Galaxy S20):

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS
  • Flexbox
  • Mobile-first workflow

To Do

  • Add corners to the mobile design.
  • Figure out a way for border-radius to work in the Flex .container instead of doing it in the individual items.
  • Figure out the proper size and centering for the 'Add to Cart' button.
  • Add interactive elements (hover and focus).
  • Figure out why src : local() doesn't work even though I have Montserrat installed.
  • Make sure the fonts show up (@font-face does not seem to be a good idea anymore).

Resources

  • A Complete Guide to Flexbox - Really helped with understanding what works and where stuff should go and why. Unfortunately doesn't explain why justify content doesn't work.
  • MDN CSS Reference - Very helpful for looking up properties and values. It also has examples, which helped a lot.

Author

Acknowledgments

I humbly acknowledge a certain individual for pushing me to do this challenge and getting me back into web design.

responsive-website-example's People

Contributors

hennaoh 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.