mirror of
https://github.com/vee1e/bitsat_predictor.git
synced 2026-09-01 10:59:02 +00:00
Add v1
This commit is contained in:
parent
9b24d1ade8
commit
08afece073
4 changed files with 8 additions and 5 deletions
BIN
bitsat_branch_predictor/public/hyderabad_trend.png
Normal file
BIN
bitsat_branch_predictor/public/hyderabad_trend.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 158 KiB |
|
|
@ -1,5 +1,7 @@
|
|||
import { useState, useEffect } from "react";
|
||||
import pilani_img from "./assets/trend_pilani.png";
|
||||
import goa_img from "./assets/goa_trend.png";
|
||||
import hyd_img from "./assets/hyd_trend.png";
|
||||
|
||||
function Home() {
|
||||
|
||||
|
|
@ -64,25 +66,26 @@ function Home() {
|
|||
<div className="flex flex-col gap-6">
|
||||
|
||||
<img src={pilani_img} alt="Pilani trends" className="rounded-xl shadow-lg w-full max-w-2xl" />
|
||||
{/* <img src={goa} alt="Goa trend" className="rounded-xl shadow-lg w-full max-w-md" />
|
||||
<img src={goa_img} alt="Goa trends" className="rounded-xl shadow-lg w-full max-w-2xl" />
|
||||
|
||||
<img src={hyd} alt="Hyderabad trend" className="rounded-xl shadow-lg w-full max-w-md" /> */}
|
||||
<img src={hyd_img} alt="Hyderabad trends" className="rounded-xl shadow-lg w-full max-w-2xl" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="max-w-md mx-auto bg-[#242424] p-5 rounded-lg shadow">
|
||||
<div className="max-w-md mx-auto bg-[#242424] p-5 rounded-lg shadow mt-9">
|
||||
|
||||
<h2 className="text-xl text-blue-100 mb-5 font-mono font-semibold">
|
||||
Enter Score
|
||||
</h2>
|
||||
|
||||
<input type="number" value={input} onChange={(e) => setInput(e.target.value)}
|
||||
className="w-full px-4 py-2 rounded-lg text-beige mb-4" placeholder="Score"
|
||||
/>
|
||||
className="w-full px-4 py-2 rounded-lg text-beige mb-4" placeholder="Score"/>
|
||||
|
||||
<button onClick={handlePredict} className="w-full px-4 py-2 bg-violet-700 text-white rounded-lg hover:bg-violet-600 transition font-bold" >
|
||||
Predict
|
||||
</button>
|
||||
|
||||
|
||||
{(
|
||||
<div className="mt-4 text-blue-200 text-lg space-y-2 text-center">
|
||||
{result[0] == "INVALID" && (
|
||||
|
|
|
|||
BIN
bitsat_branch_predictor/src/assets/goa_trend.png
Normal file
BIN
bitsat_branch_predictor/src/assets/goa_trend.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 138 KiB |
BIN
bitsat_branch_predictor/src/assets/hyd_trend.png
Normal file
BIN
bitsat_branch_predictor/src/assets/hyd_trend.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 158 KiB |
Loading…
Add table
Add a link
Reference in a new issue