summaryrefslogtreecommitdiff
path: root/templates/static
diff options
context:
space:
mode:
Diffstat (limited to 'templates/static')
-rw-r--r--templates/static/main.mjs13
-rw-r--r--templates/static/styles.css101
2 files changed, 114 insertions, 0 deletions
diff --git a/templates/static/main.mjs b/templates/static/main.mjs
new file mode 100644
index 0000000..7e48f65
--- /dev/null
+++ b/templates/static/main.mjs
@@ -0,0 +1,13 @@
1document.addEventListener("DOMContentLoaded", () => {
2 const buttons = document.querySelectorAll(".controls a");
3
4 buttons.forEach((button) => {
5 button.addEventListener("mouseover", () => {
6 button.style.boxShadow = "0px 6px 12px rgba(255, 255, 255, 0.5)";
7 });
8
9 button.addEventListener("mouseout", () => {
10 button.style.boxShadow = "0px 4px 8px rgba(0, 0, 0, 0.4)";
11 });
12 });
13});
diff --git a/templates/static/styles.css b/templates/static/styles.css
new file mode 100644
index 0000000..d43f592
--- /dev/null
+++ b/templates/static/styles.css
@@ -0,0 +1,101 @@
1@import url("https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300..800;1,300..800&display=swap");
2
3body {
4 background-color: rgb(40, 44, 52);
5 color: white;
6 font-family: "Host Grotesk", sans-serif;
7 font-weight: 500;
8 margin: 0;
9 padding: 0;
10}
11
12p {
13 text-align: center;
14
15}
16
17h1 {
18 text-align: center;
19}
20
21a {
22 text-decoration: none;
23 color: wheat;
24 transition: color 0.3s ease;
25}
26
27a:hover {
28 color: rgb(255, 215, 128);
29}
30
31.navigation {
32 display: flex;
33 justify-content: space-between;
34 align-items: center;
35 padding: 20px 10%;
36 background-color: rgba(0, 0, 0, 0.8);
37 border-bottom: 2px solid white;
38 box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
39 position: sticky;
40 top: 0;
41 z-index: 10;
42}
43
44.navigation a {
45 font-size: 1.2em;
46 font-weight: 600;
47 transition: transform 0.3s ease;
48}
49
50.navigation a:hover {
51 transform: scale(1.1);
52}
53
54.controls {
55 display: flex;
56 flex-direction: row;
57 justify-content: center;
58 gap: 20px;
59 padding: 20px 10%;
60}
61
62.controls a {
63 display: flex;
64 justify-content: center;
65 align-items: center;
66 background-color: rgba(255, 255, 255, 0.1);
67 border-radius: 10px;
68 padding: 15px;
69 min-width: 150px;
70 width: 200px;
71 text-align: center;
72 font-size: 1.2em;
73 font-weight: 600;
74 color: white;
75 box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
76 transition: background-color 0.3s ease, transform 0.3s ease;
77}
78
79.controls a:hover {
80 background-color: rgba(255, 255, 255, 0.2);
81 transform: translateY(-5px);
82}
83
84footer {
85 background-color: rgba(0, 0, 0, 0.8);
86 text-align: center;
87 padding: 10px;
88 font-size: 0.9em;
89 border-top: 1px solid rgba(255, 255, 255, 0.2);
90 margin-top: 20px;
91}
92
93footer a {
94 color: wheat;
95 font-weight: 600;
96 text-decoration: underline;
97}
98
99footer a:hover {
100 color: rgb(255, 215, 128);
101}