Skip to content

Commit

Permalink
Merge pull request #267 from UdaykiranRegimudi/patch-2
Browse files Browse the repository at this point in the history
Update News.jsx
  • Loading branch information
hustlerZzZ authored Jun 9, 2024
2 parents 0ec7ce8 + 68379cb commit dad2e8c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pages/News.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ function News() {
Trending Food and Health News
</h1>
<main className="mt-24 p-4">
<div className="container grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4">
{articles.map((article, index) => (
<NewsCard key={index} article={article} />
))}
<div style={{display:"flex",justifyContent:"center"}}>
<div className="container grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-5 ">
{articles.map((article, index) => (
<NewsCard key={index} article={article} />
))}
</div>
</div>
</main>
<Footer />
Expand Down

0 comments on commit dad2e8c

Please sign in to comment.