main.html revision 417c664e
1<header></header>
2<div layout>
3	<div flex-xl="15" flex="20" class="side-nav">
4		<div layout>
5			<div flex="100">
6				<h3 class="tutorials-title">Tutorials</h3>
7			</div>
8		</div>
9		<div layout layout-align="center" class="tutorials-row" ng-repeat="tutorial in tutorials" ng-click="selectTutorial(tutorial)" 
10		ng-class="{'tutorials-active': (tutorial == selectedTutorial)}">
11			<div flex="90">
12				<i class="material-icons tutorials-icon">insert_drive_file</i>
13				<h5 class="tutorials-text">{{tutorial}}</h5>
14				<i ng-if="selectedTutorial == tutorial" class="material-icons tutorial-playing-icon">playlist_play</i>
15			</div>
16		</div>
17	</div>
18	<div flex>
19		<ul class="progress-indicator">
20		  	<li ng-repeat="step in instructions track by $index" ng-class="{completed: ($index <= pointer)}"><span class="bubble"></span>Step {{$index+1}}</li>
21		</ul>
22		<div layout>
23			<div flex>
24				<md-card>
25					<md-card-header>
26					    <md-card-header-text>
27					    	<div layout>
28					    		<div flex>
29					    			<span class="md-title card-title">{{selectedTutorial}}</span>
30					    		</div>
31					    		<div flex>
32					    			<div class="clipboard-div" ng-if="selectedTutorial" ngclipboard data-clipboard-text="{{commands[pointer]}}">
33					    				<span class="clipboard-text">Copy to clipboard</span>
34					    				<i class="material-icons clipboard-icon">content_paste</i>
35					    			</div>
36					    		</div>
37					    	</div>
38					    </md-card-header-text>
39					</md-card-header>
40					<md-card-content class="instructions-content">
41						<div layout layout-align="center">
42							<div flex="80">
43								<center>
44									<h2 class="no-tutorial-text" ng-if="selectedTutorial == ''">Please select a tutorial from the list on the left</h2>
45									<h4 class="instruction-text">{{instructions[pointer]}}</h4>
46				   					<p class="command-text">{{commands[pointer]}}</p>
47				   				</center>
48							</div>
49						</div>
50				 	</md-card-content>
51				 	<md-card-footer ng-if="pointer != null" class="card-footer">
52				 		<md-progress-circular ng-if="!stepDone" class="card-loader" md-mode="indeterminate"></md-progress-circular>
53				 		<div ng-if="stepDone" class="card-button-group" ng-click="nextStep()">
54				 			<i class="material-icons card-button">navigate_next</i>
55				 			<span class="card-button-text">next</span>
56				 		</div>
57					</md-card-footer>
58				</md-card>
59			</div>
60		</div>
61		<div layout>
62			<div flex>
63				<div id="window">
64				 	<div id="toolbar">
65						<div class="top">
66							<div id="lights">
67								<div class="light red">
68									<div class="glyph">×</div>
69									<div class="shine"></div>
70									<div class="glow"></div>
71								</div>				
72								<div class="light yellow">
73									<div class="glyph">-</div>
74									<div class="shine"></div>
75									<div class="glow"></div>
76								</div>
77								<div class="light green">
78									<div class="glyph">+</div>
79									<div class="shine"></div>
80									<div class="glow"></div>
81								</div>
82							</div>
83							<div id="title">
84								<div class="folder">
85									<div class="tab"></div>
86									<div class="body"></div>
87								</div>
88								<span>vppsb - {{selectedTutorial}}</span>
89							</div>
90							<div id="bubble">
91								<div class="shine"></div>
92								<div class="glow"></div>
93							</div>
94						</div>
95					</div>
96					<div id="body">
97						<div class="code-block">
98							<h4 class="command-response">{{response}}</h4>
99						</div>
100					</div>	
101				</div>
102			</div>
103		</div>
104	</div>
105</div>