From 1a15cf011c91949bae013a3208a26c7e38db9c53 Mon Sep 17 00:00:00 2001 From: Aryan Mohanty Date: Sat, 20 Apr 2024 15:06:56 +0530 Subject: [PATCH 1/2] Complete team page --- app/(components)/NavComp.jsx | 2 +- app/(components)/TeamCard.jsx | 23 ++++++++ app/(data)/speaker.json | 0 app/(data)/team.json | 107 ++++++++++++++++++++++++++++++++++ app/layout.js | 9 +-- app/merch/page.jsx | 8 +++ app/page.js | 2 +- app/team/page.js | 21 +++++++ 8 files changed, 164 insertions(+), 8 deletions(-) create mode 100644 app/(components)/TeamCard.jsx create mode 100644 app/(data)/speaker.json create mode 100644 app/(data)/team.json create mode 100644 app/merch/page.jsx create mode 100644 app/team/page.js diff --git a/app/(components)/NavComp.jsx b/app/(components)/NavComp.jsx index e3f9b7f..f6da8b9 100644 --- a/app/(components)/NavComp.jsx +++ b/app/(components)/NavComp.jsx @@ -18,7 +18,7 @@ export default function App() { - TEDxVITAP + TEDx VITAP diff --git a/app/(components)/TeamCard.jsx b/app/(components)/TeamCard.jsx new file mode 100644 index 0000000..c252406 --- /dev/null +++ b/app/(components)/TeamCard.jsx @@ -0,0 +1,23 @@ +import React from "react"; +import { Card, CardFooter, Image } from "@nextui-org/react"; + +export default function TeamCard({ name, position, image}) { + return ( + + Image of Speaker + +
+

{name}

+

{position}

+ +
+
+
+ ); +} diff --git a/app/(data)/speaker.json b/app/(data)/speaker.json new file mode 100644 index 0000000..e69de29 diff --git a/app/(data)/team.json b/app/(data)/team.json new file mode 100644 index 0000000..efc2f81 --- /dev/null +++ b/app/(data)/team.json @@ -0,0 +1,107 @@ +[ + { + "name": "Sagnik", + "position": "Student Curation Head", + "image": "https://i.postimg.cc/PfvR6cng/sagnik.jpg" + }, + { + "name": "Kriti", + "position": "Student Curation Head", + "image": "https://i.postimg.cc/XvpYt38K/kriti.jpg" + }, + { + "name": "Avinash", + "position": "Student Organizer Head", + "image": "https://i.postimg.cc/w38dTpHR/avinash.jpg" + }, + { + "name": "Jai", + "position": "Student Organizer Head", + "image": "https://i.postimg.cc/3Rvm6s8b/jai.jpg" + }, + { + "name": "Dhruv", + "position": "Student Organizer Head", + "image": "https://i.postimg.cc/nh4Kcbq8/dhruv.jpg" + }, + { + "name": "Tarun", + "position": "Tech Head", + "image": "https://i.postimg.cc/yYtB62sT/tarun.jpg" + }, + { + "name": "Aryan", + "position": "Tech Head", + "image": "https://i.postimg.cc/nh1JKrq3/aryan.jpg" + }, + { + "name": "Vanshika", + "position": "Design Head", + "image": "https://i.postimg.cc/DzD8JG8b/vanshika.jpg" + }, + { + "name": "Soumyadip", + "position": "Designer", + "image": "https://i.postimg.cc/kGjxH4TN/soumyadip.jpg" + }, + { + "name": "Pranavesh", + "position": "Designer", + "image": "https://i.postimg.cc/Z5TRCPWb/pranavesh.jpg" + }, + { + "name": "Saurabh", + "position": "Designer", + "image": "https://i.postimg.cc/4Nvk7rct/saurabh.jpg" + }, + { + "name": "Nitin", + "position": "Social Media Manager", + "image": "https://i.postimg.cc/9fLQQvsL/nitin.jpg" + }, + { + "name": "Anas", + "position": "Promotional Manager", + "image": "https://i.postimg.cc/G2cvKGbg/anas.jpg" + }, + { + "name": "Vinayak", + "position": "Promotional Manager", + "image": "https://i.postimg.cc/dV77pQXJ/vinayak.jpg" + }, + { + "name": "Eeshwar", + "position": "Operation Head", + "image": "https://i.postimg.cc/nc92YxkQ/himanshu.jpg" + }, + { + "name": "Himanshu", + "position": "Stage Tech Head", + "image": "https://i.postimg.cc/t7GHWkrr/himanshu.jpg" + }, + { + "name": "Indu", + "position": "Stage Decor Head", + "image": "https://i.postimg.cc/jj862dv5/indu.jpg" + }, + { + "name": "Mithilesh", + "position": "Videography Head", + "image": "https://i.postimg.cc/2S7VjcT8/mithilesh.jpg" + }, + { + "name": "Arjun", + "position": "Videography Head", + "image": "https://i.postimg.cc/PrcMzxk8/arjun.jpg" + }, + { + "name": "Isa", + "position": "External Relations Head", + "image": "https://i.postimg.cc/Mp0HdPQJ/isa.jpg" + }, + { + "name": "Rohith", + "position": "Resource Head", + "image": "https://i.postimg.cc/TPrwNk5X/rohith.jpg" + } +] \ No newline at end of file diff --git a/app/layout.js b/app/layout.js index 9892e74..2d19c95 100644 --- a/app/layout.js +++ b/app/layout.js @@ -8,8 +8,8 @@ import FooterComp from "./(components)/FooterComp"; const inter = Inter({ subsets: ["latin"] }); export const metadata = { - title: "TEDxVITAP", - description: "Generated by create next app", + title: "TEDx VITAP", + description: "Official Site for TEDx VIT-AP", }; export default function RootLayout({ children }) { @@ -19,10 +19,7 @@ export default function RootLayout({ children }) {
-
- {children} - -
+ {children}
diff --git a/app/merch/page.jsx b/app/merch/page.jsx new file mode 100644 index 0000000..c316243 --- /dev/null +++ b/app/merch/page.jsx @@ -0,0 +1,8 @@ + +export default function Merch() { + return ( +
+ hello merch +
+ ) +} \ No newline at end of file diff --git a/app/page.js b/app/page.js index a156b9c..9a675b8 100644 --- a/app/page.js +++ b/app/page.js @@ -28,4 +28,4 @@ export default function Page() { ); -} +} \ No newline at end of file diff --git a/app/team/page.js b/app/team/page.js new file mode 100644 index 0000000..23db0eb --- /dev/null +++ b/app/team/page.js @@ -0,0 +1,21 @@ +import TeamCard from "../(components)/TeamCard" +import TeamData from "../(data)/team.json" + +export default function Team() { + return ( +
+
+ MEET THE TEAM +
+
+ {TeamData.map((person) => ( + + ))} +
+
+ ) +} \ No newline at end of file From f54d757782880bbac019ccc04e8a8d34226f1ea2 Mon Sep 17 00:00:00 2001 From: Aryan Mohanty Date: Sat, 20 Apr 2024 15:37:47 +0530 Subject: [PATCH 2/2] fix missing key error --- app/team/{page.js => page.jsx} | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) rename app/team/{page.js => page.jsx} (60%) diff --git a/app/team/page.js b/app/team/page.jsx similarity index 60% rename from app/team/page.js rename to app/team/page.jsx index 23db0eb..74868a1 100644 --- a/app/team/page.js +++ b/app/team/page.jsx @@ -8,12 +8,14 @@ export default function Team() { MEET THE TEAM
- {TeamData.map((person) => ( - + {TeamData.map((person, index) => ( +
+ +
))}