Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
- <title>Classroom Dashboard</title>
- <style>
- body {
- font-family: Arial, sans-serif;
- margin: 0;
- padding: 0;
- background-color: #f0f2f5;
- }
- header {
- background-color: #0044cc;
- color: white;
- padding: 10px 20px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- header .tabs {
- display: flex;
- gap: 15px;
- }
- header .tabs a {
- color: white;
- text-decoration: none;
- padding: 5px 10px;
- border-radius: 5px;
- }
- header .tabs a:hover {
- background-color: #0033aa;
- }
- main {
- padding: 20px;
- }
- .class-card {
- background: #e0f7fa;
- border: 1px solid #b2ebf2;
- border-radius: 8px;
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
- padding: 15px;
- margin: 10px 0;
- width: 200px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- }
- .class-card-content {
- text-align: center;
- font-size: 14px;
- }
- .action-icons {
- display: flex;
- gap: 10px;
- justify-content: center;
- margin-top: 10px;
- }
- .start-class-button {
- background-color: #28a745;
- color: white;
- border: none;
- padding: 8px 12px;
- border-radius: 5px;
- cursor: pointer;
- margin-top: 10px;
- font-size: 14px;
- }
- .new-courses {
- color: #28a745;
- }
- .extra-icons {
- display: none;
- gap: 10px;
- }
- .extra-icons.active {
- display: flex;
- }
- /* Modal Styles */
- .modal {
- display: none;
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.5);
- align-items: center;
- justify-content: center;
- }
- .modal-content {
- background-color: white;
- padding: 20px;
- width: 350px;
- border-radius: 8px;
- position: relative;
- }
- .modal-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20px;
- }
- .modal-header .close {
- cursor: pointer;
- font-size: 20px;
- }
- .modal-header h2 {
- font-size: 16px;
- margin: 0;
- }
- .modal-body {
- margin-bottom: 20px;
- }
- .green-bar {
- background-color: #28a745;
- color: white;
- padding: 8px;
- border-radius: 5px;
- display: flex;
- align-items: center;
- margin-bottom: 15px;
- }
- .green-bar .fas {
- margin-right: 10px;
- }
- .clock-section {
- display: flex;
- gap: 10px;
- align-items: center;
- margin-bottom: 20px;
- }
- .clock-section input {
- width: 50px;
- padding: 5px;
- }
- .buttons-container {
- display: flex;
- gap: 10px;
- }
- .start-btn {
- background-color: #28a745;
- color: white;
- border: none;
- padding: 10px 20px;
- border-radius: 5px;
- cursor: pointer;
- width: 100%;
- }
- /* Class Tools Section */
- .class-tools {
- background-color: #0044cc;
- color: white;
- padding: 15px;
- margin-top: 20px;
- border-radius: 8px;
- }
- .class-tools h3 {
- margin: 0;
- font-size: 18px;
- }
- .tools-list {
- margin-top: 10px;
- }
- .tools-list li {
- margin: 5px 0;
- }
- </style>
- </head>
- <body>
- <header>
- <h1>My Classes</h1>
- <div class="tabs">
- <a href="#">Home</a>
- <a href="#">Courses</a>
- <a href="#">Announcements</a>
- <a href="#">Profile</a>
- </div>
- <div>
- <button class="start-class-button" onclick="openModal()">Start Class</button>
- </div>
- </header>
- <main>
- <h2>Classroom / Courses <span class="new-courses">NEW!</span></h2>
- <div class="class-card">
- <div class="class-card-content">
- <h3>David Conner</h3>
- <p>Start class to see student activity...</p>
- <small><a href="#">Find out more</a></small>
- </div>
- <div class="action-icons">
- <i class="fas fa-video"></i>
- <i class="fas fa-user-graduate"></i>
- <i class="fas fa-comments"></i>
- </div>
- </div>
- <div class="class-card">
- <div class="class-card-content">
- <h3>James Conner</h3>
- <p>Start class to see student activity...</p>
- <small><a href="#">Find out more</a></small>
- </div>
- <div class="action-icons">
- <i class="fas fa-video"></i>
- <i class="fas fa-user-graduate"></i>
- <i class="fas fa-comments"></i>
- </div>
- </div>
- <!-- Class Tools Section -->
- <div class="class-tools">
- <h3>Class Tools</h3>
- <ul class="tools-list">
- <li><i class="fas fa-pencil-alt"></i> Pause Internet</li>
- <li><i class="fas fa-users"></i> Manage Students</li>
- <li><i class="fas fa-chart-line"></i> View Screen</li>
- </ul>
- </div>
- </main>
- <!-- Modal for Start Class Session -->
- <div class="modal" id="startClassModal">
- <div class="modal-content">
- <div class="modal-header">
- <h2>Start Class Session</h2>
- <span class="close" onclick="closeModal()">×</span>
- </div>
- <div class="modal-body">
- <div class="green-bar">
- <i class="fas fa-info-circle"></i>
- Please enter time in hh:mm format
- </div>
- <div class="clock-section">
- <i class="fas fa-clock"></i>
- <label for="hour">Session ends at: </label>
- <input type="number" id="hour" placeholder="hh" min="1" max="12"> :
- <input type="number" id="minute" placeholder="mm" min="0" max="59">
- <div class="buttons-container">
- <button>AM</button>
- <button>PM</button>
- </div>
- </div>
- </div>
- <button class="start-btn" onclick="startClass()">Start</button>
- </div>
- </div>
- <script>
- function openModal() {
- const modal = document.getElementById('startClassModal');
- modal.style.display = 'flex';
- }
- function closeModal() {
- const modal = document.getElementById('startClassModal');
- modal.style.display = 'none';
- }
- function startClass() {
- const hour = document.getElementById('hour').value;
- const minute = document.getElementById('minute').value;
- console.log(`Class starts at ${hour}:${minute}`);
- closeModal();
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement