Skip to content

Commit

Permalink
feat(c new component): add new component
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Fixed the Article Card

fix #41
  • Loading branch information
Sara BEGACHE committed Oct 22, 2023
1 parent d163d3e commit 99ee4fe
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
7 changes: 7 additions & 0 deletions public/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NEXT_PUBLIC_FIREBASE_APIKEY="AIzaSyAawWqqd56S9jaiZgGb909EWJiaGPpNH9I"
NEXT_PUBLIC_FIREBASE_AUTHDOMAIN="recoded-capstone-39843.firebaseapp.com"
NEXT_PUBLIC_FIREBASE_PROJECTID="recoded-capstone-39843"
NEXT_PUBLIC_FIREBASE_STORAGEBUCKET="recoded-capstone-39843.appspot.com"
NEXT_PUBLIC_FIREBASE_MESSAGINGSENDERID="964676619740"
NEXT_PUBLIC_FIREBASE_APPID="1:964676619740:web:0a34622e06b361e9565319"
NEXT_PUBLIC_FIREBASE_MEASUREMENTID="G-BEL1FTRGY3"
24 changes: 24 additions & 0 deletions src/components/ArticleCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from "react";
import Image from "next/image";

const ArticleCard = ({ title, location, date, content, imageUrl }) => {
return (
<div className='max-w-xs rounded overflow-hidden shadow-lg article-card'>
<Image
width={500}
height={500}
src='next.svg'
alt='avatar'
className='w-full'
/>
<div className='px-6 py-4'>
<h2 className='font-bold text-xl mb-2'>title</h2>
<p className='text-sm'>location</p>
<p className='text-sm text-gray-600'>date</p>
<p className='text-base text-gray-700 mt-2'>content</p>
</div>
</div>
);
};

export default ArticleCard;
28 changes: 0 additions & 28 deletions src/components/developeravatar/DeveloperAvatar.jsx

This file was deleted.

0 comments on commit 99ee4fe

Please sign in to comment.