-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from swetha5157/swetha
Syllabus for Particular Year Displayed
- Loading branch information
Showing
9 changed files
with
370 additions
and
29 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
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
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,11 +1,73 @@ | ||
import React from 'react' | ||
import React from 'react' | ||
import Header from "../../pages/header"; | ||
import Footer from "../../pages/footer"; | ||
import '../page4/syllabus.css'; | ||
|
||
function fstsyllabus() { | ||
|
||
const fstsyllabus =() => { | ||
|
||
// const[selectSem, setSelectSem] = useState(null); | ||
|
||
const handleDownload = (syllabus) =>{ | ||
const syllabusFilePath = process.env.PUBLIC_URL + `/syllabus/${syllabus}.pdf`; | ||
|
||
const link = document.createElement('a'); | ||
link.href = syllabusFilePath; | ||
link.download = `syllabus${syllabus}.pdf`; | ||
document.body.appendChild(link); | ||
link.click(); | ||
document.body.removeChild(link); | ||
} | ||
return ( | ||
<div> | ||
|
||
<Header/> | ||
<h2 className='head'> Download Syllabus</h2> | ||
|
||
<div class="ag-format-container"> | ||
<div class="ag-courses_box"> | ||
<div class="ag-courses_item"> | ||
<a href="#" class="ag-courses-item_link"> | ||
<div class="ag-courses-item_bg"></div> | ||
|
||
<div class="ag-courses-item_title"> | ||
Semester 1st | ||
</div> | ||
|
||
<div class="ag-courses-item_date-box"> | ||
|
||
<span class="ag-courses-item_date"> | ||
<button onClick={() => handleDownload("1stsem")} >Download</button> | ||
|
||
</span> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
<div class="ag-courses_item"> | ||
<a href="#" class="ag-courses-item_link"> | ||
<div class="ag-courses-item_bg"></div> | ||
|
||
<div class="ag-courses-item_title"> | ||
Semester 2nd | ||
</div> | ||
|
||
<div class="ag-courses-item_date-box"> | ||
|
||
<span class="ag-courses-item_date"> | ||
<button onClick={() => handleDownload("2ndsem")} >Download</button> | ||
</span> | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<Footer/> | ||
</div> | ||
) | ||
} | ||
|
||
export default fstsyllabus | ||
|
||
|
||
|
||
|
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,80 @@ | ||
import React from 'react' | ||
import Header from "../../pages/header"; | ||
import Footer from "../../pages/footer"; | ||
import '../page4/syllabus.css'; | ||
|
||
|
||
const Syllabus =() => { | ||
|
||
// const[selectSem, setSelectSem] = useState(null); | ||
|
||
const handleDownload = (syllabus) =>{ | ||
const syllabusFilePath = process.env.PUBLIC_URL + `/syllabus/${syllabus}.pdf`; | ||
|
||
const link = document.createElement('a'); | ||
link.href = syllabusFilePath; | ||
link.download = `syllabus${syllabus}.pdf`; | ||
document.body.appendChild(link); | ||
link.click(); | ||
document.body.removeChild(link); | ||
} | ||
return ( | ||
<div> | ||
<Header/> | ||
|
||
|
||
<h2 className='head'> Download Syllabus</h2> | ||
|
||
<div class="ag-format-container"> | ||
<div class="ag-courses_box"> | ||
|
||
|
||
|
||
|
||
<div class="ag-courses_item"> | ||
<a href="#" class="ag-courses-item_link"> | ||
<div class="ag-courses-item_bg"></div> | ||
|
||
<div class="ag-courses-item_title"> | ||
Semester 3rd | ||
</div> | ||
|
||
<div class="ag-courses-item_date-box"> | ||
<span class="ag-courses-item_date"> | ||
<button onClick={() => handleDownload("3rdsem")} >Download</button> | ||
|
||
</span> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
<div class="ag-courses_item"> | ||
<a href="#" class="ag-courses-item_link"> | ||
<div class="ag-courses-item_bg"></div> | ||
|
||
<div class="ag-courses-item_title"> | ||
Semester 4th | ||
</div> | ||
|
||
<div class="ag-courses-item_date-box"> | ||
|
||
<span class="ag-courses-item_date"> | ||
<button onClick={() => handleDownload("4thsem")} >Download</button> | ||
</span> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
|
||
|
||
|
||
</div> | ||
</div> | ||
<Footer/> | ||
</div> | ||
) | ||
} | ||
|
||
export default Syllabus | ||
|
||
|
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,81 @@ | ||
import React from 'react' | ||
import Header from "../../pages/header"; | ||
import Footer from "../../pages/footer"; | ||
import '../page4/syllabus.css'; | ||
|
||
|
||
const frthsyllabus =() => { | ||
|
||
// const[selectSem, setSelectSem] = useState(null); | ||
|
||
const handleDownload = (syllabus) =>{ | ||
const syllabusFilePath = process.env.PUBLIC_URL + `/syllabus/${syllabus}.pdf`; | ||
|
||
const link = document.createElement('a'); | ||
link.href = syllabusFilePath; | ||
link.download = `syllabus${syllabus}.pdf`; | ||
document.body.appendChild(link); | ||
link.click(); | ||
document.body.removeChild(link); | ||
} | ||
return ( | ||
<div> | ||
<Header/> | ||
|
||
|
||
<h2 className='head'> Download Syllabus</h2> | ||
|
||
<div class="ag-format-container"> | ||
<div class="ag-courses_box"> | ||
|
||
|
||
<div class="ag-courses_item"> | ||
<a href="#" class="ag-courses-item_link"> | ||
<div class="ag-courses-item_bg"></div> | ||
|
||
<div class="ag-courses-item_title"> | ||
Semester 7th | ||
</div> | ||
|
||
<div class="ag-courses-item_date-box"> | ||
|
||
<span class="ag-courses-item_date"> | ||
<button onClick={() => handleDownload("4thyrsyllabus")} >Download</button> | ||
|
||
</span> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
<div class="ag-courses_item"> | ||
<a href="#" class="ag-courses-item_link"> | ||
<div class="ag-courses-item_bg"></div> | ||
|
||
<div class="ag-courses-item_title"> | ||
Semester 8th | ||
</div> | ||
|
||
<div class="ag-courses-item_date-box"> | ||
|
||
<span class="ag-courses-item_date"> | ||
<button onClick={() => handleDownload("4thyrsyllabus")} >Download</button> | ||
|
||
</span> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
</div> | ||
</div> | ||
<Footer/> | ||
</div> | ||
) | ||
} | ||
|
||
export default frthsyllabus | ||
|
||
|
Oops, something went wrong.