본문 바로가기

The Web Developer 부트캠프 2023/CSS

가격표 만들기 프로젝트

HTML 코드

더보기
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Price Tiers</title>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700">
    <style>
        html {
            box-sizing: border-box;
            font-family:'Open Sans', sans-serif;
        }

        #t6 {
            background-color: #60a9ff;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height:100vh;
        } 

        .panel {
            background-color: white;
            border-radius: 10px;
            padding: 15px 25px; /* 상하 좌우 */
            width: 100%;
            max-width: 960px;   
            display: flex;
            flex-direction: column;
            text-align: center;
            text-transform: uppercase;
        } 

        .pricing-plan {
            border-bottom: 1px solid #e1f1ff;
        }

        .pricing-plan:last-child {
            border-bottom: none;
        }

        .pricing-img {
            margin-bottom:25px;
            max-width:100%;
        }

        .pricing-header {
            color: #888;
            font-weight:600;
            letter-spacing: 1px;
        }

        .pricing-features {
            margin: 50px 0 25px; 
            color: #016ff9;
        }

        .pricing-features-item {
            font-weight:600;
            letter-spacing:1px;
            font-size:12px;
            line-height:1.5;
            padding:15px 0;
            border-top: 1px solid #e1f1ff;
        }

        .pricing-features-item:last-child {
            border-bottom: 1px solid #e1f1ff;
        }

        .pricing-price {
            color: #016ff9;
            display: block;
            font-size:32px;
            font-weight:700;
        }

        .pricing-button {
            border: 1px solid #9dd1ff;
            border-radius:10px;
            color: #348efe;
            display:inline-block;
            padding: 15px 35px;
            text-decoration: none;
            margin: 25px 0;
            transition: background-color 200ms ease-in-out;
        }

        .pricing-button:hover, .pricing-button:focus {
            background-color: #e1f1ff;
        }

        .pricing-button.is-featured {
            background-color: #48aaff;
            color: white;
        }

        .pricing-button.is-featured:hover, .pricing-button.is-featured:focus {
            background-color: #269aff;
            color: white; 
        }

        @media (min-width: 900px){
            .panel {
                flex-direction: row;
            }
            .pricing-plan {
                border-bottom: none;
                border-right: 1px solid #e1f1ff;
                padding: 25px 50px;
            }
            .pricing-plan:last-child {
                border-right: none;
            }
        }
    </style>
</head>

<body id="t6">
    <div class="panel pricing-table">

        <div class="pricing-plan">
            <img src="https://images.unsplash.com/photo-1684873878361-52ea727733db?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwyMHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60" alt="" class="pricing-img">
            <h2 class="pricing-header">Personal</h2>
            <ul class="pricing-features">
                <li class="pricing-features-item">Custom domains</li>
                <li class="pricing-features-item">Sleeps after 30 mins of inactivity</li>
            </ul>
            <span class="pricing-price">Free</span>
            <a href="#/" class="pricing-button">Sign up</a>
        </div>

        <div class="pricing-plan">
            <img src="https://plus.unsplash.com/premium_photo-1684952849219-5a0d76012ed2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw1MXx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60" alt="" class="pricing-img">
            <h2 class="pricing-header">Small team</h2>
            <ul class="pricing-features">
                <li class="pricing-features-item">Never sleeps</li>
                <li class="pricing-features-item">Multiple workers for more powerful apps</li>
            </ul>
            <span class="pricing-price">$150</span>
            <a href="#/" class="pricing-button is-featured">Free trial</a>
        </div>

        <div class="pricing-plan">
            <img src="https://images.unsplash.com/photo-1661956602868-6ae368943878?ixlib=rb-4.0.3&ixid=M3wxMjA3fDF8MHxlZGl0b3JpYWwtZmVlZHw4NHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60" alt="" class="pricing-img">
            <h2 class="pricing-header">Enterprise</h2>
            <ul class="pricing-features">
                <li class="pricing-features-item">Dedicated</li>
                <li class="pricing-features-item">Simple horizontal scalability</li>
            </ul>
            <span class="pricing-price">$400</span>
            <a href="#/" class="pricing-button">Free trial</a>
        </div>

    </div>

</body>

</html>

 

 

Price Tiers

Personal

  • Custom domains
  • Sleeps after 30 mins of inactivity
Free Sign up

Small team

  • Never sleeps
  • Multiple workers for more powerful apps
$150 Free trial

Enterprise

  • Dedicated
  • Simple horizontal scalability
$400 Free trial

 

'The Web Developer 부트캠프 2023 > CSS' 카테고리의 다른 글

사탕 박물관 프로젝트  (0) 2023.06.03
반응형 CSS 및 Flexbox  (0) 2023.05.29
유용한 CSS 속성들  (0) 2023.05.28
CSS 박스 모델  (1) 2023.05.28
선택자의 세계  (0) 2023.05.27