_navbar.html.erb 1.37 KB
Newer Older
Zac Wood's avatar
Zac Wood committed
1
2
3
<div class="container-fluid">
    <div class="row align-left align-sm-center align-md-right" id="navbar">
	<div class="col-8 col-sm align-center">
Zac Wood's avatar
Zac Wood committed
4
	    <a href="/" id="logo">
Zac Wood's avatar
Zac Wood committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
		<i class="fas fa-calendar-alt"></i>
		Schedules
	    </a>
	</div>

	<div class="col-4 col-sm align-center order-0 order-sm-1" onclick="toggleSchedule()">
	    <h1 style="margin-top:24px">
		<!-- <h2><i class="fas fa-shopping-cart" id="schedule-icon"></i></h2> -->
		<span class="fa-layers fa-fw" id="schedule-icon">
		    <i class="fas fa-shopping-cart"></i>
		    <span class="fa-layers fa-fw">
			<i class="fas fa-circle" data-fa-transform="shrink-3 up-12 right-12" style="color:gray"></i>
			<span id="course-counter" class="fa-layers-text fa-inverse" data-fa-transform="shrink-10 up-12 right-12" style="font-weight:600">
			    <%= @cart.length %>
			</span>
		    </span>
		</span>
	    </h1>
	</div>
	
	<div class="col-12 col-sm align-center order-1 order-sm-0">
	    <form action="/search" class="form-inline">
		<div class="form-group">
		    <div class="input-group">
			<input name="q" type="text" class="form-control" placeholder="Search by CRN, course, professor..." aria-describedby="basic-addon2">
			<div class="input-group-append">
			    <button class="btn btn-secondary" type="button">
				<i class="fas fa-search"></i>
			    </button>
			</div>
		    </div>
		</div>
	    </form>
	</div>
    </div>
</div>