diff --git a/.gitignore b/.gitignore index a5c24d9..6f13da8 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ yarn-error.log* .env*.local .vercel +*.lock diff --git a/app/e-lab/[id]/page.tsx b/app/e-lab/[id]/page.tsx index 90283b2..c60ed97 100644 --- a/app/e-lab/[id]/page.tsx +++ b/app/e-lab/[id]/page.tsx @@ -1,12 +1,12 @@ import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; -import {faInstagram, faLinkedin, faXTwitter, faYoutube} from "@fortawesome/free-brands-svg-icons"; -import {faArrowLeft, faEnvelope, faLink} from "@fortawesome/free-solid-svg-icons"; -import {alumni, Person, team} from "../../../data/e-lab"; +import {faArrowLeft} from "@fortawesome/free-solid-svg-icons"; +import {alumni, Person, team} from "@data/e-lab"; import Link from "next/link"; import NotFound from "next/dist/client/components/not-found-error"; import Section from "@components/ui/Section"; import Image from "next/image"; import {ProfilePage, WithContext} from "schema-dts"; +import SocialMediaLinks from "@components/SocialMediaLinks"; export function generateStaticParams() { return team.map((person) => ({ @@ -47,7 +47,7 @@ export default function Page({params: {id}}: { params: { id: string } }) { familyName: person.lastName, description: person.description, image: 'https://www.tum-ai.com' + person.imgSrc, - email: person.email, + email: person.socialMedia.email, worksFor: { '@type': 'EmployeeRole', roleName: person.role, @@ -67,11 +67,11 @@ export default function Page({params: {id}}: { params: { id: string } }) { }, url: 'https://www.tum-ai.com/e-lab/' + person.id, sameAs: [ - person.linkedin, - person.x ? person.x : "", - person.instagram ? person.instagram : "", - person.youtube ? person.youtube : "", - person.website ? person.website : "", + person.socialMedia.linkedin, + person.socialMedia.x ? person.socialMedia.x : "", + person.socialMedia.instagram ? person.socialMedia.instagram : "", + person.socialMedia.youtube ? person.socialMedia.youtube : "", + person.socialMedia.website ? person.socialMedia.website : "", ], }, } @@ -118,72 +118,15 @@ export default function Page({params: {id}}: { params: { id: string } }) { {person?.role}

-
-

Social Media Links

-
-
- - - - {person.x ? ( - - - - ) : null} - {person.instagram ? ( - - - - ) : null} - {person.youtube ? ( - - - - ) : null} - {person.website ? ( - - - - ) : null} - {person.email ? ( - - - - ) : null} -
+
+

Social Media Links

+
+
+
+

@@ -193,97 +136,40 @@ export default function Page({params: {id}}: { params: { id: string } }) {

- {/* Person image */} -
-
- {person?.imgAlt} -
+ {/* Person image */} +
+
+ {person?.imgAlt}
-
-
-
-
-

- {person.firstName} {person.lastName} -

-

- {person.role} -

-
-
- - - - {person.x ? ( - - - - ) : null} - {person.instagram ? ( - - - - ) : null} - {person.youtube ? ( - - - - ) : null} - {person.website ? ( - - - - ) : null} - {person.email ? ( - - - - ) : null} -
+
+
+
+
+
+

+ {person.firstName} {person.lastName} +

+

+ {person.role} +

+
+
+
- +
+
); } diff --git a/app/e-lab/page.tsx b/app/e-lab/page.tsx index fbd71f6..fcea370 100644 --- a/app/e-lab/page.tsx +++ b/app/e-lab/page.tsx @@ -42,72 +42,72 @@ export const metadata: Metadata = { }; export default function Page() { - - const jsonLd: WithContext = { - '@context': 'https://schema.org', - '@type': 'Organization', - name: 'Venture Department', - alternateName: [ - 'AI Entrepreneurship Lab', - 'AI E-Lab', - 'AI E-Lab by TUM.ai', - 'AI Entrepreneurship Lab by TUM.ai', - ], - description: 'The Venture Department is the entrepreneurial arm of TUM.ai and organizes the AI Entrepreneurship Lab, a 14-week equity-free AI startup incubator.', - url: 'https://www.tum-ai.com/e-lab', - email: 'venture@tum-ai.com', - sameAs: [ - 'https://www.startbase.de/organization/ai-e-lab/', - 'https://www.startup-insider.com/investor/ai-e-lab-by-tum-ai', - 'https://www.munich-startup.de/startups/tum-ai-entrepreneurship-lab/', - ], - parentOrganization: { - '@type': 'Organization', - name: 'TUM.ai', - legalName: 'TUM.ai e.V.', - alternateName: 'TUM.ai Student Initiative', - url: 'https://www.tum-ai.com', - logo: 'https://upload.wikimedia.org/wikipedia/commons/a/a2/TUM.ai_Logo_Blue_%26_Violet.svg', - email: 'contact@tum-ai.com', - }, - contactPoint: { - '@type': 'ContactPoint', - email: 'venture@tum-ai.com', - contactType: 'Venture Department', - }, - employee: { - '@type': 'EmployeeRole', - roleName: 'Head of Venture Department', - employee: { - '@type': 'Person', - name: 'Laurenz Sommerlad', - identifier: 'laurenz-sommerlad', - email: 'laurenz.sommerlad@tum-ai.com', - url: 'https://www.tum-ai.com/e-lab/laurenz-sommerlad', + const jsonLd: WithContext = { + '@context': 'https://schema.org', + '@type': 'Organization', + name: 'Venture Department', + alternateName: [ + 'AI Entrepreneurship Lab', + 'AI E-Lab', + 'AI E-Lab by TUM.ai', + 'AI Entrepreneurship Lab by TUM.ai', + ], + description: 'The Venture Department is the entrepreneurial arm of TUM.ai and organizes the AI Entrepreneurship Lab, a 14-week equity-free AI startup incubator.', + url: 'https://www.tum-ai.com/e-lab', + email: 'venture@tum-ai.com', sameAs: [ - 'https://laurenzsommerlad.com', - 'https://www.linkedin.com/in/laurenzsommerlad/', + 'https://www.startbase.de/organization/ai-e-lab/', + 'https://www.startup-insider.com/investor/ai-e-lab-by-tum-ai', + 'https://www.munich-startup.de/startups/tum-ai-entrepreneurship-lab/', ], + parentOrganization: { + '@type': 'Organization', + name: 'TUM.ai', + legalName: 'TUM.ai e.V.', + alternateName: 'TUM.ai Student Initiative', + url: 'https://www.tum-ai.com', + logo: 'https://upload.wikimedia.org/wikipedia/commons/a/a2/TUM.ai_Logo_Blue_%26_Violet.svg', + email: 'contact@tum-ai.com', + }, contactPoint: { - '@type': 'ContactPoint', - email: 'laurenz.sommerlad@tum-ai.com', - contactType: 'Head of Venture Department', - } - }, - }, - } + '@type': 'ContactPoint', + email: 'venture@tum-ai.com', + contactType: 'Venture Department', + }, + employee: { + '@type': 'EmployeeRole', + roleName: 'Head of Venture Department', + employee: { + '@type': 'Person', + name: 'Laurenz Sommerlad', + identifier: 'laurenz-sommerlad', + email: 'laurenz.sommerlad@tum-ai.com', + url: 'https://www.tum-ai.com/e-lab/laurenz-sommerlad', + sameAs: [ + 'https://laurenzsommerlad.com', + 'https://www.linkedin.com/in/laurenzsommerlad/', + ], + contactPoint: { + '@type': 'ContactPoint', + email: 'laurenz.sommerlad@tum-ai.com', + contactType: 'Head of Venture Department', + } + }, + }, + } + return ( <> -
- {/* Add JSON-LD to your page */} -