+
+
Avatar
+
${item.username}
+
${item.name}
- Role: ${item.role}
- Email: ${item.email}
- Username: ${item.username}
- UUID: ${item.userId}
- Avatar:${item.avatar}
- Initial Password: ${item.password}
- Birthdate: ${new Date(item.birthdate).toDateString()}
- Registered: ${new Date(item.registeredAt).toDateString()}
- Created On: ${new Date(item.createdAt).toDateString()}
- Updated On: ${new Date(item.updatedAt).toDateString()}
- Profile Bio: ${item.profile?.bio || 'N/A'}
+ Role: ${item.role}
+ Email: ${item.email}
+ Username: ${item.username}
+ UUID: ${item.userId}
+ Initial Password: ${item.password}
+ Birthdate: ${new Date(item.birthdate).toDateString()}
+ Registered: ${new Date(item.registeredAt).toDateString()}
+ Created On: ${new Date(item.createdAt).toDateString()}
+ Updated On: ${new Date(item.updatedAt).toDateString()}
+ Profile Bio: ${item.profile?.bio || 'N/A'}
@@ -49,4 +55,9 @@ async function fetchAndDisplayData() {
}
// Fetch and display data when the page loads
-document.addEventListener('DOMContentLoaded', fetchAndDisplayData);
\ No newline at end of file
+document.addEventListener('DOMContentLoaded', fetchAndDisplayData);
+
+//change theme
+ document.getElementById('toggle').addEventListener('click', () => {
+ document.body.classList.toggle('dark-mode');
+ });
\ No newline at end of file
diff --git a/frontend/src/styles.css b/frontend/src/styles.css
index e69de29..1b3c4e6 100644
--- a/frontend/src/styles.css
+++ b/frontend/src/styles.css
@@ -0,0 +1,82 @@
+body {
+ font-family: Fredoka, sans-serif;
+ background-color: #ffffff;
+ color: #333;
+ margin: 0;
+ padding: 20px;
+ transition: background-color 0.3s ease, color 0.3s ease;
+}
+
+.container {
+ max-width: 900px;
+ margin: auto;
+}
+
+.item-list {
+ list-style: none;
+ padding: 0;
+}
+.item-card {
+ position: relative;
+ background-color: #fff;
+ border-radius: 8px;
+ margin-bottom: 20px;
+ padding: 20px;
+ padding-top: 40px;
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
+ /* transition: background-color 0.3s ease; */
+}
+.item-card h2 {
+ margin-top: 0;
+}
+
+.avatar {
+ width: 50px;
+ height: 50px;
+ border-radius: 50%;
+ object-fit: cover;
+ margin-top: 5px;
+ border: 2px solid #ccc;
+ background-color: #fff;
+ display: block;
+ margin: 0 auto;
+}
+
+.avatar-container {
+ position: absolute;
+ top: 15px;
+ right: 15px;
+ text-align: center;
+}
+
+body.dark-mode {
+ background-color: #1f1f1f;
+ color: #f4f4f4;
+}
+
+body.dark-mode .item-card {
+ background-color: #2a2a2a;
+}
+
+body.dark-mode a,
+body.dark-mode p,
+body.dark-mode h2 {
+ color: #ccc;
+}
+
+button#toggle {
+ position: fixed;
+ top: 20px;
+ right: 20px;
+ background-color: #ff0095;
+ color: white;
+ border: none;
+ padding: 10px 14px;
+ border-radius: 6px;
+ cursor: pointer;
+ transition: background-color 0.3s;
+}
+
+button#toggle:hover {
+ background-color: #6d0246;
+}
\ No newline at end of file