Giter Site home page Giter Site logo

frontendmentor-order's Introduction

Frontend Mentor - Order summary card solution

This is a solution to the Order summary card challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

"Your challenge is to build out this order summary card component and get it looking as close to the design as possible. Users should be able to see hover states for interactive elements."

Screenshot

image

Links

Built with

  • Tailwind, GitHub CodePilot, Vercel, Google Fonts

My process

  1. Decide I want to do web development again.
  2. Choose Tailwind as I haven't done that before and was a little sus about it
  3. Do the following:
npm install -D tailwindcss
npx tailwindcss init
npx tailwindcss -i ./input.css -o ./output.css --watch
  1. Set up prettier, prettier w/ tailwind, and run Live Server inside of VS Code
  2. ...
  3. Profit!

What I learned

@workspace how would you refactor index.html?

That is kinda cool. I had a <diag> HTML tag and said I should replace with a standard one. It was nice cuz my ADHD brain wants this to get over with and it's another point of contact keeping me honest

  • IF YOU ARE LEARNING TAILWIND ON A STATIC SITE, DON'T FORGET THAT TAILWIND STILL HAS TO BE COMPILED. They tell you how to do this in the docs: npx tailwindcss -i ./input.css -o ./output.css --watch. if you don't do this you'll get intermittant errors as some things will work perfeclt fine but other things won't render w/o explnaation.

  • VS Code can whine that @tailwind isn't a recognized directive. You can Google. Laziness told me turn off all warnings for unknown directives inside of VS Code

  • I could have really picking try to match it to its exact web colors, it was just easier to give ChatGPT a web code and ask what the close tailwind CSS class is. It's just as well as I had eyeballed it as blue-600, it was reallly indigo-700. But I wanted to try custom colors too, which I had to tweak tailwnd.config.js.

  • I got these comps from FrontendMentor. They're design pattern libraries - their grids, their color patterns, etc. aren't going to be aligned to Tailwinds, which is to be expected I guess. Tailwind is probably a lot better for the developer who has to be his own designer and has the ability to have a UI to work from such as shadcn

Continued development

I'd probably focus on making sure this was more pixel perfect. But honestly, I got what I need given the timeframe I had.

Useful resources

Author

frontendmentor-order's People

Contributors

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