JSFiddle - React, Tailwind, and code Playground

HTML

<!doctype html>
<html>

<head>
    <meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Testing</title>
    <link rel="stylesheet" href="sample.css">
	<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="script/myscript.js"></script>
	    
</head>

<body>
<div class="product-all-contents">
<div class="product-contents">
   <div class="product" id="franchisehub">
      <img class="black"  src="https://thebettersoftwarecompany.com/wp-content/uploads/2018/05/Franchise-Hub.png" alt="" width="59" height="59" class="aligncenter size-full wp-image-7942">
      <img class="white" src="https://thebettersoftwarecompany.com/wp-content/uploads/2018/06/franchise-hub-white.png" alt="" width="59" height="59" class="aligncenter size-full wp-image-7942">
      
	  <p style=" font-size: 15px; font-family: 'Roboto'; margin-left: 7%; margin-right: 7%; line-height: 1.2;
         color: rgb(58, 59, 60);">Franchise Hub</p>
   </div>
   
   <div class="product" id="cloudbasedmobile" style="background-color:green;">
      <img class="black" style="display:none;" src="https://thebettersoftwarecompany.com/wp-content/uploads/2018/05/cloud-grey.png" alt="" width="70" height="50" class="aligncenter size-full wp-image-8042" />
      <img class="white"  src="https://thebettersoftwarecompany.com/wp-content/uploads/2018/06/cloud-based-mobile-white.png" alt="" width="70" height="50" class="aligncenter size-full wp-image-8042" />
      
	  <p  style=" font-size: 15px;
         font-family: 'Roboto';line-height:1.2;
         color:white;">Cloud Based & Mobile</p>
   </div>
   <div class="product" id="businessanalytics">
      <img class="black"  src="https://thebettersoftwarecompany.com/wp-content/uploads/2018/05/business-analytics.png" alt="" width="53" height="53" class="aligncenter size-full wp-image-7949" /> 
      <img class="white"...

CSS

.product-all-contents{
 background-color: #f0f0f0;
}

.product-contents {
  margin-left: 15%;
  margin-right: 15%;
  display: flex;
  justify-content: space-between;
 
  align-items: center;
  padding: 1rem;
 
}

.product-contents .product {
  width: 10%;
  text-align: center;
  height: 150px;
  padding-top: 1%;
  padding-left: 1%;
  padding-right: 1%;
  border-style: solid;
  border-width: 3px;
  border-color: rgb(145, 147, 150);
  background-color: white;
  border-radius: 10px
}

.ipads {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.tvs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}


.franchise-hub-text, .cloud-based-text, .business-analytics-text, .tech-support-text, .order-management-text, .employee-management-text, .white-label-text,
.brand-label-text, .lead-tracking-text, .custom-invoicing-text, .goal-setting-text, .customization-tools-text, .royalty-calculator-text, .email-marketing-text
 {
  width: 50%;
}
div.goal-setting, div.customization-tools, div.custom-invoicing, div.lead-tracking, div.email-marketing, div.royalty-calculator, div.brand-control,
div.franchisehubtv, div.cloudbasedtextipad, div.business-analytics,div.tech-support, div.employee-management, div.order-management, div.white-label  {
  display: flex;
  margin-left: 15%;
  margin-right: 15%;
  align-items: center;
  background-color: #f0f0f0;
  padding: 2%;
  margin-bottom: 5%;
}

.product-quotes
{
  display: block;	
  padding: 20px 11px;
  width: 90%;
  color:#3b3b3d;
  background: white;
  border-radius: 2px;
  line-height: 1.625;
  font-family: 'Roboto'; 
  font-weight: normal;"
}

.arrow-down {
  width: 0; 
  height: 0;
  margin: auto;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 40px solid #f0f0f0;
}

.white {
  display: none;
}

JavaScript

(function($) { // IIFE to enable `$` as jQuery
  $(function() { // document ready

    $("#franchisehub").click(function() {
      if ($('.franchisehubtv').css('display') == "flex") {
        $('.arrow-down').css('display', 'none');
        $('.franchisehubtv').css('display', 'none');
		$('#franchisehub img.white').css('display', 'inline-block');   
    $('#franchisehub img.black').css('display', 'none');  
       
      } else {
        resetAll();
        $('#franchisehub').css('background-color', 'green');
        $('#franchisehub p').css('color', 'white');
        $('.franchisehubtv').css('display', 'flex');
		$('#franchisehub img.black').css('display', 'none');
		$('#franchisehub img.white').css('display', 'inline-block');
		
      }

    });

    $("#cloudbasedmobile").click(function() {

      if ($('.cloudbasedtextipad').css('display') == "flex") {
        $('.cloudbasedtextipad').css('display', 'none');
        $('.arrow-down').css('display', 'none');
		$('#cloudbasedmobile img.black').css('display','none');
      } else {
        resetAll();
        $('#cloudbasedmobile').css('background-color', 'green');
        $('#cloudbasedmobile p').css('color', 'white');
        $('.cloudbasedtextipad').css('display', 'flex');
		$('#cloudbasedmobile img.white').css('display', 'inline-block');
		$('#cloudbasedmobile img.black').css('display', 'none');
		
      }
    });
	
	    $("#businessanalytics").click(function() {

      if ($('.business-analytics').css('display') == "flex") {
        $('.business-analytics').css('display', 'none');
        $('.arrow-down').css('display', 'none');
		$('#businessanalytics img.black').css('display', 'none');
		
      } else {
        resetAll();
        $('#businessanalytics').css('background-color', 'green');
        $('#businessanalytics p').css('color', 'white');
        $('.business-analytics').css('display', 'flex');
		$('#businessanalytics img.white').css('display', 'inline-block');
		$('#businessanalytics...