JSFiddle - React, Tailwind, and code Playground

by rami7250

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Price List</title>
</head>
<body>

<h2 style="text-align:center;">Select Your Price Options</h2>

<form action="https://payment.me" method="get">
    <table class="price-list">
        <tr>
            <th>Option</th>
            <th>Price</th>
            <th>Select</th>
        </tr>
        <tr>
            <td>Basic Plan</td>
            <td>$10</td>
            <td class="price-box">
                <input type="checkbox" name="item" value="Basic_Plan">
            </td>
        </tr>
        <tr>
            <td>Standard Plan</td>
            <td>$20</td>
            <td class="price-box">
                <input type="checkbox" name="item" value="Standard_Plan">
            </td>
        </tr>
        <tr>
            <td>Premium Plan</td>
            <td>$30</td>
            <td class="price-box">
                <input type="checkbox" name="item" value="Premium_Plan">
            </td>
        </tr>
        <tr>
            <td>VIP Plan</td>
            <td>$50</td>
            <td class="price-box">
                <input type="checkbox" name="item" value="VIP_Plan">
            </td>
        </tr>
    </table>
    
    <a href="https://payment.me" class="submit-button" onclick="document.forms[0].submit(); return false;">Submit</

CSS

body {
            font-family: Arial, sans-serif;
        }
        .price-list {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            border-collapse: collapse;
        }
        .price-list td, .price-list th {
            border: 1px solid #ddd;
            padding: 8px;
        }
        .price-list th {
            background-color: #f2f2f2;
            text-align: center;
        }
        .price-box {
            text-align: center;
        }
        .price-box input {
            margin-top: 10px;
        }
        .submit-button {
            display: block;
            width: 100px;
            padding: 10px;
            margin: 20px auto;
            background-color: #28a745;
            color: white;
            border: none;
            cursor: pointer;
            text-align: center;
            text-decoration: none;
        }
        .submit-button:hover {
            background-color: #218838;
        }