shared components for redesigned layout

This commit is contained in:
Zachary Chai
2016-10-25 10:10:27 -04:00
parent 3529e97a08
commit 551b64bb59
10 changed files with 46 additions and 150 deletions

View File

@ -0,0 +1,14 @@
<div class="content-box">
<div class="row">
<div class="center-block col-sm-4">
<div class="panel panel-default">
<div class="panel-body">
<h3 class="title-wrapper text-center">
<%= yield :title %>
</h3>
<%= yield %>
</div>
<%= yield :footer %>
</div>
</div>
</div>

View File

@ -0,0 +1,9 @@
<div class="input-group input-spacing">
<% @current_user = user %>
<%= text_field :current_user, :name, class: 'form-control meeting-user-name', placeholder: 'Enter your name' %>
<span class="input-group-btn">
<button type="button" class="btn btn-primary meeting-join">
Join
</button>
</span>
</div>

View File

@ -0,0 +1,13 @@
<div <%= "hidden" if hidden %> class="meetin-url-wrapper">
<div class="input-group">
<input type="text" readonly="readonly" class="form-control meeting-url" data-path="<%= @user.room_url if @user %>"/>
<span class="input-group-btn">
<button type="button" class="btn btn-default meeting-url-copy">
<i class="fa fa-paperclip" aria-hidden="true"></i>
</button>
</span>
</div>
<small>
<em>Copy this URL to invite others to the meeting</em>
</small>
</div>

View File

@ -0,0 +1,7 @@
<div class="row">
<div class="page-header">
<h1 class="text-center">
<%= title %>
</h1>
</div>
</div>