Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
f374cd0437 | |||
764f0111f8 | |||
f36adbba6c | |||
75a78526d2 | |||
8e1419b186 | |||
febac2954a |
@ -12,7 +12,7 @@
|
|||||||
"localstorage": {}
|
"localstorage": {}
|
||||||
},
|
},
|
||||||
"manifestVersion": 2,
|
"manifestVersion": 2,
|
||||||
"website": "https://zoemp.be/cine-kids",
|
"website": "https://cinekids.info",
|
||||||
"contactEmail": "morgan@zoemp.be",
|
"contactEmail": "morgan@zoemp.be",
|
||||||
"icon": "file://logo.png",
|
"icon": "file://logo.png",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
@ -36,3 +36,4 @@ echo "Version bumped to $NEW_VERSION"
|
|||||||
git add VERSION
|
git add VERSION
|
||||||
git tag "v$MAJOR.$MINOR.$PATCH"
|
git tag "v$MAJOR.$MINOR.$PATCH"
|
||||||
git push origin "v$MAJOR.$MINOR.$PATCH"
|
git push origin "v$MAJOR.$MINOR.$PATCH"
|
||||||
|
git push origin --tags
|
||||||
|
BIN
doc/demo.webp
BIN
doc/demo.webp
Binary file not shown.
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 462 KiB |
@ -2,7 +2,8 @@
|
|||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Agrégateur Multi-Source</title>
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>CineKids: Recommandations d'âge requis pour films et séries tv :-)</title>
|
||||||
<style>
|
<style>
|
||||||
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #1a1a1a; color: #e0e0e0; margin: 0; padding: 20px; font-size: 14px; }
|
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #1a1a1a; color: #e0e0e0; margin: 0; padding: 20px; font-size: 14px; }
|
||||||
.container { max-width: 1200px; margin: auto; }
|
.container { max-width: 1200px; margin: auto; }
|
||||||
@ -35,12 +36,62 @@
|
|||||||
min-width:2.5em;display:inline-block;letter-spacing:0.05em;
|
min-width:2.5em;display:inline-block;letter-spacing:0.05em;
|
||||||
margin-left:10px;transition:background 0.2s;
|
margin-left:10px;transition:background 0.2s;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 800px) {
|
||||||
|
.searchbox {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
.searchbox input[type="text"] {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.searchbox button {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.maxagebox {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: 10px;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.results-table,
|
||||||
|
.results-table tbody,
|
||||||
|
.results-table tr,
|
||||||
|
.results-table td {
|
||||||
|
display: block;
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
.results-table thead {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.results-table tr {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
border-bottom: 1px solid #333;
|
||||||
|
}
|
||||||
|
.results-table td {
|
||||||
|
border: none;
|
||||||
|
padding: 10px 0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.results-table td:first-child div {
|
||||||
|
font-size: 1.2em;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.results-table img,
|
||||||
|
.source-block img {
|
||||||
|
width: 100% !important;
|
||||||
|
height: auto !important;
|
||||||
|
display: block;
|
||||||
|
margin: 10px 0 !important;
|
||||||
|
float: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<img src="/logo.png" alt="Logo CineKids" style="display:block;margin:30px auto 10px;max-width:130px;height:auto;">
|
<img src="/logo.png" alt="Logo CineKids" style="display:block;margin:30px auto 10px;max-width:130px;height:auto;">
|
||||||
<h1>Ciné-agrégateur Multi-Source</h1>
|
<h1>CinéKids - Recommandations d'âge requis pour films et séries tv</h1>
|
||||||
<div class="searchbox">
|
<div class="searchbox">
|
||||||
<input type="text" id="q" placeholder="Ex: Dune, Spider-Man, Oppenheimer..." />
|
<input type="text" id="q" placeholder="Ex: Dune, Spider-Man, Oppenheimer..." />
|
||||||
<button onclick="search()">Rechercher</button>
|
<button onclick="search()">Rechercher</button>
|
||||||
@ -187,7 +238,6 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extraction de la partie rendering pour pouvoir la réutiliser
|
|
||||||
function renderFilms(films) {
|
function renderFilms(films) {
|
||||||
const filmsDiv = document.getElementById('films');
|
const filmsDiv = document.getElementById('films');
|
||||||
if (!films.length) {
|
if (!films.length) {
|
||||||
@ -210,7 +260,7 @@
|
|||||||
<td style="vertical-align:top;">
|
<td style="vertical-align:top;">
|
||||||
<div style="text-align:center;">
|
<div style="text-align:center;">
|
||||||
<div style="font-weight:bold;margin-bottom:0.7em;">${film.title || 'Unknown title'}</div>
|
<div style="font-weight:bold;margin-bottom:0.7em;">${film.title || 'Unknown title'}</div>
|
||||||
${mainImg ? `<img src="${mainImg}" alt="Poster for ${film.title}" style="display:block;margin:auto;max-width:100px;max-height:150px;border-radius:5px;box-shadow:0 2px 8px #0003;margin-bottom:10px;">` : ''}
|
${mainImg ? `<img src="${mainImg}" alt="Poster for ${film.title}" style="display:block;margin:auto;max-width:200px;max-height:250px;border-radius:5px;box-shadow:0 2px 8px #0003;margin-bottom:10px;">` : ''}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="year" style="vertical-align:top;">${film.year || 'N/A'}</td>
|
<td class="year" style="vertical-align:top;">${film.year || 'N/A'}</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user