Apply Now
diff --git a/data/internshipData.js b/data/internshipData.js
new file mode 100644
index 00000000..dda07bcc
--- /dev/null
+++ b/data/internshipData.js
@@ -0,0 +1,29 @@
+let i = 0;
+const internshipData = [
+ {
+ "id": i++,
+ "image": "",
+ "title": "Software Engineering",
+ "date": "12 August 2023",
+ "applyNow": "https://example.com/apply1",
+ "description": "This internship offers hands-on experience in software engineering, working on cutting-edge projects with a talented team. Apply now to gain valuable skills and contribute to innovative solutions."
+ },
+ {
+ "id": i++,
+ "image": "",
+ "title": "Marketing",
+ "date": "10 September 2023",
+ "applyNow": "https://example.com/apply2",
+ "description": "Join our marketing team and assist in creating engaging campaigns, analyzing market trends, and implementing strategies. Apply now to gain practical marketing experience and make a real impact."
+ },
+ {
+ "id": i++,
+ "image": "",
+ "title": "Graphic Design",
+ "date": "11 October 2023",
+ "applyNow": "https://example.com/apply3",
+ "description": "Work closely with our design team to create visually appealing graphics for various projects. Develop your design skills and contribute to exciting design initiatives. Apply now to showcase your creativity!"
+ }
+];
+
+export default internshipData;
diff --git a/pages/opportunities/index.js b/pages/opportunities/index.js
index 340373eb..4ec2ab5d 100644
--- a/pages/opportunities/index.js
+++ b/pages/opportunities/index.js
@@ -1,22 +1,31 @@
+import Head from "next/head";
import Footer from "components/common/Footer";
import Header from "components/common/Header/Header";
import OppCard from "components/Opportunities/oppCard";
import styles from "@styles/oppCard.module.css";
import Link from "node_modules/next/link";
+import GoToTop from "components/GoToTop";
+import internshipData from "/data/internshipData";
-const Index = (dataOpp) => {
+const Index = () => {
return (
+
+
+ Internships | Amupedia
+
+
+
{
- dataOpp.result.result.map((data,index)=>(
-
-
-
+ internshipData.map((data)=>(
+
+
+
)
@@ -29,13 +38,3 @@ const Index = (dataOpp) => {
};
export default Index;
-
-export const getServerSideProps = async () => {
- const data = await fetch("http://localhost:3000/api/opportunities/fetchOpportunities");
- const result = await data.json();
- return {
- props: {
- result
- }
-}
-}
\ No newline at end of file