diff --git a/frontend/src/App.css b/frontend/src/App.css
index 28ff09c..65b9548 100644
--- a/frontend/src/App.css
+++ b/frontend/src/App.css
@@ -15,10 +15,6 @@ button.info {
padding: 0.5rem !important;
}
-button.info svg {
- vertical-align: top;
-}
-
.ctm-root {
margin: auto;
max-width: 768px;
@@ -36,3 +32,20 @@ button.info svg {
filter: drop-shadow(1.15px 1.15px 0 #ffffff30)
drop-shadow(-1.15px -1.15px 0 #ffffff30);
}
+
+.anchor-disguised:target,
+.anchor-disguised:focus-visible,
+.anchor-disguised:target,
+.anchor-disguised:target {
+ border: 1px solid #ffffff99 !important;
+}
+
+.anchor-disguised {
+ padding: 0 !important;
+ text-align: center;
+ aspect-ratio: 1;
+}
+
+button svg {
+ vertical-align: top;
+}
diff --git a/frontend/src/components/Help/ModrinthProjId.jsx b/frontend/src/components/Help/ModrinthProjId.jsx
new file mode 100644
index 0000000..bb66d4d
--- /dev/null
+++ b/frontend/src/components/Help/ModrinthProjId.jsx
@@ -0,0 +1,30 @@
+import React from 'react';
+import { Image, Modal } from 'react-bootstrap';
+import Example from '../../img/mpjid.png';
+
+export default ({ show, onHide }) => (
+
+
+ Modrinth Project IDs and You
+
+
+
+
+ Your Modrinth Project ID is *not* the same as the Slug/Name.
+ It can instead be found in the sidebar of your project
+ (even if your project is still pending approval), like so:
+ {' '}
+
+
+
+
+
+);
diff --git a/frontend/src/img/mpjid.png b/frontend/src/img/mpjid.png
new file mode 100644
index 0000000..84cea50
Binary files /dev/null and b/frontend/src/img/mpjid.png differ
diff --git a/frontend/src/pages/Home.jsx b/frontend/src/pages/Home.jsx
index a886459..b5f1d8e 100644
--- a/frontend/src/pages/Home.jsx
+++ b/frontend/src/pages/Home.jsx
@@ -3,14 +3,15 @@ import React, { useState, useEffect } from 'react';
import {
Form, Button, Container, Accordion, Image,
} from 'react-bootstrap';
-import { TbInfoHexagon } from 'react-icons/tb';
+import { TbInfoHexagon, TbHelp } from 'react-icons/tb';
import OutputLog from '../components/OutputLog';
import Info from '../components/Help/Info';
import HeaderImg from '../img/ctm.png';
+import ModrinthProjId from '../components/Help/ModrinthProjId';
export default () => {
const [dark, setDark] = useState(window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches);
- const [modals, setModals] = useState({ info: false, delim: false });
+ const [modals, setModals] = useState({ info: false, mpid: false });
const [jobId, setJobId] = useState(window.localStorage.getItem('last-jobid'));
const [formData, setFormData] = useState({
githubPat: '',
@@ -57,6 +58,7 @@ export default () => {
return (
setModals({ ...modals, info: false })} />
+ setModals({ ...modals, mpid: false })} />
@@ -109,7 +111,19 @@ export default () => {
- Modrinth Project ID
+
+ Modrinth Project ID
+ {' '}
+ setModals({ ...modals, mpid: true })}
+ type="button"
+ variant=""
+ >
+
+
+
{
)}
-
- {/* */}
);
};