Skip to content

Commit

Permalink
update styles card
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignaherrero committed Apr 8, 2022
1 parent ba89d2f commit 1ef9c16
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,16 @@ export default function Home() {
</form>
{articles.found === statusFetch.notFound && (
<>
<h1>No se encontro el articulo</h1>
<h2>Ultimos articulos publicados</h2>
<h1 className="text-center">No se encontro el articulo</h1>
<h2 className="text-center">Ultimos articulos publicados</h2>
</>
)}
<div className="flex justify-center flex-wrap ">
{articles?.data &&
articles.data.map((article) => {
return (
<div
className="rounded-lg shadow-lg bg-white max-w-sm"
className="rounded-lg shadow-lg bg-white max-w-sm m-2"
key={article.id}
>
<a href="#!">
Expand All @@ -162,8 +162,7 @@ export default function Home() {
{article.title}
</h5>
<p className="text-gray-700 text-base mb-4">
Some quick example text to build on the card title and make
up the bulk of the cards content.
{article.categories[0].description}
</p>
<Link
href={`/posts/[id]`}
Expand Down Expand Up @@ -211,7 +210,9 @@ export default function Home() {
</div>
)}

{articles.found === statusFetch.pending && <p>cargando...</p>}
{articles.found === statusFetch.pending && (
<p className="text-center">cargando...</p>
)}
</>
);
}

1 comment on commit 1ef9c16

@vercel
Copy link

@vercel vercel bot commented on 1ef9c16 Apr 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

challenge-atomik – ./

challenge-atomik-git-main-nacho93.vercel.app
challenge-atomik.vercel.app
challenge-atomik-nacho93.vercel.app

Please sign in to comment.