summaryrefslogtreecommitdiffhomepage
path: root/app/javascript/components/Home.jsx
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-22 14:59:24 -0400
committerrealtradam <[email protected]>2024-05-22 14:59:24 -0400
commit6cf41b4a5c55c91974e31ac032d969c7481b3e80 (patch)
treed0233a35a60f33f6d7115a26139fd6e61f96c15a /app/javascript/components/Home.jsx
parent3321db8f9c549103ebae46bf025a3135208a2e3b (diff)
downloadgameHolster-6cf41b4a5c55c91974e31ac032d969c7481b3e80.tar.gz
gameHolster-6cf41b4a5c55c91974e31ac032d969c7481b3e80.zip
extract frontend
Diffstat (limited to 'app/javascript/components/Home.jsx')
-rw-r--r--app/javascript/components/Home.jsx43
1 files changed, 0 insertions, 43 deletions
diff --git a/app/javascript/components/Home.jsx b/app/javascript/components/Home.jsx
deleted file mode 100644
index 863d81d..0000000
--- a/app/javascript/components/Home.jsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import React, { } from "react";
-//import { Link } from "react-router-dom";
-import GameCard from "./GameCard";
-
-//export default () => (
-export default function Home () {
- var handleSubmit = (e) => {
- e.preventDefault() //stops submit from happening
-
- const formData = new FormData()
- formData.append('game[title]', e.target.title.value)
- formData.append('game[game_file]', e.target.game_file.files[0], e.target.game_file.value)
-
- for (var pair of formData.entries()) {
- console.log(pair[0] + ', ' + pair[1])
- };
-
- fetch('http://127.0.0.1:3000/api/v1/games', {
- method: 'post',
- body: formData,
- });
- }
- return(
- <>
- <div>
- <div className="flex flex-col gap-16 max-w-6xl shrink">
- <div className="title font-bold text-6xl font-title">Get To Know Me a Little</div>
- <div className="">
- <div className="jumbotron jumbotron-fluid bg-transparent">
- <div className="container secondary-color">
- <h1 className="text-2xl">Debug! Again</h1>
- <p className="">
-Ea optio vitae culpa voluptatem consectetur. Ab quisquam sed ipsum. Perspiciatis minus odit quas qui consequuntur dicta reiciendis a. Nihil minima sed aliquam.
- </p>
- <hr className="my-4" />
- </div>
- </div>
- </div>
- </div>
- </div>
- </>
- );
-};