/* Zakładki My English Cards */ .tabs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; } .tab-button { flex: 1; min-width: 100px; padding: 13px 8px; border: 1px solid #e4d7fa; border-radius: 14px; background: #f5efff; color: #6841a5; font-weight: 600; cursor: pointer; font-size: 14px; } .tab-button.active { background: #8054c9; color: white; border-color: #8054c9; box-shadow: 0 4px 12px rgba(128, 84, 201, 0.2); } .tab-content { animation: tabAppear 0.25s ease; } @keyframes tabAppear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } [hidden] { display: none !important; } @media (max-width: 480px) { .tabs { gap: 6px; } .tab-button { font-size: 12px; padding: 12px 5px; } }

My English Cards 💜

Twoja przestrzeń do nauki angielskiego

Witaj!

Zaloguj się, aby zobaczyć swoje słówka.

// Przełączanie zakładek aplikacji document.querySelectorAll(".tab-button").forEach((button) => { button.addEventListener("click", () => { const selectedTab = button.dataset.tab; document.querySelectorAll(".tab-content").forEach((tab) => { tab.hidden = true; }); document.querySelectorAll(".tab-button").forEach((tabButton) => { tabButton.classList.remove("active"); }); document.getElementById(`tab-${selectedTab}`).hidden = false; button.classList.add("active"); }); });