-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-projects.php
More file actions
31 lines (31 loc) · 1.49 KB
/
Copy pathpython-projects.php
File metadata and controls
31 lines (31 loc) · 1.49 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
<?php
include 'config.php';
include 'header.php';
?>
<main>
<h2>Python Projects</h2>
<div class="cards-grid">
<?php
$projects = [
["title" => "Python Web Scraper", "description" => "Build a web scraper using Python.", "canvas_link" => "https://canvas.example.com/project2"],
["title" => "Data Analysis Tool", "description" => "Create a tool to analyze datasets.", "canvas_link" => "https://canvas.example.com/project3"],
["title" => "Automation Script", "description" => "Develop scripts to automate tasks.", "canvas_link" => "https://canvas.example.com/project4"],
["title" => "Advanced Typing Game", "description" => "Extend the basic typing game with features like word mode, timer, and high scores.", "canvas_link" => "https://canvas.example.com/project5"]
];
foreach ($projects as $project) {
echo "<div class='course-card'>";
echo "<div class='course-card__top'></div>";
echo "<div class='course-card__body'>";
echo "<h3 class='course-card__title'>{$project['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='{$project['canvas_link']}' class='btn' target='_blank'>Submit on Canvas</a>";
echo "</div>";
echo "</div>";
}
?>
</div>
</main>
<?php include 'footer.php'; ?>