add media-quries

This commit is contained in:
2022-10-18 00:20:14 +03:00
parent efa5583829
commit e0ce775ffe
3 changed files with 208 additions and 5 deletions

View File

@@ -145,8 +145,7 @@ cardsToShow.forEach((card, index) => {
</ul>
<p class="card__title">${card.title}</p>
<p class="card__describe">
${card.describe} <a href="about.html" onclick="${() =>
setCard(card)}" class="more">См. подробнее...</a>
${card.describe} <a href="about.html" value=${index} class="more">См. подробнее...</a>
</p>
<div class="card-inf">
<p class="card-inf__item time">${card.time}</p>
@@ -162,6 +161,7 @@ cardsToShow.forEach((card, index) => {
subscribe.forEach((el) => {
el.addEventListener("click", () => {
console.log(el.value);
localStorage.setItem("card", JSON.stringify(cards[el.value]));
location.href = "about.html";
});