-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcourse_detail.ejs
More file actions
73 lines (68 loc) · 3.67 KB
/
course_detail.ejs
File metadata and controls
73 lines (68 loc) · 3.67 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= course.name %> - Tech Grow Courses</title>
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<header>
<div class="container">
<a href="/" class="header-logo-link">
<img src="/img/Tech%20Grow%20website%20logo.jpg" alt="Tech Grow Logo" class="header-logo">
</a>
<h1>Course Details</h1>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/courses">Courses</a></li>
<li><a href="/instructors">Instructors</a></li>
<li><a href="/events">Events</a></li>
<li><a href="/faqs">FAQ</a></li>
<li><a href="/contact">Contact</a></li>
<li><a href="/pythonpath">Python Explorer</a></li>
</ul>
</nav>
</div>
</header>
<main>
<% if (course) { %>
<section class="course-detail-section">
<div class="container">
<h2><%= course.name %></h2>
<p class="course-detail-instructor">Instructor: <%= course.instructor %></p>
<p class="course-detail-duration">Duration: <%= course.duration %></p>
<div class="course-meta">
<p><i class="far fa-calendar-alt"></i> Starts: <strong><%= course.start_date || 'N/A' %></strong></p>
<p><i class="fas fa-book-open"></i> Lessons/Week: <strong><%= course.lessons_per_week || 'N/A' %></strong></p>
<p><i class="fas fa-dollar-sign"></i> Cost: <strong>$<%= (course.cost !== null && course.cost !== undefined) ? course.cost.toFixed(2) : 'N/A' %></strong></p>
</div>
<p class="course-detail-description"><%= course.description || 'No detailed description available for this course.' %></p>
<a href="/courses" class="button">Back to Courses</a>
<button class="button enroll-button">Enroll Now!</button>
</div>
</section>
<% } else { %>
<section class="course-detail-section">
<div class="container">
<h2>Course Not Found</h2>
<p>The course you are looking for does not exist or an error occurred.</p>
<a href="/courses" class="button">Back to Courses</a>
</div>
</section>
<% } %>
</main>
<footer>
<img src="/img/Tech%20Grow%20website%20logo.jpg" alt="Tech Grow Logo" height="40" style="vertical-align: middle; margin-right: 10px;">
<p style="display: inline-block; vertical-align: middle;">2025 Tech Grow ©</p>
<div class="social-icons">
<a href="#" target="_blank" aria-label="Tech Grow on LinkedIn"><i class="fab fa-linkedin-in"></i></a>
<a href="#" target="_blank" aria-label="Tech Grow on X (Twitter)"><i class="fab fa-x-twitter"></i></a>
<a href="#" target="_blank" aria-label="Tech Grow on Facebook"><i class="fab fa-facebook-f"></i></a>
<a href="#" target="_blank" aria-label="Tech Grow on Instagram"><i class="fab fa="fab fa-instagram"></i></a>
</div>
</footer>
</body>
</html>