Skip to content

Commit

Permalink
fix all issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhanshurav committed Aug 7, 2024
1 parent af4f231 commit 55e473e
Show file tree
Hide file tree
Showing 19 changed files with 706 additions and 490 deletions.
Binary file removed src/Assets/dyp.png
Binary file not shown.
Binary file removed src/Assets/dyp_logo.png
Binary file not shown.
Binary file removed src/Assets/dypcoe.jpeg
Binary file not shown.
Binary file removed src/Assets/dyplogo.png
Binary file not shown.
Binary file removed src/Assets/logo.png
Binary file not shown.
4 changes: 4 additions & 0 deletions src/Pages/CertificateDetails/CertificatesUploadDetails.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import React from 'react';
import CertificationForm from './CertificationForm';
import Navbar from '../../components/Navbar';

function CertificatesUploadDetails() {
return (
<div className="bg-gray-900 py-10 h-screen px-4">
{/* <h1 className='text-2xl pt-6'>Placement Portal</h1> */}
<div className='mt-[-50px] pb-6'>
<Navbar ShowBtn = {false}/>
</div>
<CertificationForm />
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions src/Pages/GateStudent/GateStudentUploadDetails.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import React from 'react';
import GateStudentForm from './GateStudentForm';
import Navbar from '../../components/Navbar';

function GateStudentUploadDetails() {
return (
<div className="bg-gray-900 py-10 h-screen px-4">
{/* <h1 className='text-2xl pt-6'>Placement Portal</h1> */}
<div className='mt-[-50px] pb-6'>
<Navbar ShowBtn = {false}/>
</div>
<GateStudentForm />
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const Home = () => {
<>
{<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5164424016159245"
crossorigin="anonymous"></script>}
<Navbar ShowBtn={true}/>
<div className="w-screen h-full flex justify-center items-center flex-col pb-20 bg-[#000000] ">
<Navbar />
<div className="flex justify-evenly w-[92%] h-full flex-col items-center">

{/* <h2 className='placement_name'>Placement Portal</h2> */}
Expand Down
150 changes: 78 additions & 72 deletions src/Pages/Internship/internshipStudentForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState } from 'react';
import axios from 'axios';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import Navbar from '../../components/Navbar';
const BASE_URL = process.env.REACT_APP_BASE_URL;

const InternshipStudentForm = () => {
Expand Down Expand Up @@ -53,79 +54,84 @@ const InternshipStudentForm = () => {
};

return (
<div className="mx-auto p-4 bg-gray-100 rounded-lg shadow-md md:w-[60%] w-fit ">
<h1 className="text-xl md:text-3xl font-bold text-black border-b-4 border-black w-fit m-auto mb-4">Add Internship Form</h1>
<form onSubmit={onSubmit} className=''>
<div className="mb-4">
<label className="block text-gray-700">Name</label>
<input
type="text"
value={name}
onChange={(e) => setName(e.target.value)}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>
<>
<div className='mt-[-50px] pb-6'>
<Navbar />
</div>
<div className="mx-auto p-4 bg-gray-100 rounded-lg shadow-md md:w-[60%] w-fit ">
<h1 className="text-xl md:text-3xl font-bold text-black border-b-4 border-black w-fit m-auto mb-4">Add Internship Form</h1>
<form onSubmit={onSubmit} className=''>
<div className="mb-4">
<label className="block text-gray-700">Name</label>
<input
type="text"
value={name}
onChange={(e) => setName(e.target.value)}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>

<div className="mb-4">
<label className="block text-gray-700">Year</label>
<input
type="text"
value={year}
onChange={(e) => setYear(e.target.value)}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>
<div className="mb-4">
<label className="block text-gray-700">Department</label>
<input
type="text"
value={department}
onChange={(e) => setDepartment(e.target.value)}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>
<div className="mb-4">
<label className="block text-gray-700">Company Name</label>
<input
type="text"
value={companyName}
onChange={(e) => setCompanyName(e.target.value)}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>
<div className="mb-4">
<label className="block text-gray-700">Stipend</label>
<input
type="text"
value={stipend}
onChange={(e) => setStipend(e.target.value)}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>

<div className="mb-4">
<label className="block text-gray-700">Internship Certificate Image</label>
<input
type="file"
onChange={(e) => setImage(e.target.files[0])}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>
<button
type="submit"
className="w-full bg-blue-500 text-white py-2 rounded-md hover:bg-blue-600"
>
Submit
</button>
</form>
<ToastContainer />
</div>
<div className="mb-4">
<label className="block text-gray-700">Year</label>
<input
type="text"
value={year}
onChange={(e) => setYear(e.target.value)}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>
<div className="mb-4">
<label className="block text-gray-700">Department</label>
<input
type="text"
value={department}
onChange={(e) => setDepartment(e.target.value)}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>
<div className="mb-4">
<label className="block text-gray-700">Company Name</label>
<input
type="text"
value={companyName}
onChange={(e) => setCompanyName(e.target.value)}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>
<div className="mb-4">
<label className="block text-gray-700">Stipend</label>
<input
type="text"
value={stipend}
onChange={(e) => setStipend(e.target.value)}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>

<div className="mb-4">
<label className="block text-gray-700">Internship Certificate Image</label>
<input
type="file"
onChange={(e) => setImage(e.target.files[0])}
required
className="w-full px-3 py-1 border border-gray-300 rounded-md"
/>
</div>
<button
type="submit"
className="w-full bg-blue-500 text-white py-2 rounded-md hover:bg-blue-600"
>
Submit
</button>
</form>
<ToastContainer />
</div>
</>
);
};

Expand Down
4 changes: 4 additions & 0 deletions src/Pages/Internship/internshipUploadDetails.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import React from 'react';
import InternshipStudentForm from './InternshipStudentForm';
import Navbar from '../../components/Navbar';

function InternshipUploadDetails() {
return (
<div className="bg-gray-900 py-10 h-screen px-4">
{/* <h1 className='text-2xl pt-6'>Placement Portal</h1> */}
<div className='mt-[-50px] pb-6'>
<Navbar ShowBtn = {false} />
</div>
<InternshipStudentForm />
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions src/Pages/PlacedStudent/StudentUploadDetails.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import React from 'react';
import StudentForm from './StudentForm';
import Navbar from '../../components/Navbar';

function StudentUploadDetails() {
return (
<div className="bg-gray-900 py-10 h-fit px-4">
{/* <h1 className='text-2xl pt-6'>Placement Portal</h1> */}
<div className='mt-[-50px] pb-6'>
<Navbar ShowBtn = {false}/>
</div>
<StudentForm />
</div>
);
Expand Down
7 changes: 1 addition & 6 deletions src/Styles/Sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@
left: 0;
z-index: 7;
}
.sidebar_name {
width: 100%;
height: 25%;
border-bottom: 2px solid #f8b117;
}
.sidebar_college_name {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
flex-direction: column;
color: #bfc4c4;
/* color: #bfc4c4; */
text-align: center;
}
.sidebar_college_name>span{
Expand Down
Loading

0 comments on commit 55e473e

Please sign in to comment.