-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
142 lines (129 loc) · 5.75 KB
/
index.html
1
2
3
4
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Commercetools Functional Architect Course</title>
<link rel="icon" type="image/png" href="img/commercetools-symbol-mono.png" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" />
<!-- Custom CSS -->
<link rel="stylesheet" href="style.css" />
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<!-- Navbar -->
<!-- Navbar -->
<nav class="navbar">
<div class="container-fluid d-flex justify-content-between align-items-center">
<!-- Left side: Logo and Course Name -->
<div class="d-flex align-items-center">
<a class="navbar-brand" href="#">
<img src="img/commercetools-logo-white.png" alt="commercetools" />
</a>
<span class="navbar-course ms-2">Composable Commerce Functional Architect Training</span>
</div>
<!-- Right side: User greeting and current date -->
<div class="d-flex align-items-center">
<span id="userGreeting" class="navbar-user me-3"></span>
<span id="currentDate" class="navbar-date"> </span>
</div>
</div>
</nav>
<!-- Progress Bar -->
<div class="container mt-3">
<div id="progressBarContainer" class="progress">
<div id="progressBar" class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%;" aria-valuemin="0" aria-valuemax="100">0%</div>
</div>
</div>
<br />
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Left Column: Session Navigation Accordion -->
<div class="col-md-3">
<div class="accordion" id="sessionAccordion">
<!-- Sessions are loaded dynamically -->
</div>
</div>
<!-- Right Column: Two Rows -->
<div class="col-md-9">
<!-- Top Row: Main Content & Solutions/Recommendations -->
<div class="row" id="contentRow">
<!-- Main Content Area -->
<div class="col-md-8" id="mainContent">
<h3>Welcome!</h3>
<p>Select a session from the left panel to view details.</p>
</div>
<!-- Solutions & Recommendations Area -->
<div class="col-md-4" id="solutionContent">
<!-- Display trainer recommendations or task solutions here -->
</div>
</div>
<!-- Bottom Row: Notes Section with Vertical Formatting Toolbar -->
<div class="row" id="notesRow">
<div class="col-12">
<h5></h5>
<div class="notes-container">
<!-- Editable Notes Area -->
<div id="notesEditor" contenteditable="true" class="note-editor">
<!-- Saved notes will load here -->
</div>
<!-- Vertical Notes Toolbar -->
<div id="notesToolbar">
<button type="button" class="btn btn-outline-secondary btn-sm" onclick="formatText('bold')"><b>B</b></button>
<button type="button" class="btn btn-outline-secondary btn-sm" onclick="formatText('italic')"><i>I</i></button>
<button type="button" class="btn btn-outline-secondary btn-sm" onclick="formatText('insertUnorderedList')">• List</button>
<button id="saveNotesBtn" class="btn btn-outline-secondary btn-sm">💾</button>
</div>
</div>
<small id="saveMessage" style="display:none; color: green;">✅ Notes saved!</small>
<div><small><i>Notes are auto-saved every 1 minute.</i></small></div>
</div>
</div>
</div>
</div>
</div>
<!-- User Info Modal -->
<div class="modal fade" id="userInfoModal" tabindex="-1" aria-labelledby="userInfoModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title w-100 text-center" id="userInfoModalLabel">👋 Welcome to the Commercetools Functional Architect Course!</h5>
</div>
<div class="modal-body">
<p class="lead text-center">
We're excited to have you here! 🚀<br> Before we begin, please enter your details so we can personalize your learning experience.
</p>
<form id="userInfoForm">
<div class="row">
<div class="col-md-6">
<div class="mb-3">
<label for="firstName" class="form-label text-start d-block">First Name</label>
<input type="text" class="form-control" id="firstName" required placeholder="Enter your first name">
</div>
</div>
<div class="col-md-6">
<div class="mb-3">
<label for="lastName" class="form-label text-start d-block">Last Name</label>
<input type="text" class="form-control" id="lastName" required placeholder="Enter your last name">
</div>
</div>
</div>
<div class="mb-3">
<label for="email" class="form-label text-start d-block">Email Address</label>
<input type="email" class="form-control" id="email" required placeholder="Enter your email">
</div>
<button type="submit" class="btn btn-primary w-100">🚀 Get Started</button>
</form>
</div>
</div>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script src="script.js"></script>
</body>
</html>