+ {/*
Test card */}
+ {/*
*/}
+
+ {mods.map((mod) => {
+ console.debug(mod.name);
+ // return
Test
+ return
+ })}
+
+ {testArray.map((item, index) => {
+ //
+ console.debug(index, item)
+ })}
+
+ >
);
}
diff --git a/frontend/src/services/api.js b/frontend/src/services/api.js
new file mode 100644
index 0000000..4b3352b
--- /dev/null
+++ b/frontend/src/services/api.js
@@ -0,0 +1,15 @@
+const API_BASE_URL = 'http://localhost:8000';
+
+export async function fetchMods() {
+ try {
+ const response = await fetch(`${API_BASE_URL}/list/mods`);
+ if (!response.ok) {
+ throw new Error(`HTTP error! status: ${response.status}`);
+ }
+ const data = await response.json();
+ return data;
+ } catch (error) {
+ console.error('Failed to fetch items:', error);
+ return [];
+ }
+}
\ No newline at end of file
diff --git a/frontend/src/styles/app.css b/frontend/src/styles/app.css
index 4914fc8..3af2410 100644
--- a/frontend/src/styles/app.css
+++ b/frontend/src/styles/app.css
@@ -1,3 +1,28 @@
+/* Impports */
+@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
+
+
+:root {
+ font-family: 'IBM Plex Mono';
+ line-height: 1.5;
+ font-weight: 400;
+
+ color-scheme: light dark;
+ color: rgba(255, 255, 255, 0.87);
+ background-color: #0c0c0c;
+
+ font-synthesis: none;
+ text-rendering: optimizeLegibility;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+body {
+ min-width: 320px;
+ margin: 0;
+}
+
+
a {
text-decoration: none;
}
@@ -9,22 +34,26 @@ a {
top: 1.6rem;
left: 2rem;
height: 6em;
+
padding: 1.5em;
+
+ user-select: none;
}
.logo.text {
- position: relative;
- left: 5rem;
- top: 3.3rem;
+ position: absolute;
+ left: 10rem;
+ top: 3.8rem;
+
+ margin: 0;
color: #eaeaea;
font-family: Inter;
font-weight: 600;
-
- padding: 1.5em;
-
font-size: 3em;
+
+ user-select: none;
}
h1 {
@@ -53,10 +82,10 @@ h1 {
min-height: 20rem;
min-width: 50rem;
- background-color: #1a1a1a;
+ /* background-color: #1a1a1a; */
color: #eaeaea;
- border: #3a3a3a solid;
+ /* border: #3a3a3a solid; */
border-width: .1em;
border-radius: .5rem;
}
diff --git a/frontend/src/styles/global.css b/frontend/src/styles/global.css
deleted file mode 100644
index 67db913..0000000
--- a/frontend/src/styles/global.css
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Impports */
-@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
-
-
-:root {
- font-family: 'IBM Plex Mono';
- line-height: 1.5;
- font-weight: 400;
-
- color-scheme: light dark;
- color: rgba(255, 255, 255, 0.87);
- background-color: #0c0c0c;
-
- font-synthesis: none;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-body {
- min-width: 320px;
-}
diff --git a/frontend/src/styles/home.css b/frontend/src/styles/home.css
index 7bf0622..80c9a0c 100644
--- a/frontend/src/styles/home.css
+++ b/frontend/src/styles/home.css
@@ -34,7 +34,7 @@
.start-button {
position: fixed;
- top: 38rem;
+ top: 48rem;
left: 50%;
transform: translate(-50%, -50%); /*Center (compensate size)*/
@@ -42,5 +42,4 @@
text-align: center;
font-weight: 600;
font-size: 2rem;
- letter-spacing: 0.1rem;
}
\ No newline at end of file