Files
rooms/static/trip.html

61 lines
2.4 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trip - Rooms</title>
<style>
body {
font-family: var(--wa-font-sans);
max-width: 800px;
margin: 0 auto;
padding: 0.5rem;
opacity: 0;
font-size: 0.9rem;
}
.header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.header img { width: 32px; height: 32px; border-radius: 50%; }
.header .spacer { flex: 1; }
h2 { margin: 0.75rem 0 0.25rem; font-size: 1.1rem; }
h3 { margin: 0.5rem 0 0.25rem; font-size: 1rem; }
wa-card { margin-bottom: 0.5rem; display: block; --spacing: 0.6rem; }
wa-button::part(base) { padding: 0.15rem 0.4rem; min-height: 0; }
wa-button[size="small"]::part(base) { font-size: 0.8rem; }
wa-input::part(base) { min-height: 0; }
.student-header { display: flex; align-items: center; gap: 0.25rem; }
.student-header span { flex: 1; font-weight: bold; }
.parent-row { display: flex; align-items: center; gap: 0.25rem; margin-left: 0.75rem; }
.add-row { display: flex; gap: 0.25rem; margin-top: 0.25rem; margin-left: 0.75rem; }
.add-row wa-input { flex: 1; }
.add-student { display: flex; gap: 0.25rem; margin-bottom: 0.75rem; }
.add-student wa-input { flex: 1; }
</style>
</head>
<body>
<div id="signin" style="display: none; align-items: center; justify-content: center; height: 100vh;"></div>
<div id="main" style="display: none;">
<div class="header">
<img data-bind="picture" alt="Profile">
<span data-bind="name"></span>
<span class="spacer"></span>
<wa-button variant="neutral" size="small" id="logout-btn">Switch User</wa-button>
</div>
<h2 id="trip-name"></h2>
<h3>Add Student</h3>
<div class="add-student">
<wa-input id="new-student-name" placeholder="Name" size="small"></wa-input>
<wa-input id="new-student-email" placeholder="Email" size="small"></wa-input>
<wa-button size="small" id="add-student-btn">+</wa-button>
</div>
<h3>Students</h3>
<div id="students"></div>
</div>
<script type="module" src="/trip.js"></script>
</body>
</html>