JSFiddle - React, Tailwind, and code Playground

by andrei

HTML

<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<h3>Polar Chart</h3>

<div id="container" style="min-width: 400px; max-width: 900px; height: 600px; margin: 0 auto"></div>

<h3>Job Models</h3>

<div id="models">
    <table class="table table-bordered table-striped">
        <thead>
            <tr>
                <th>Criteria</th>
            </tr>
        </thead>
        <tbody></tbody>
    </table>
</div>

<h3>Combined Weights</h3>

<div id="results"></div>
<div class="legend">
    <p><b>Compensation</b>: ["$ now", "$ potentially"]</p>
    <p><b>Work/life balance</b>: ["commute", "work/life balance", "manager"]</p>
    <p><b>Career</b>: ["career advance", "career potential"]</p>
    <p><b>Learning</b>: ["people", "career potential", "challenging", "learning opportunity"]</p>
    <p><b>Emotional</b>: ["brand", "people", "interest to the product", "manager"]</p>
</div>

SCSS

ol {
    font-size: 12px;
    font-family: Helvetica;
    margin-left: 0;
    padding-left: 16px;
    margin-top: 5px;
    padding-top: 0;
}
#models table {
    width: 100%;
    td, th {
        padding: 3px;
        &.criteria {
            text-align:left;  
        }
        &:not(.criteria) {
            text-align:center;
        }
            &.highest {
                
            }    
    }   
}

.legend {
    font-size: 12px;
    font-family: Helvetica, Arial;
    p {
        padding: 0 0;
        margin: 5px 0;
    }
}

h5 {
    margin-bottom: 0;
    
}
body {
    width: 900px;
    margin: 0 auto;
}
#results > div {
    display: inline-block;
    width: 150px;
}

JavaScript

var JOBS = {
    "FirstBest": {
        "impact": 10, // Main goal for 2014 is to rewrite their app
        "impact after one year": 7, // maintain the product and add new features
        "brand": 5, // nothing special to me, but big in the industry
        "office atmosphere": 7, // good-looking office
        "commute": 10, // very close to the house!
        "interest to the product": 4, //  insurance product
        "$ now": 9, // one of the highest
        "$ potentially": 8, // Not too many options and not a startup anymore
        "career advance": 9, // taking lead role. maybe a few other devs under me
        "work/life balance": 9, // unlimited vacations, close to me, wfh
        "people": 9, // everyone was friendly and nice
        "manager": 9, // Alex was extremely nice, but haven't worked with him yet
        "career potential": 8, // maybe become their architect some day nothing special though...
        "challenging": 8, // somewhat
        "learning opportunity": 7 // Not too much
    },
        "Pazien": {
        "impact": 10, // the only UI guy in the company so far
        "impact after one year": 10, // still important
        "brand": 5, // nothing special...
        "office atmosphere": 5, // ok office
        "commute": 7, // 15 minutes drive
        "interest to the product": 8, // seems usefull
        "$ now": 10, // Small company. Great offer
        "$ potentially": 9, // can be huge!
        "career advance": 8, // taking lead ui role
        "work/life balance": 8, // seems good
        "people": 8, // some quite, some smart
        "manager": 8, // Jason was very knowledgeable 
        "career potential": 8, // maybe maybe they hire new jr or sr
        "challenging": 8, // somewhat
        "learning opportunity": 9 // python + django
    },
        "ByteLight": {
        "impact": 10, // the only UI guy in the company so far
        "impact after one year": 10, // still important
        "brand": 6, // sounds cool, but still...