mirror of
https://github.com/EdiFarcas/Giveaway-app.git
synced 2026-06-29 09:00:54 +03:00
Initial commit - project setup
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
|
||||
interface GiveawayCardProps {
|
||||
title: string;
|
||||
description: string;
|
||||
imageUrl: string;
|
||||
}
|
||||
|
||||
const GiveawayCard: React.FC<GiveawayCardProps> = ({ title, description, imageUrl }) => {
|
||||
return (
|
||||
<div className="card">
|
||||
<img src={imageUrl} alt={title} className="card-image" />
|
||||
<h3>{title}</h3>
|
||||
<p>{description}</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default GiveawayCard;
|
||||
Reference in New Issue
Block a user