Prepare
This commit is contained in:
parent
9f163d6c84
commit
3d95aa9fc2
2 changed files with 21 additions and 15 deletions
|
@ -15,18 +15,8 @@
|
|||
<img class="text-center img-fluid" src="assets/logo.png" alt="FilmFlix logo"/>
|
||||
</div>
|
||||
|
||||
<div class="row row-cols-lg-4 g-3 d-flex justify-content-center text-center mb-3">
|
||||
<div class="col">
|
||||
<div class="border rounded color-border p-2">
|
||||
<h5 class="title">Lorem ipsum dolor sit amet, consectetur adipisicing elit. At debitis expedita quaerat? Ad delectus dolorem dolorum excepturi impedit quae recusandae! Alias at aut corporis eius, hic ipsum recusandae sequi velit?</h5>
|
||||
<p class="description-4 mb-0">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Atque dicta necessitatibus sequi. Accusantium architecto corporis, deleniti dolorem eligendi et excepturi fugit id in iste, magni officia quos ut vel velit? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laborum, numquam quibusdam? Adipisci corporis dicta eos, esse eveniet hic id iusto maxime minima, natus neque nihil, porro quas soluta unde voluptate. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium architecto commodi dignissimos dolore ducimus eum fuga hic ipsa laborum minima mollitia, nulla officia quasi recusandae repellendus reprehenderit, sed similique, temporibus. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores aut autem beatae cupiditate hic magnam maxime natus neque odit perferendis porro quaerat quidem repellendus sequi sunt temporibus, ut velit voluptatum!</p>
|
||||
<div class="row row-cols-lg-4 g-3 d-flex justify-content-center text-center mb-3" id="films">
|
||||
|
||||
<div class="d-flex">
|
||||
<span class="me-auto text-muted">Il y a 20 minutes</span>
|
||||
<span class="ms-auto text-muted">1h20min</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
@ -1,7 +1,23 @@
|
|||
$(document).ready(function () {
|
||||
console.log("OK");
|
||||
|
||||
$.get("https://ziedelth.fr/api/v1/country/fr/page/1/limit/9/episodes", function (data) {
|
||||
console.table(data);
|
||||
});
|
||||
});
|
||||
$("#films").append(generateFilmCard("lorem", "lorem"));
|
||||
|
||||
// $.get("https://ziedelth.fr/api/v1/country/fr/page/1/limit/9/episodes", function (data) {
|
||||
// console.table(data);
|
||||
// });
|
||||
});
|
||||
|
||||
function generateFilmCard(title, description) {
|
||||
return `<div class="col">
|
||||
<div class="border rounded color-border p-2">
|
||||
<h5 class="title">${title}</h5>
|
||||
<p class="description-4 mb-0">${description}</p>
|
||||
|
||||
<div class="d-flex">
|
||||
<span class="me-auto text-muted">Il y a 20 minutes</span>
|
||||
<span class="ms-auto text-muted">1h20min</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>`;
|
||||
}
|
Reference in a new issue