JSFiddle - React, Tailwind, and code Playground

by Ilya Karpuk

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<div class="tabs">
  <div class="tab">
    <div class="tab-box"></div>
  </div>
  <div class="tab active">
    <div class="tab-box"></div>
  </div>
</div>
<div class="bar">
  <div class="forback">
    <div class="back navibutton">
      <i class="fa fa-chevron-left naviicon"></i>
    </div>
    <div class="for navibutton">
      <i class="fa fa-chevron-right naviicon"></i>
    </div>
  </div>
  <div class="address">
    <input type="text" id="address-input" class="address-input"/>
  </div>
</div>
<div class="content">
  <object type="text/html" data="http://www.google.com/" id="iframe">
  </object>
</div>

CSS

body {
  padding: 100px;
  background-image: url('http://pcwallart.com/images/gradient-background-wallpaper-4.jpg');
}

.tabs {
  height: 40px;
  padding: 0;
  overflow: visible;
}

.tab {
  width: 150px;
  height: 40px;
  overflow: hidden;
  float: left;
}

.tab-box {
  height: 40px;
  background: #fff;
}

.tab.active {
  z-index: 40;
  position: relative;
}

.tab.active .tab-box {
  background-color: rgba(255, 255, 255, 0.2);
}

.bar {
  position: relative;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
}

.forback {
  width: 41px;
  height: 20px;
  position: absolute;
  top: 50%; 
  left: 10px;
  transform: translate(0, -50%);
}

.navibutton {
  height: 20px;
  width: 20px;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
}

.naviicon {
  width: 20px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  transform: translate(0, 15%);
}

.for {
  float: right;
}

.address {
  position: absolute;
  height: 20px;
  right: 20px;
  left: 70px;
  top: 50%;
  transform: translate(0, -50%);
  background-color: rgba(255, 255, 255, 0.2);
}

.address-input {
  width: 98%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background-color: transparent;
  color: white;
  padding: 0 1%;
  outline: none;
}

.content {
  z-index: 1;
  border: 1px solid #ccc;
  background: #eee;
  position: relative;
}

.clear {
  clear: both;
}

#iframe {
  width: 100%;
  border: none;
  height: 100%;
}

JavaScript

$('.tab').click(function() {
  $('.tab').removeClass('active');
  $(this).addClass('active');
});

$("#address-input").keyup(function(event){
    if(event.keyCode == 13){
        $("#iframe").attr('src', event.target.value);   
    }
});