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.
- Semantic HTML5 markup
- Flexbox
I learned new properties such as min-width, box-shadow, align-items, and transition. Most of the properties are from CSS Flexbox.
The code snippets are below:
.container {
display: flex;
justify-content: center;
align-items: center;
margin-top: 5%;
}.card {
max-width: 285px;
background-color: white;
border-radius: 20px;
box-shadow: 5px 15px hsl(217, 8%, 61%, 0.05);
padding: 13px;
}.card-img {
max-width: 100%;
border-radius: 10px;
background: #2c7dfa;
transition-duration: 1s;
transition-property: background, transform;
transition-timing-function: cubic-bezier(1, 0.11, 22, 1.41);
}
.card h1:hover {
color: #2c7dfa;
}
.card p:hover {
color: black;
}
.card-img:hover {
transform: rotate(90deg);
}I'm going to improve my Layout and Flexbox skills first and then move to learn about CSS Grid.

