-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-exercises.php
More file actions
64 lines (60 loc) · 2.81 KB
/
Copy pathpython-exercises.php
File metadata and controls
64 lines (60 loc) · 2.81 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
<?php
include 'config.php';
include 'header.php';
?>
<style>
/* Ensure proper layout for content pages */
html, body {
height: auto;
min-height: 100%;
}
body {
position: relative;
padding-bottom: 0;
}
main {
padding-bottom: 3em;
}
/* Override global footer positioning for this page */
footer#footer-override {
position: relative !important;
margin-top: 3em !important;
bottom: auto !important;
}
body > footer {
position: relative !important;
margin-top: 3em !important;
bottom: auto !important;
}
</style>
<main>
<h2>Python Exercises</h2>
<div class="cards-grid">
<?php
$exercises = [
["title" => "Basic Python Script", "description" => "Write a simple Python program.", "canvas_link" => "https://canvas.instructure.com/courses/11879011/modules/items/144587765"],
["title" => "Data Structures Lab", "description" => "Work with lists, dictionaries, and sets.", "canvas_link" => "https://canvas.instructure.com/courses/11879011/modules/items/144590246"],
["title" => "Functions Practice", "description" => "Create and use functions and modules.", "canvas_link" => "https://canvas.example.com/assignment3"],
["title" => "Keyboard Input Basics", "description" => "Practice basic keyboard input and user interaction.", "canvas_link" => "https://canvas.example.com/assignment4"],
["title" => "List Manipulation Lab", "description" => "Create and manipulate lists for the typing game.", "canvas_link" => "https://canvas.example.com/assignment5"],
["title" => "Random Module Practice", "description" => "Generate random letters and challenges.", "canvas_link" => "https://canvas.example.com/assignment6"],
["title" => "Typing Game Functions", "description" => "Build modular functions for the complete game.", "canvas_link" => "https://canvas.example.com/assignment7"],
["title" => "Complete Typing Game", "description" => "Implement the full typing game with scoring.", "canvas_link" => "https://canvas.example.com/assignment8"]
];
foreach ($exercises as $exercise) {
echo "<div class='course-card'>";
echo "<div class='course-card__top'></div>";
echo "<div class='course-card__body'>";
echo "<h3 class='course-card__title'>{$exercise['title']}</h3>";
echo "<ul class='course-card__meta'>";
echo "<li>Created 3 weeks ago</li>";
echo "<li>Updated 3 weeks ago</li>";
echo "</ul>";
echo "<a href='{$exercise['canvas_link']}' class='btn' target='_blank'>Start on Canvas</a>";
echo "</div>";
echo "</div>";
}
?>
</div>
</main>
<?php include 'footer.php'; ?>