|
3 | 3 | <head>
|
4 | 4 | <title>Dashboard - DevOps Tutorials</title>
|
5 | 5 | <style>
|
| 6 | + @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap'); |
6 | 7 | body {
|
7 | | - font-family: 'Segoe UI', sans-serif; |
8 | | - background: #f0f2f5; |
| 8 | + font-family: 'Poppins', sans-serif; |
| 9 | + background: #eef2f7; |
9 | 10 | margin: 0;
|
10 | 11 | padding: 0;
|
11 | 12 | }
|
12 | 13 | .navbar {
|
13 | | - background-color: #2c3e50; |
14 | | - padding: 15px30px; |
| 14 | + background-color: #4a148c; |
| 15 | + padding: 18px40px; |
15 | 16 | color: white;
|
16 | 17 | display: flex;
|
17 | 18 | justify-content: space-between;
|
18 | 19 | align-items: center;
|
| 20 | + box-shadow: 0 4px 12px rgba(74, 20, 140, 0.3); |
19 | 21 | }
|
20 | 22 | .navbar h2 {
|
21 | 23 | margin: 0;
|
22 | | - font-size: 24px; |
| 24 | + font-size: 28px; |
| 25 | + letter-spacing: 0.08em; |
| 26 | + font-weight: 700; |
23 | 27 | }
|
24 | 28 | .logout-button {
|
25 | | - background-color: #e74c3c; |
| 29 | + background-color: #7b1fa2; |
26 | 30 | color: white;
|
27 | | - padding: 10px 16px; |
| 31 | + padding: 10px 20px; |
28 | 32 | border: none;
|
29 | | - border-radius: 6px; |
| 33 | + border-radius: 25px; |
30 | 34 | font-size: 14px;
|
| 35 | + font-weight: 600; |
31 | 36 | cursor: pointer;
|
32 | 37 | transition: background-color 0.3s ease;
|
33 | 38 | text-decoration: none;
|
| 39 | + box-shadow: 0 4px 12px rgba(123, 31, 162, 0.5); |
34 | 40 | }
|
35 | 41 | .logout-button:hover {
|
36 | | - background-color: #c0392b; |
| 42 | + background-color: #4a148c; |
| 43 | + box-shadow: 0 6px 16px rgba(74, 20, 140, 0.8); |
37 | 44 | }
|
38 | 45 | .container {
|
39 | | - margin: 30px auto; |
40 | | - max-width: 1000px; |
| 46 | + margin: 40px auto; |
| 47 | + max-width: 900px; |
41 | 48 | background: white;
|
42 | | - padding: 30px; |
43 | | - border-radius: 12px; |
44 | | - box-shadow: 0 8px16px rgba(0,0,0,0.1); |
| 49 | + padding: 35px40px; |
| 50 | + border-radius: 15px; |
| 51 | + box-shadow: 0 16px 30pxrgba(0,0,0,0.07); |
45 | 52 | }
|
46 | 53 | h3 {
|
47 | | - color: #333; |
| 54 | + color: #4a148c; |
| 55 | + margin-bottom: 25px; |
| 56 | + font-weight: 600; |
| 57 | + letter-spacing: 0.04em; |
48 | 58 | }
|
49 | 59 | ul {
|
50 | 60 | padding-left: 20px;
|
| 61 | + list-style-type: disc; |
| 62 | + color: #333; |
| 63 | + font-size: 16px; |
| 64 | + line-height: 1.6; |
| 65 | + } |
| 66 | + .userinfo { |
| 67 | + margin-bottom: 30px; |
| 68 | + background-color: #f9f9f9; |
| 69 | + padding: 20px 25px; |
| 70 | + border-left: 6px solid #4a148c; |
| 71 | + border-radius: 8px; |
| 72 | + font-size: 16px; |
| 73 | + color: #333; |
51 | 74 | }
|
52 | 75 | table {
|
53 | 76 | width: 100%;
|
54 | 77 | border-collapse: collapse;
|
55 | | - margin-top: 25px; |
| 78 | + margin-top: 15px; |
| 79 | + font-size: 15px; |
56 | 80 | }
|
57 | 81 | table th, table td {
|
58 | | - border: 1px solid #ccc; |
59 | | - padding: 12px; |
| 82 | + border: 1px solid #ddd; |
| 83 | + padding: 12px15px; |
60 | 84 | text-align: left;
|
61 | 85 | }
|
62 | 86 | table th {
|
63 | | - background: #eee; |
| 87 | + background-color: #7b1fa2; |
| 88 | + color: white; |
| 89 | + font-weight: 600; |
64 | 90 | }
|
65 | | - .userinfo { |
66 | | - margin-top: 10px; |
67 | | - background-color: #f9f9f9; |
68 | | - padding: 15px; |
69 | | - border-left: 4px solid #3498db; |
| 91 | + table tr:nth-child(even) { |
| 92 | + background-color: #f4f0fa; |
70 | 93 | }
|
71 | 94 | </style>
|
72 | 95 | </head>
|
73 | 96 | <body>
|
74 | | -<div class="navbar"> |
75 | | - <h2>DevOps Dashboard</h2> |
76 | | - <a href="/logout" class="logout-button">Logout</a> |
77 | | -</div> |
78 | | - |
79 | | -<div class="container"> |
80 | | - <div class="userinfo"> |
81 | | - <p><strong>Logged-in User:</strong></p> |
82 | | - <p>Username: <span th:text="${username}"></span></p> |
83 | | - <p>Email: <span th:text="${email}"></span></p> |
| 97 | + <div class="navbar"> |
| 98 | + <h2>DevOps Dashboard</h2> |
| 99 | + <a href="/logout" class="logout-button">Logout</a> |
84 | 100 | </div>
|
85 | 101 |
|
86 | | - <h3>DevOps Tutorials & Tools</h3> |
87 | | - <ul> |
88 | | - <li th:each="item : ${materials}" th:text="${item}"></li> |
89 | | - </ul> |
| 102 | + <div class="container"> |
| 103 | + <div class="userinfo"> |
| 104 | + <p><strong>Logged-in User:</strong></p> |
| 105 | + <p>Username: <span th:text="${username}">[username]</span></p> |
| 106 | + <p>Email: <span th:text="${email}">[email]</span></p> |
| 107 | + </div> |
| 108 | + |
| 109 | + <h3>DevOps Tutorials & Tools</h3> |
| 110 | + <ul> |
| 111 | + <li th:each="item : ${materials}" th:text="${item}">Sample tutorial/tool</li> |
| 112 | + </ul> |
90 | 113 |
|
91 | | - <h3>All Registered Users</h3> |
92 | | - <table> |
93 | | - <thead> |
94 | | - <tr> |
95 | | - <th>#</th> |
96 | | - <th>Username</th> |
97 | | - <th>Email</th> |
98 | | - </tr> |
99 | | - </thead> |
100 | | - <tbody> |
101 | | - <tr th:each="user, iterStat : ${allUsers}"> |
102 | | - <td th:text="${iterStat.index + 1}"></td> |
103 | | - <td th:text="${user.username}"></td> |
104 | | - <td th:text="${user.email}"></td> |
105 | | - </tr> |
106 | | - </tbody> |
107 | | - </table> |
108 | | -</div> |
| 114 | + <h3>All Registered Users</h3> |
| 115 | + <table> |
| 116 | + <thead> |
| 117 | + <tr> |
| 118 | + <th>#</th> |
| 119 | + <th>Username</th> |
| 120 | + <th>Email</th> |
| 121 | + </tr> |
| 122 | + </thead> |
| 123 | + <tbody> |
| 124 | + <tr th:each="user, iterStat : ${allUsers}"> |
| 125 | + <td th:text="${iterStat.index + 1}">1</td> |
| 126 | + <td th:text="${user.username}">sampleUser</td> |
| 127 | + <td th:text="${user.email}">sample@example.com</td> |
| 128 | + </tr> |
| 129 | + </tbody> |
| 130 | + </table> |
| 131 | +</div> |
109 | 132 | </body>
|
110 | 133 | </html>
|
0 commit comments