From 796f17ed908cb43184e8170d576c4e1f37c065e8 Mon Sep 17 00:00:00 2001 From: Tom Heaton Date: Tue, 18 Jun 2024 12:40:09 +0100 Subject: [PATCH] media dynamic rendering (partial) --- src/components/Media/index.jsx | 41 +++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/src/components/Media/index.jsx b/src/components/Media/index.jsx index 336344f..4050b65 100644 --- a/src/components/Media/index.jsx +++ b/src/components/Media/index.jsx @@ -17,6 +17,19 @@ import { VideoFrame, } from "./MediaElements"; +const interviews = [ + { + href: "https://www.borealisai.com/news/understanding-deep-learning/", + text: "Borealis AI", + linkText: "interview", + }, + { + href: "https://shepherd.com/best-books/machine-learning-and-deep-neural-networks", + text: "Shepherd ML book", + linkText: "recommendations", + }, +]; + export default function MediaSection() { return ( <> @@ -27,7 +40,6 @@ export default function MediaSection() { Media - {" "} Reviews, videos, podcasts, interviews @@ -37,7 +49,7 @@ export default function MediaSection() { - Car + Media @@ -75,9 +87,9 @@ export default function MediaSection() { Reviews + {/* TODO: add dynamic rendering for reviews */}
  • - {" "} Nature Machine Intelligence{" "} {" "} @@ -88,9 +100,7 @@ export default function MediaSection() { Ge Wang
  • -
  • - {" "} Amazon{" "} reviews @@ -110,7 +120,6 @@ export default function MediaSection() { by Vishal V.
  • - {" "} Amazon{" "} reviews @@ -136,18 +145,14 @@ export default function MediaSection() { Interviews
      -
    • - Borealis AI{" "} - - interview - -
    • -
    • - Shepherd ML book{" "} - - recommendations - -
    • + {interviews.map((interview, index) => ( +
    • + {interview.text}{" "} + + {interview.linkText} + +
    • + ))}