PHP Classes

File: frontend/src/components/CardBlog/index.tsx

Recommend this page to a friend!
  Classes of carlos carvalho   yrprey PHP application   frontend/src/components/CardBlog/index.tsx   Download  
File: frontend/src/components/CardBlog/index.tsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: yrprey PHP application
Web app to learn about OWASP API vulnerabilities
Author: By
Last change:
Date: 3 months ago
Size: 985 bytes
 

Contents

Class file image Download
import Link from "next/link"; import Image from "next/image"; import { FaArrowRight } from "react-icons/fa"; import { ICardBlog } from "@/interfaces/ICardBlog/ICardBlog"; import { StyledCard } from "./style"; const Card = ({ background_color, details_color, link_color, title, text_details, route, image, }: ICardBlog) => { return ( <StyledCard background_color={background_color} details_color={details_color} link_color={link_color} > <div className="content-up"> <Image className="image" src={image} fill alt="image" ></Image> </div> <div className="content-down"> <div> <p className="title">{title}</p> <p className="details">{text_details}</p> </div> <Link className="link" href={route}> Read More? <FaArrowRight /> </Link> </div> </StyledCard> ); } export default Card;