JSFiddle - React, Tailwind, and code Playground

by BinaryAcid

HTML

<div class="formsection">
<form action="contactus.php" method="post">

    <h4 id="headline">Subscribe to <span class="orange">Truth For Life</span> Email Lists</h4>
    
<input type="email" name="email" id="email" placeholder="Enter email address.." title="Your e-mail address is required" required maxlength="50" pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}" >

<input id="submit" type="submit" disabled><br>     

<label><input type="checkbox" /> Daily<br><span class="micro-text">Devotional</span></label>

<label><input type="checkbox" /> Weekly<br><span class="micro-text">Broadcast Digest</span></label>
    
<label><input type="checkbox" /> Monthly<br><span class="micro-text">Letter from Alistair</span></label> 
    
</form>
</div>

CSS

.formsection {
    border: 1px solid black;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    padding: 0px 8px 10px 8px;
    width: 320px;
    height: 140px;
    
    background-color: #1E3561;
    background-image: -o-linear-gradient(20deg , rgb(255,255,255) 0%, rgb(224,224,224) 70%);
    background-image: -moz-linear-gradient(20deg , rgb(255,255,255) 0%, rgb(224,224,224) 70%);
    background-image: -webkit-linear-gradient(20deg , rgb(255,255,255) 0%, rgb(224,224,224) 70%);
    background-image: -ms-linear-gradient(20deg , rgb(255,255,255) 0%, rgb(224,224,224) 70%);
    background-image: linear-gradient(20deg , rgb(255,255,255) 0%, rgb(224,224,224) 70%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#F8F8F8');
    
    -moz-box-shadow: 2px 2px 3px #c4c5c7;
    -webkit-box-shadow: 2px 2px 3px #c4c5c7;
    box-shadow: 2px 2px 3px #c4c5c7;
}
   
#headline {
    margin-bottom: 5px;
}

input {
    margin: 0; 
    padding: 10px;
    background: #f5f5f5; 
    border: 1px solid #ccc; 
    margin: 5px 0;
    position:relative;
    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius:3px; 
    font-family: Arial, Tahoma, Verdana, FreeSans, sans-serif;
    font-size: 12px;
}

#email {
 width: 210px;   
}

.orange {
 // color: rgb(215,66,0);   
    color: blue;
}

#submit {
    background: rgb(215,66,0);
    // color: white;
    width: 70px;
}

.micro-text{
    font-size: small;
}

label {
    padding-top: 7px;
    float: left;
    padding-right: 20px;
}

JavaScript

var checkboxes = $("input[type='checkbox']"),
    submitButt = $("input[type='submit']");

checkboxes.click(function() {
    submitButt.attr("disabled", !checkboxes.is(":checked"));
});