Skip to content

Commit 1a7aab6

Browse files
committed
feat(dash): start on dashboard
1 parent b236092 commit 1a7aab6

File tree

7 files changed

+306
-39
lines changed

7 files changed

+306
-39
lines changed

apps/dashboard/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@astrojs/node": "^9.4.4",
16-
"astro": "~5.14.1"
16+
"astro": "~5.14.1",
17+
"sass": "^1.93.2"
1718
}
1819
}
Binary file not shown.

apps/dashboard/src/layouts/Layout.astro

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
import "../styles/global.scss"
3+
import "../styles/fonts.scss"
4+
---
5+
16
<!doctype html>
27
<html lang="en">
38
<head>
@@ -8,6 +13,25 @@
813
<title>SMC Dashboard</title>
914
</head>
1015
<body>
16+
<nav>
17+
<span>@smc/dashboard</span>
18+
<!-- TODO: get commit hash -->
19+
<code>12345fa</code>
20+
<ul>
21+
<li>
22+
<a href="/">home</a>
23+
</li>
24+
<li>
25+
<a href="/">report</a>
26+
</li>
27+
<li>
28+
<a href="/">domains</a>
29+
</li>
30+
</ul>
31+
</nav>
1132
<slot />
33+
<footer>
34+
&copy; {new Date().getFullYear()} StopMalwareContent Contributors
35+
</footer>
1236
</body>
1337
</html>

apps/dashboard/src/pages/index.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ import Layout from "../layouts/Layout.astro"
33
---
44

55
<Layout>
6-
<h1>Hello, World!</h1>
6+
<main>
7+
<h1>Hello, World!</h1>
8+
</main>
79
</Layout>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* jetbrains-mono-regular - latin */
2+
@font-face {
3+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
4+
font-family: 'JetBrains Mono';
5+
font-style: normal;
6+
font-weight: 400;
7+
src: url('/fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
8+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
* {
2+
box-sizing: border-box;
3+
}
4+
5+
body {
6+
margin: 0;
7+
padding: 0;
8+
font-family: "JetBrains Mono", monospace;
9+
background: #1e1e2e;
10+
color: #cdd6f4;
11+
}
12+
13+
a {
14+
color: #f38ba8;
15+
}
16+
17+
a,button {
18+
&:hover {
19+
cursor: pointer;
20+
opacity: 0.7;
21+
}
22+
}
23+
24+
nav {
25+
display: flex;
26+
align-content: center;
27+
padding: 0 2em;
28+
background: #313244;
29+
height: 64px;
30+
31+
span, code, ul {
32+
display: flex;
33+
align-items: center;
34+
}
35+
36+
code {
37+
display: inline-flex;
38+
margin-left: .5em;
39+
color: #a6adc8;
40+
}
41+
42+
ul {
43+
list-style: none;
44+
gap: 1em;
45+
}
46+
}
47+
48+
main {
49+
padding: 0 2em;
50+
}
51+
52+
footer {
53+
padding: 2em;
54+
}

0 commit comments

Comments
 (0)