Skip to content

Commit a74a2ad

Browse files
Added a dashboard to the main page
1 parent a8c6c05 commit a74a2ad

File tree

2 files changed

+73
-2
lines changed

2 files changed

+73
-2
lines changed

GuiStack/Pages/Index.cshtml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
55
*
6-
* Copyright © Vincent Bengtsson & Contributors 2022
6+
* Copyright © Vincent Bengtsson & Contributors 2022-2024
77
* https://github.com/Visual-Vincent/GuiStack
88
*@
99

@@ -13,4 +13,19 @@
1313
ViewData["Title"] = "";
1414
}
1515

16-
<h1>Welcome to GuiStack!</h1>
16+
<h1>Welcome to GuiStack!</h1>
17+
18+
<div class="gs-dashboard">
19+
<a href="/S3" class="gs-dashboard-item">
20+
<i class="bi bi-bucket image"></i>
21+
<p class="title">S3 Buckets</p>
22+
</a>
23+
<a href="/SQS" class="gs-dashboard-item">
24+
<i class="fa-solid fa-database gs-rotate-270 image"></i>
25+
<p class="title">SQS Queues</p>
26+
</a>
27+
<a href="/SNS" class="gs-dashboard-item">
28+
<i class="fa-solid fa-square-envelope image"></i>
29+
<p class="title">SNS Topics</p>
30+
</a>
31+
</div>

GuiStack/wwwroot/css/site.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,62 @@ a.gs-button:active { background: #005577; }
240240
background: #4d5054;
241241
}
242242

243+
.gs-dashboard
244+
{
245+
display: grid;
246+
grid-auto-rows: 120px;
247+
grid-template-columns: repeat(auto-fit, 120px);
248+
grid-gap: 16px;
249+
}
250+
251+
.gs-dashboard-item
252+
{
253+
display: flex;
254+
padding: 8px;
255+
background: #404040;
256+
box-shadow: #000000 0px 0px 4px 0px;
257+
border: 1px solid #585858;
258+
border-radius: 16px;
259+
text-align: center;
260+
align-items: center;
261+
align-content: center;
262+
justify-content: center;
263+
flex-wrap: wrap;
264+
}
265+
266+
.gs-dashboard-item,
267+
a.gs-dashboard-item,
268+
a.gs-dashboard-item:hover,
269+
a.gs-dashboard-item:active,
270+
a.gs-dashboard-item:visited
271+
{
272+
color: #FFAA00;
273+
}
274+
275+
.gs-dashboard-item:hover
276+
{
277+
background: #606060;
278+
border: 1px solid #787878;
279+
}
280+
281+
.gs-dashboard-item > *
282+
{
283+
flex: 1 1 100%;
284+
}
285+
286+
.gs-dashboard-item > .image
287+
{
288+
display: block;
289+
height: 32px;
290+
font-size: 32px;
291+
}
292+
293+
.gs-dashboard-item > p.title
294+
{
295+
margin-bottom: 0px;
296+
font-weight: bold;
297+
}
298+
243299
table.layout-fixed
244300
{
245301
table-layout: fixed;

0 commit comments

Comments
 (0)