diff --git a/public/js/texts.js b/public/js/texts.js index 029196d..a0b69e1 100644 --- a/public/js/texts.js +++ b/public/js/texts.js @@ -8,7 +8,8 @@ document.addEventListener('DOMContentLoaded', () => { }); const texts = await res.json(); textsList.innerHTML = texts.map(text => - '
  • ' + text.name @@ -26,7 +27,9 @@ document.addEventListener('DOMContentLoaded', () => { if (res.ok) { const text = await res.json(); const li = document.createElement('li'); + li.className = 'card'; const a = document.createElement('a'); + a.className = 'card-link'; a.href = '/admin/texts/' + text.id; a.textContent = text.name; li.appendChild(a); diff --git a/views/templates/texts.php b/views/templates/texts.php index a56b5d2..a37bd1e 100644 --- a/views/templates/texts.php +++ b/views/templates/texts.php @@ -7,14 +7,30 @@ -

    Texts

    -
    Back to Admin - -
    - - -
    + +
    + +
    + +
    + +
    +
    +
    - \ No newline at end of file +