93 lines
4.6 KiB
PHP
93 lines
4.6 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Classroom - Feed</title>
|
|
<meta name="description" content="A social media platform for the classroom, built with Flatlogic.">
|
|
<meta name="keywords" content="classroom, social media, education, assignments, notes, teacher, student, flatlogic">
|
|
<meta property="og:title" content="Classroom">
|
|
<meta property="og:description" content="A social media platform for the classroom, built with Flatlogic.">
|
|
<meta property="og:image" content="">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:image" content="">
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body>
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-light sticky-top">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="#">Classroom</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<ul class="navbar-nav ms-auto">
|
|
<li class="nav-item"><a class="nav-link active" href="#">Feed</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="#">Messages</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="#">Profile</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<main class="container mt-4">
|
|
<div class="row">
|
|
<div class="col-lg-8 mx-auto">
|
|
<?php
|
|
$posts = [
|
|
[
|
|
'author' => 'Dr. Evelyn Reed',
|
|
'avatar' => 'https://i.pravatar.cc/150?img=1',
|
|
'timestamp' => '2 hours ago',
|
|
'type' => 'Assignment',
|
|
'content' => 'Reminder: The Chapter 5 reading quiz is tomorrow. Make sure you have reviewed the key concepts of cellular respiration. Good luck!'
|
|
],
|
|
[
|
|
'author' => 'Mr. David Chen',
|
|
'avatar' => 'https://i.pravatar.cc/150?img=2',
|
|
'timestamp' => '1 day ago',
|
|
'type' => 'Note',
|
|
'content' => 'Great discussion in class today about the French Revolution! Here is a link to the documentary we talked about: [link]. I highly recommend watching it.'
|
|
],
|
|
[
|
|
'author' => 'Admin',
|
|
'avatar' => 'https://i.pravatar.cc/150?img=3',
|
|
'timestamp' => '3 days ago',
|
|
'type' => 'Announcement',
|
|
'content' => 'Parent-Teacher conferences are scheduled for next week. Please sign up for a time slot using the link sent to your email.'
|
|
]
|
|
];
|
|
|
|
foreach ($posts as $post) {
|
|
?>
|
|
<div class="card post-card">
|
|
<div class="card-header">
|
|
<img src="<?php echo $post['avatar']; ?>" alt="<?php echo $post['author']; ?>" class="avatar">
|
|
<div>
|
|
<h6 class="post-author mb-0"><?php echo $post['author']; ?></h6>
|
|
<small class="post-timestamp"><?php echo $post['timestamp']; ?> · <?php echo $post['type']; ?></small>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<p class="post-content"><?php echo htmlspecialchars($post['content']); ?></p>
|
|
</div>
|
|
<div class="card-footer post-actions">
|
|
<button class="btn btn-like"><i data-feather="heart"></i> Like</button>
|
|
<button class="btn btn-comment"><i data-feather="message-square"></i> Comment</button>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
|
<script>
|
|
feather.replace();
|
|
</script>
|
|
</body>
|
|
</html>
|