Skip to content

Conversation

@aslan-es
Copy link
Collaborator

No description provided.

@@ -0,0 +1,42 @@
fetch("books.json")
.then((response) => response.json())
.then((books) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

بهتر بود از async await استفاده کنین

const img = document.createElement("img");
img.src = book.image;
img.alt = book.name;
img.style.width = "200px";
Copy link
Collaborator

Choose a reason for hiding this comment

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

از rem بجای پیکسل استفاده کنین

const article = document.querySelector("article");
article.style.width = "100%";
article.style.display = "grid";
article.style.gridTemplateColumns = "1fr 1fr 1fr 1fr";
Copy link
Collaborator

Choose a reason for hiding this comment

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

اینارو با flex
و flex wrap هم میشد زد در موردش بخونین خوبه


&:hover {
transform: translateY(-4px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

rem از استفاد کنین

background-color: var(--color-card);
border: 1px solid var(--color-border);
border-radius: 1rem;
padding: 1rem;
Copy link
Collaborator

Choose a reason for hiding this comment

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

rem

@mazaheriMahdi
Copy link
Collaborator

اسکرین شات از خروجی نهایی توی پی ار بزارین

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants