Skip to content

Commit

Permalink
Update News.jsx
Browse files Browse the repository at this point in the history
Aligned cards to center, enhancing the website's visual appeal and user experience
  • Loading branch information
UdaykiranRegimudi authored Jun 8, 2024
1 parent 3066737 commit 68379cb
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 68379cb

Please sign in to comment.