generated from 202306-NEA-DZ-FEW/capstone-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(c new component): add new component
BREAKING CHANGE: Fixed the Article Card fix #41
- Loading branch information
Sara BEGACHE
committed
Oct 22, 2023
1 parent
d163d3e
commit 99ee4fe
Showing
3 changed files
with
31 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file was deleted.
Oops, something went wrong.