简洁的手机端订单支付页面UI效果代码

代码语言:html

所属分类:布局界面

代码描述:简洁的手机端订单支付页面UI效果代码

代码标签: 订单 支付 页面 UI 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>Checkout Form</title>
    <style>
:root {
        --color-background: #fae3ea;
        --color-primary: #fc8080;
        --font-family-base: Poppin,sans-serif;
        --font-size-h1: 1.25rem;
        --font-size-h2: 1rem;
    }


        * {
            -webkit-box-sizing: inherit;
            box-sizing: inherit;
        }

        html {
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
        }

        body {
            background-color: #fae3ea;
            background-color: var(--color-background);
            display: grid;
            font-family: Poppin,sans-serif;
            font-family: var(--font-family-base);
            line-height: 1.5;
            margin: 0;
            min-height: 100vh;
            padding: 5vmin;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            justify-items: center;
            place-items: center;
        }

        address {
            font-style: normal;
        }

        button {
            border: 0;
            color: inherit;
            cursor: pointer;
            font: inherit;
        }

        fieldset {
            border: 0;
            margin: 0;
            padding: 0;
        }

        h1 {
            font-size: 1.25rem;
            font-size: var(--font-size-h1);
            line-height: 1.2;
            margin-top: 0;
            margin-bottom: 1.5em;
        }

        h2 {
            font-size: 1rem;
            font-size: var(--font-size-h2);
            line-height: 1.2;
            margin-top: 0;
            margin-bottom: 0.5em;
        }

        legend {
            font-weight: 600;
            margin-bottom: 0.5em;
            padding: 0;
        }

        input {
            border: 0;
            color: inherit;
            font: inherit;
        }

        input[type="radio"] {
            accent-color: #fc8080;
            accent-color: var(--color-primary);
        }

        table {
            border-collapse: collapse;
            width: 100%;
        }

        tbody {
            color: #b4b4b4;
        }

        td {
            padding-top: 0.125em;
            padding-bottom: 0.125em;
        }

        tfoot {
            border-top: 1px solid #b4b4b4;
            font-weight: 600;
        }

        .align {
            display: grid;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            justify-items: center;
            place-items: center;
        }

        .button {
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            background-color: #fc8080;
            background-color: var(--color-primary);
            border-radius: 999em;
            color: #fff;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            grid-gap: 0.5em;
            gap: 0.5em;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            justify-content: center;
            padding-top: 0.75em;
            padding-bottom: 0.75em;
            padding-left: 1em;
            padding-right: 1em;
            -webkit-transition: 0.3s;
            -o-transition: 0.3s;
            transition: 0.3s;
        }

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

        .button--full {
            width: 100%;
        }

        .card {
            border-radius: 1em;
            background-color: #fc8080;
            background-color: var(--color-primary);
            color: #fff;
            padding: 1em;
        }

        .form {
            display: grid;
            grid-gap: 2em;
            gap: 2em;
        }

        .form__radios {
            display: grid;
            grid-gap: 1em;
            gap: 1em;
        }

        .form__radio {
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            background-color: #fefdfe;
            border-radius: 1em;
            -webkit-box-shadow: 0 0 1em rgba(0, 0, 0, 0.0625);
            box-shadow: 0 0 1em rgba(0, 0, 0, 0.0625);
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            padding: 1em;
        }

        .form__radio label {
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-flex: 1;
            -ms-flex: 1;
            flex: 1;
            grid-gap: 1em;
            gap: 1em;
        }

        .header {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            justify-content: center;
            padding-top: 0.5em;
            padding-bottom: 0.5em;
            padding-left: 1em;
            padding-right: 1em;
        }

        .icon {
            height: 1em;
            display: inline-block;
            fill: currentColor;
            width: 1em;
            vertical-align: middle;
        }

        .iphone {
            background-color: #fbf6f7;
            background-image: -webkit-gradient(linear, left top, left bottom, from(#fbf6f7), to(#fff));
            background-image: -o-linear-gradient(top, #fbf6f7, #fff);
            background-image: linear-gradient(tobottom, #fbf6f7, #fff);
            border-radius: 2em;
            height: 812px;
            -webkit-box-shadow: 0 0 1em rgba(0, 0, 0, 0.0625);
            box-shadow: 0 0 1em rgba(0, 0, 0, 0.0625);
            width: 375px;
            overflow: auto;
            padding: 2em;
        }
    </style>

</head>
<body>

    <div class="iphone">
        <header class="header">
            <h1>订单结算</h1>
        </header>

        <form action="" class="form" method="POST">
            <div>
                <h2>地址</h2>

                <div class="card">
                    <address>
                        亚当<br />
                        上海市徐汇区奥克兰大街403号,32104
                    </address>
                </div>
            </div>

            <fieldset>
                <legend>支付方式</legend>

                <div class="form__radios">
                    <div class="form__radio">
                        <label for="visa"><svg class="icon">
                            <use xlink:href="#icon-visa" />
                        </svg>Visa Payment</label>
                        <input checked id="visa" name="payment-method" type="radio" />
                    </div>

                    <div class="form__radio">
                        <label for="paypal"><svg class="icon">
                            <use xlink:href="#icon-paypal" />
                        </svg>支付宝</label>
                        <input id="paypal" name="payment-method" type="radio" />
                    </div>

                    <div class="form__radio">
                        <label for="mastercard"><svg class="icon">
                            <use xlink:href="#icon-mastercard" />
                        </svg>微信</label>
                        <input id="mastercard" name="payment-method" type="radio" />
                    </div>
                </div>
            </fieldset>

            <div>
                <h2>购物清单</h2>

                <table>
                    <tbody>
                        <tr>
                            <td>运费</td>
                            <td align="right">$5.43</td>
                        </tr>
                        <tr>
                            <td>折扣 10%</td>
                            <td align="right">-$1.89</td>
                        </tr>
                        <tr>
                            <td>价格合计</td>
                            <td align="right">$84.82</td>
                        </tr>
                    </tbody>
                    <tfoot>
                        <tr>
                            <td>总共</td>
                            <td align="right">$88.36</td>
                        </tr>
                    </tfoot>
                </table>
            </div>

            <div>
                <button class="button button--full" type="submit"><svg class="icon">
                    <use xlink:href="#icon-shopping-bag" />
                </svg>立即购买</button>
            </div>
        </form>
    </div>

    <svg xmlns="http://www.w3.org/2000/svg" style="display: none">

        <symbol id="icon-shopping-bag" viewBox="0 0 24 24">
            <path d="M20 7h-4v-3c0-2.209-1.791-4-4-4s-4 1.791-4 4v3h-4l-2 17h20l-2-17zm-11-3c0-1.654 1.346-3 3-3s3 1.346 3 3v3h-6v-3zm-4.751 18l1.529-13h2.222v1.5c0 .276.224.5.5.5s.5-.224.5-.5v-1.5h6v1.5c0 .276.224.5.5.5s.5-.224.5-.5v-1.5h2.222l1.529 13h-15.502z" />
        </symbol>

        <symbol id="icon-mastercard" viewBox="0 0 504 504">
            <path d="m504 252c0 83.2-67.2 151.2-151.2 151.2-83.2 0-151.2-68-151.2-151.2 0-83.2 67.2-151.2 150.4-151.2 84.8 0 152 68 152 151.2z" fill="#ffb600" />
            <path d="m352.8 100.8c83.2 0 151.2 68 151.2 151.2 0 83.2-67.2 151.2-151.2 151.2-83.2 0-151.2-68-151.2-151.2" fill="#f7981d" />
            <path d="m352.8 100.8c83.2 0 151.2 68 151.2 151.2 0 83.2-67.2 151.2-151.2 151.2" fill="#ff8500" />
            <path d="m149.6 100.8c-82.4.8-149.6 68-149.6 151.2s67.2 151.2 151.2 151.2c39.2 0 74.4-15.2 101.6-39.2 5.6-4.8 10.4-10.4 15.2-16h-31.2c-4-4.8-8-10.4-11.2-15.2h53.6c3.2-4.8 6.4-10.4 8.8-16h-71.2c-2.4-4.8-4.8-10.4-6.4-16h83.2c4.8-15.2 8-31.2 8-48 0-11.2-1.6-21.6-3.2-32h-92.8c.8-5.6 2.4-10.4 4-16h83.2c-1.6-5.6-4-11.2-6.4-16h-70.4c2.4-5.6 5.6-10.4 8.8-16h53.6c-3.2-5.6-7.2-11.2-12-16h-29.6c4.8-5.6 9.6-10.4 15.2-15.2-26.4-24.8-62.4-39.2-101.6-39.2 0-1.6 0-1.6-.8-1.6z" fill="#ff5050" />
            <path d="m0 252c0 83.2 67.2 151.2 151.2 151.2 39.2 0 74.4-15.2 101.6-39.2 5.6-4.8 10.4-10.4 15.2-16h-31.2c-4-4.8-8-10.4-11.2-15.2h53.6c3.2-4.8 6.4-10.4 8.8-16h-71.2c-2.4-4.8-4.8-10.4-6.4-16h83.2c4.8-15.2 8-31.2 8-48 0-11.2-1.6-21.6-3.2-32h-92.8c.8-5.6 2.4-10.4 4-16h83.2c-1.6-5.6-4-11.2-6.4-16h-70.4c2.4-5.6 5.6-10.4 8.8-16h53.6c-3.2-5.6-7.2-11.2-12-16h-29.6c4.8-5.6 9.6-10.4 15.2-15.2-26.4-24.8-62.4-39.2-101.6-39.2h-.8" fill="#e52836" />
            <path d="m151.2 403.2c39.2 0 74.4-15.2 101.6-39.2 5.6-4.8 10.4-10.4 15.2-16h-31.2c-4-4.8-8-10.4-11.2-15.2h53..........完整代码请登录后点击上方下载按钮下载查看

网友评论0