-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44f19f7
commit 23d68d5
Showing
18 changed files
with
142 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ coverage | |
.next/ | ||
out/ | ||
build | ||
dist | ||
|
||
# misc | ||
.DS_Store | ||
|
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
import { TypePost } from "ui"; | ||
import { Link } from "react-router-dom"; | ||
|
||
export default function TestType() { | ||
return ( | ||
<> | ||
<TypePost | ||
onClick={async ( | ||
date: string, | ||
type: string, | ||
year: string, | ||
sem: string, | ||
setTypeA:string | ||
) => { | ||
const urlData = { | ||
date, | ||
type, | ||
year, | ||
sem, | ||
}; | ||
return ( | ||
<Link to={{pathname:`/get/${urlData.type}`,search:`?date=${date}&sem=${sem}&year=${year}&setTypeA=${setTypeA}`}} ></Link> | ||
) | ||
}} | ||
/> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const BASE_URL = "https://generator.sheninthjr.com" | ||
export const BASE_URL = "http://localhost:3000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// component exports | ||
export { Card } from "./card"; | ||
export { Post,GetQuestionPage,LandingPage } from "./src/components" | ||
export { Post,GetQuestionPage,LandingPage,TypePost } from "./src/components" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import { useState } from "react"; | ||
|
||
export function TypePost(props: { | ||
onClick: (date: string, type: string, year: string, sem: string,setTypeA:string) => void; | ||
}) { | ||
const [date, setDate] = useState(""); | ||
const [type, setType] = useState(""); | ||
const [year, setYear] = useState(""); | ||
const [sem, setSem] = useState(""); | ||
const [setTypeA,setSetTypeA] = useState("") | ||
return ( | ||
<> | ||
<div className="flex flex-col justify-center items-center p-40"> | ||
<div className="flex flex-col rounded-lg space-y-5 p-4 border-4 bg-white border-white w-80 h-[55vh] w-100 lg:h-[55vh]"> | ||
<input | ||
className="rounded-lg w-1/25 h-15 p-4 border-2 border-gray-700" | ||
type="date" | ||
name="Date" | ||
value={date} | ||
onChange={(e) => { | ||
setDate(e.target.value); | ||
}} | ||
/> | ||
<select | ||
className="rounded-lg border-2 border-gray-700 h-15 p-4 bg-white" | ||
name="Type of Exam" | ||
value={type} | ||
onChange={(e) => setType(e.target.value)} | ||
> | ||
<option value="IA1">IA1</option> | ||
<option value="IA2">IA2</option> | ||
<option value="IA3">IA3</option> | ||
<option value="MODEL">MODEL</option> | ||
</select> | ||
<select | ||
className="rounded-lg border-2 border-gray-700 h-15 p-4 bg-white" | ||
name="Year" | ||
value={year} | ||
onChange={(e) => { | ||
setYear(e.target.value); | ||
}} | ||
> | ||
<option value="I Year">I Year</option> | ||
<option value="II Year">II Year</option> | ||
<option value="III Year">III Year</option> | ||
<option value="IV Year">IV Year</option> | ||
</select> | ||
<select | ||
className="rounded-lg border-2 border-gray-700 h-15 p-4 bg-white" | ||
name="Sem" | ||
value={sem} | ||
onChange={(e) => { | ||
setSem(e.target.value); | ||
}} | ||
> | ||
<option value="I Sem">I Sem</option> | ||
<option value="II Sem">II Sem</option> | ||
<option value="III Sem">III Sem</option> | ||
<option value="IV Sem">IV Sem</option> | ||
<option value="V Sem">V Sem</option> | ||
<option value="VI Sem">VI Sem</option> | ||
<option value="VII Sem">VII Sem</option> | ||
<option value="VIII Sem">VIII Sem</option> | ||
</select> | ||
<select | ||
className="rounded-lg border-2 border-gray-700 h-15 p-4 bg-white" | ||
name="Type of Exam" | ||
value={setTypeA} | ||
onChange={(e) => setSetTypeA(e.target.value)} | ||
> | ||
<option value="Set A">Set A</option> | ||
<option value="Set B">Set B</option> | ||
</select> | ||
<div className="flex justify-end"> | ||
<button | ||
className="flex justify-center items-center rounded-lg border-2 border-red-600 h-5 p-4 bg-white" | ||
onClick={async () => { | ||
props.onClick(date, type, year, sem,setTypeA); | ||
}} | ||
> | ||
Submit | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { Post } from "./Post"; | ||
export { GetQuestionPage } from "./GetQuestionPage" | ||
export { LandingPage } from './LandingPage' | ||
export { LandingPage } from './LandingPage' | ||
export { TypePost } from './TypePost' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters