Skip to content

effycoco/order-summary-frontendmentorchallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Order summary card solution

This is a solution to the Order summary card challenge on Frontend Mentor.

Table of contents

Overview

The challenge

Users should be able to:

  • See hover states for interactive elements

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

What I learned

  1. 制作卡片:不同背景色 + box-shadow
  2. 利用 flex 使多行字居中
<div class="container">
  <div class="item">
    <h1></h1>
    <p></p>
  </div>
</div>
.container {
  display: flex;
  align-items: center;
}
  1. 使用 overflow:hidden 处理圆角容器中的图片

  2. CSS variables 用法

:root {
  --pale-blue: hsl(225, 100%, 94%);
  --bright-blue: hsl(245, 75%, 52%);
  --very-pale-blue: hsl(225, 100%, 98%);
  --desaturated-blue: hsl(224, 23%, 55%);
  --dark-blue: hsl(223, 47%, 23%);
}
body {
  background-color: var(--pale-blue);
}
  1. repsonsive design 原则:mobile first.

Continued development

需多练习由宏观至微观、由外至内的布局思路

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published