Spaces:
Sleeping
Sleeping
Create dashboard.html
Browse files- dashboard.html +120 -0
dashboard.html
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Dashboard</title>
|
| 7 |
+
<style>
|
| 8 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
|
| 9 |
+
|
| 10 |
+
body, html {
|
| 11 |
+
margin: 0;
|
| 12 |
+
padding: 0;
|
| 13 |
+
font-family: 'Inter', sans-serif;
|
| 14 |
+
background: url('./public/space.jpg') no-repeat center center fixed;
|
| 15 |
+
background-size: cover;
|
| 16 |
+
background-color: #1a1a1a;
|
| 17 |
+
display: flex;
|
| 18 |
+
align-items: center;
|
| 19 |
+
justify-content: center;
|
| 20 |
+
height: 100vh;
|
| 21 |
+
color: #f5f5f5;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.container {
|
| 25 |
+
background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(240, 240, 240, 0.85));
|
| 26 |
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
| 27 |
+
border-radius: 12px;
|
| 28 |
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
|
| 29 |
+
backdrop-filter: blur(10px);
|
| 30 |
+
-webkit-backdrop-filter: blur(10px);
|
| 31 |
+
width: 100%;
|
| 32 |
+
max-width: 400px;
|
| 33 |
+
padding: 40px;
|
| 34 |
+
box-sizing: border-box;
|
| 35 |
+
text-align: center;
|
| 36 |
+
position: relative;
|
| 37 |
+
overflow: hidden;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.container:before {
|
| 41 |
+
content: '';
|
| 42 |
+
position: absolute;
|
| 43 |
+
top: 0;
|
| 44 |
+
left: 0;
|
| 45 |
+
width: 100%;
|
| 46 |
+
height: 100%;
|
| 47 |
+
background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
|
| 48 |
+
z-index: 1;
|
| 49 |
+
pointer-events: none;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.container > * {
|
| 53 |
+
position: relative;
|
| 54 |
+
z-index: 2;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.avatar {
|
| 58 |
+
width: 80px;
|
| 59 |
+
height: 80px;
|
| 60 |
+
border-radius: 50%;
|
| 61 |
+
margin-bottom: 20px;
|
| 62 |
+
border: 2px solid #fff;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.container h1 {
|
| 66 |
+
margin-bottom: 20px;
|
| 67 |
+
font-size: 26px;
|
| 68 |
+
font-weight: 600;
|
| 69 |
+
color: #333;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.container p {
|
| 73 |
+
font-size: 15px;
|
| 74 |
+
color: #666;
|
| 75 |
+
margin-bottom: 30px;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.button {
|
| 79 |
+
padding: 12px 0;
|
| 80 |
+
margin: 10px 0;
|
| 81 |
+
font-size: 16px;
|
| 82 |
+
border: none;
|
| 83 |
+
border-radius: 5px;
|
| 84 |
+
cursor: pointer;
|
| 85 |
+
width: 100%;
|
| 86 |
+
transition: background-color 0.3s ease, color 0.3s ease;
|
| 87 |
+
background-color: #FAFAFA;
|
| 88 |
+
color: #333;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.button:hover {
|
| 92 |
+
background-color: #f0f0f0;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
.start-button {
|
| 96 |
+
background-color: #4CAF50;
|
| 97 |
+
color: #fff;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.start-button:hover {
|
| 101 |
+
background-color: #45a049;
|
| 102 |
+
}
|
| 103 |
+
</style>
|
| 104 |
+
</head>
|
| 105 |
+
<body>
|
| 106 |
+
<div class="container">
|
| 107 |
+
<img src="/public/avatars/ai_tutor.png" alt="AI Tutor Avatar" class="avatar">
|
| 108 |
+
<h1>Welcome, {{ username }}</h1>
|
| 109 |
+
<p>Ready to start your AI tutoring session?</p>
|
| 110 |
+
<form action="/start-tutor" method="post">
|
| 111 |
+
<button type="submit" class="button start-button">Start AI Tutor</button>
|
| 112 |
+
</form>
|
| 113 |
+
</div>
|
| 114 |
+
<script>
|
| 115 |
+
let token = "{{ jwt_token }}";
|
| 116 |
+
console.log("Token: ", token);
|
| 117 |
+
localStorage.setItem('token', token);
|
| 118 |
+
</script>
|
| 119 |
+
</body>
|
| 120 |
+
</html>
|