Admin permission required ..
+ );
+};
+
+export default Admin;
diff --git a/src/pages/admin/admin_pages/new_event/NewEvent.tsx b/src/pages/admin/admin_pages/new_event/NewEvent.tsx
new file mode 100644
index 00000000..7d820ba7
--- /dev/null
+++ b/src/pages/admin/admin_pages/new_event/NewEvent.tsx
@@ -0,0 +1,213 @@
+import React, { useState } from "react";
+import { _Event, _EventCreateData } from "../../../../utils/types";
+import { createEvent } from "../../../../apis/adminApi";
+import { useToast } from "../../../../components/toast/useToast";
+
+const NewEvent: React.FC = () => {
+ const [formData, setFormData] = useState<_EventCreateData>({
+ name: "",
+ description: "",
+ details: "",
+ date: "",
+ type: "",
+ image: null,
+ reg_link: null,
+ venue: "",
+ gctian_only: false,
+ is_reg: true,
+ closed: false,
+ });
+ const { setToastStatus } = useToast();
+ const handleChange = (
+ e: React.ChangeEvent<
+ HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
+ >
+ ) => {
+ console.log(e.target.id, e.target.value);
+ setFormData({
+ ...formData,
+ [e.target.id]: e.target.value,
+ });
+ };
+
+ const handleSubmit = async (event: React.FormEvent) => {
+ event.preventDefault();
+ console.log("Form submitted!");
+ console.log(formData);
+ await createEvent(formData, setToastStatus);
+ };
+
+ return (
+
+
+ Create New Event
+
+
+
+ );
+};
+
+export default NewEvent;
diff --git a/src/pages/launch/Home.tsx b/src/pages/launch/Home.tsx
index 169e483f..9730fa51 100644
--- a/src/pages/launch/Home.tsx
+++ b/src/pages/launch/Home.tsx
@@ -1,14 +1,22 @@
import style from "./LaunchHome.module.css";
// import SecondaryButton from '../../components/buttons/secondary_button/SecondaryButton';
import alien from "../../assets/dehill-spacelove-1-dribble.gif";
-import Counter from "../../components/counter/Counter";
-import EventList from "../../components/eventlist/EventList";
-import Footer from "../../components/footer/Footer";
+// import Counter from "../../components/counter/Counter";
+// import EventList from "../../components/eventlist/EventList";
+// import Footer from "../../components/footer/Footer";
import TopBar from "../../components/topbar/topbar";
+import { useState } from "react";
// for build commit
interface LaunchHomeProps {}
const LaunchHome: React.FC