JSFiddle - React, Tailwind, and code Playground

by moku23

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Product Pricing</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <h1>Product Pricing</h1>
        <div class="form-group">
            <label for="payoutType">Type of Payout</label>
            <select id="payoutType" class="form-control"></select>
        </div>
        <div class="form-group">
            <label for="accountSize">Account Size</label>
            <select id="accountSize" class="form-control"></select>
        </div>
        <div class="form-group">
            <label for="currency">Currency</label>
            <select id="currency" class="form-control"></select>
        </div>
        <div class="form-group">
            <label for="discount">Discount Percentage</label>
            <input type="number" id="discount" class="form-control" placeholder="Enter discount percentage">
        </div>
        <div class="form-group">
            <label for="price">Price</label>
            <input type="text" id="price" class="form-control" readonly>
        </div>
        <button id="calculatePrice" class="btn">Calculate Price</button>
    </div>
    <script src="scripts.js"></script>
</body>
</html>

CSS

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0056b3;
}