From 75449212316e4c8a1c0af108a664bf633c764e11 Mon Sep 17 00:00:00 2001 From: ndthanhdev Date: Fri, 25 Jul 2025 02:22:04 +0700 Subject: [PATCH] feat: add frameUrl support to Media and ProjectCard components --- .../fragments/project-card/index.tsx | 20 +++++++--- .../fragments/project-card/styles.ts | 40 ++++++++++++++----- .../src/components/screens/projects/index.tsx | 2 + apps/app/src/hooks/use-apps.ts | 1 + 4 files changed, 47 insertions(+), 16 deletions(-) diff --git a/apps/app/src/components/fragments/project-card/index.tsx b/apps/app/src/components/fragments/project-card/index.tsx index 55d6d3f2..357b4548 100644 --- a/apps/app/src/components/fragments/project-card/index.tsx +++ b/apps/app/src/components/fragments/project-card/index.tsx @@ -2,23 +2,32 @@ import * as muiIcon from "@mui/icons-material"; import * as mui from "@mui/material"; import { Link as GatsbyLink } from "gatsby"; -import { styles } from "./styles"; +import { styles, useMediaStyles } from "./styles"; export interface MediaProps { + frameUrl?: string; title: string; - url: string; } -export const Media = ({ title, url }: MediaProps) => { +export const Media = (props: MediaProps) => { + const { frameUrl, title } = props; + + const styles = useMediaStyles(props); + return ( -