JSFiddle - React, Tailwind, and code Playground

by seevis

HTML

<div class="boxPFIL">
      <div class="namePFIL">{USERNAME}</div>
      <div class="abtPFIL">
        <!-- BEGIN profile_field -->
        <div id="field_id{profile_field.ID}">
          <div><span class="gen">{profile_field.LABEL}</span> {profile_field.CONTENT}</div>
        </div><!-- END profile_field -->
      </div>
    </div>
    <div id="ktactPFIL">
      <!-- BEGIN contact_field -->
      <div class="ktactPFIL">{contact_field.CONTENT}</div><!-- END contact_field -->
    </div>

    <!-- BEGIN switch_rpg -->
    <div class="boxRPG">
      <div style="float:left; margin:0 10px 10px 0;">{RPG_IMAGE}</div>
      <!-- BEGIN rpg_fields -->
      <span class="gen">{switch_rpg.rpg_fields.F_NAME} : </span> {switch_rpg.rpg_fields.F_VALUE_NEW}<br />
      <!-- END rpg_fields -->
      {U_ADMIN_RPG}
    </div>
    <!-- END switch_rpg -->
    <!-- BEGIN switch_admin_user_comment_active --><span class="gen">{L_COMMENTS} :</span><br /><span class="gensmall">{L_MODS_AND_ADMINS}</span> {ADMIN_USER_COMMENT}
    <!-- END switch_admin_user_comment_active -->
  </div>
</table>
<br />
<script src="{JS_DIR}jquery/json/jquery.json-1.3.min.js" type="text/javascript"></script>
<script type="text/javascript">

CSS

/* BLOC INFORMATIONS PROFIL */
.abtPFIL {
  margin-top: 15px;
  width: 541px;
  height: 275px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid;
  font-size: 11px;
  border-color: grey;
  background: #FEFEFE;
  color: black;
  /* MODIFIABLE */
}


/* BLOC IMAGES CONTACT PROFIL */
#ktactPFIL {
  margin-top: 15px;
  padding: 10px 5px 10px 0;
  text-align: right;
  background: rgba(0, 0, 0, 0.8);
  /* MODIFIABLE */
}

/* IMAGES CONTACT PROFIL */
.ktactPFIL {
  display: inline-block;
  vertical-align: middle;
  margin: 0 5px;
  max-height: 25px;
  overflow: hidden;
}

.ktactPFIL img {
  margin: auto;
  max-height: 25px;
}

/* FEUILLE DE PERSONNAGE PROFIL */
.boxRPG {
  margin-top: 10px;
  width: 780px;
  padding: 10px;
  border: 1px solid;
  border-color: grey;
  background: #DEDEDE;
  /* MODIFIABLE */
}

/* CONTENU FEUILLE DE PERSONNAGE PROFIL */
.boxRPG span {
  text-transform: uppercase;
  font-size: 10px;
  color: black;
  /* MODIFIABLE */
}

.boxRPG div:nth-of-type(1) br {
  display: none;
}

/* MODERATION PROFIL */
.ajax-profil_edit {
  position: absolute;
  z-index: 15;
  margin-top: 4px;
  margin-left: 7px;
}

.ajax-profil_edit img {
  width: 7px;
}