Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 3 changed files with 1,842 additions and 2,005 deletions.
55 changes: 30 additions & 25 deletions src/Component/Documetation/Internship/InternPage.jsx
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
/** @format */

import './internpage.css';
import { useRef, useState } from 'react';
import PaginatedItems from '../../pagination';

import "./internpage.css";
import { useRef, useState } from "react";
import PaginatedItems from "../../pagination";

let InternPage = () => {
// Dispatch and Subscribe
const button = document.querySelectorAll('viewMore');
const button = document.querySelectorAll("viewMore");
const ref = useRef(null);

const [currentData, setCurrentData] = useState([])
const [pageSummary, setPageSummary] = useState("")
const [currentData, setCurrentData] = useState([]);
const [pageSummary, setPageSummary] = useState("");
// console.log(currentData)

return (
<div style={{ background: "black" }}>
<p className="page-summary">{pageSummary}</p>

<div style={{ background: 'black' }}>

<p className='page-summary'>{pageSummary}</p>

<div className='internBox'>

<div className="internBox">
{currentData.map((item, index) => {
return (

<div className="BoxContent" key={index}>
<img className='ApiImg' key={index} src={item.image} alt="" />
<h2 className='InternTitle' ref={ref}>{item.internship_name}</h2>
<img className="ApiImg" key={index} src={item.image} alt="" />
<h2 className="InternTitle" ref={ref}>
{item.internship_name}
</h2>
<div className="time">
<div className="mode">{item.mode}</div>
<div className="duration">{item.duration}</div>
</div>
<p className='desc'>{item.description}</p>
<p className="desc">{item.description}</p>
{/* ----------write logic for this */}
{/* <div className="fullBox">
<h5 className='company_name'>{item.company_name}</h5>
Expand All @@ -41,19 +38,27 @@ let InternPage = () => {
<button className='ApplyButton'>Apply Now ✅</button>
</div> */}

<button className='viewMore' id='btn' style={{ cursor: 'pointer' }} ref={ref} onClick={() => { window.open(item.link) }} >Apply Now</button>

<button
className="viewMore"
id="btn"
style={{ cursor: "pointer" }}
ref={ref}
onClick={() => {
window.open(item.link);
}}>
Apply Now
</button>
</div>

)
);
})}

</div>

<PaginatedItems setCurrentData={setCurrentData} setPageSummary={setPageSummary}/>

<PaginatedItems
setCurrentData={setCurrentData}
setPageSummary={setPageSummary}
/>
</div>
);
};

export default InternPage;
export default InternPage;
Loading

0 comments on commit 7e77892

Please sign in to comment.