Giter Club home page Giter Club logo

qr-code-component's Introduction

Frontend Mentor - QR code component solution

This is a solution to the QR code component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

Learning responsive layout .

Links

My process

Create a container inside this create a card and keep oyur image and text in this section and style accordingly.

Built with

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

What I learned

This project help me in learning how to center a div and setting a card and image inside it with knowlede of flexbox,padding,mrgin and some border property.

Code snippet

<body>
<div class="container">
  <div class="card">
    <img  src="images/image-qr-code.png" alt="qr-code-img">
    <div class="text">
      <h2>
        Improve your front-end skills by building projects

      </h2>
      <p> Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
    </div>
  </div>
</div>
 
</body>

:root{
  --white: hsl(0, 0%, 100%);
  --light-gray: hsl(212, 45%, 89%);
  --grayish-blue: hsl(220, 15%, 55%);
  --dark-blue: hsl(218, 44%, 22%);
}

*{
  margin: 0;
  padding: 0; 
}



body{
  font-family: 'Outfit', sans-serif;
  background-color: var(--light-gray);
  font-size: 15px;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.container{
   margin: 0 auto;
   max-width: 360px;
}

.card{
  background-color: var(--white);
  box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
  text-align: center;
  margin: 0 1em;
  padding: 18px;
  border-radius: 18px;
}
.card img{
  max-width: 100%;
  border-radius: 12px;
}

.text{
  padding: 22px 10px;
}

.text h2{
  color: var(--dark-blue);
  padding-bottom: 15px;
}

.text p{
  color: var(--grayish-blue);
}

Continued development

Looking forward to learn new topics like animation, specificity, z-index.

Useful resources

  • Markdown Guide - This helped me for writing md. I really liked this pattern and will use it going forward.

  • W3schools CSS - This is an amazing article which helped me finally understand CSS concepts. I'd recommend it to anyone still learning this css concept.

Author

qr-code-component's People

Contributors

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