Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</div>
<div class="d-block d-md-none">
<div class="row">
<% newMovies.slice(0,4).forEach(movie => { %>
<% newMovies.slice(0,12).forEach(movie => { %>
<%-include(`./partials/${card}.ejs`, {
url: `${APP_URL}/view/${movie.imdb_id}/movie`,
poster: movie.poster,
Expand Down Expand Up @@ -66,7 +66,7 @@
</div>
<div class="d-block d-md-none">
<div class="row">
<% newSeries.slice(0,4).forEach(series => { %>
<% newSeries.slice(0,12).forEach(series => { %>
<%-include(`./partials/${card}.ejs`, {
url: `${APP_URL}/view/${series.imdb_id}/series`,
poster: series.poster,
Expand Down
11 changes: 6 additions & 5 deletions views/partials/card-add.ejs
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
<div class="col-md-3 col-sm-6 mb-4">
<div class="col-12 col-sm-6 col-md-4 col-xl-3 mb-4">
<div class="card bg-dark bg-gradient mb-3 shadow-lg border border-0">
<a href="<%- url %>">
<img class="card-img-top" src="<%- poster %>" alt="<%- title %>" onerror="this.onerror=null;this.src='<%= APP_URL %>/images/no-binger.jpg';">
</a>
<div class="card-body">
<h5 class="card-title text-nowrap text-truncate text-warning"><%- title %></h5>
<div class="d-flex">
<form action="<%= APP_URL %>/watchlist/add" method="post" class="w-25 mt-2 me-2">
<form action="<%= APP_URL %>/watchlist/add" method="post" class="col-6 col-lg-3 mt-2 me-2">
<input type="hidden" name="imdbId" value="<%- id %>">
<input type="hidden" name="title" value="<%- title %>">
<input type="hidden" name="poster" value="<%- poster %>">
<input type="hidden" name="type" value="<%- type %>">
<button type="submit" class="btn btn-success">
<button type="submit" class="btn btn-success w-100">
<i class="bi-plus-circle-fill px-1"></i>
</button>
</form>
<a class="btn btn-primary w-100 mt-2" href="<%- url %>">
<i class="bi-collection-play-fill px-1"></i> Watch Now
<a class="btn btn-primary col-6 col-lg-9 mt-2" href="<%- url %>">
<i class="d-none d-lg-inline fst-normal"><i class="bi-collection-play-fill px-1"></i> Watch Now</i>
<i class="d-inline d-lg-none fst-normal"><i class="bi-collection-play-fill px-1"></i></i>
</a>
</div>
</div>
Expand Down
11 changes: 6 additions & 5 deletions views/partials/card-delete.ejs
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
<div class="col-md-3 col-sm-6 mb-4">
<div class="col-12 col-sm-6 col-md-4 col-xl-3 mb-4">
<div class="card bg-dark bg-gradient mb-3 shadow-lg border border-0">
<a href="<%- url %>">
<img class="card-img-top" src="<%- poster %>" alt="<%- title %>" onerror="this.onerror=null;this.src='<%= APP_URL %>/images/no-binger.jpg';">
</a>
<div class="card-body">
<h5 class="card-title text-nowrap text-truncate text-warning"><%- title %></h5>
<div class="d-flex">
<form action="<%= APP_URL %>/watchlist/delete" method="post" class="w-25 mt-2 me-2">
<form action="<%= APP_URL %>/watchlist/delete" method="post" class="col-6 col-lg-3 mt-2 me-2">
<input type="hidden" name="imdbId" value="<%- id %>">
<button type="submit" class="btn btn-danger">
<button type="submit" class="btn btn-danger w-100">
<i class="bi-x-circle-fill px-1"></i>
</button>
</form>
<a class="btn btn-primary w-100 mt-2" href="<%- url %>">
<i class="bi-collection-play-fill px-1"></i> Watch Now
<a class="btn btn-primary col-6 col-lg-9 mt-2" href="<%- url %>">
<i class="d-none d-lg-inline fst-normal"><i class="bi-collection-play-fill px-1"></i> Watch Now</i>
<i class="d-inline d-lg-none fst-normal"><i class="bi-collection-play-fill px-1"></i></i>
</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion views/partials/card.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="col-md-3 col-sm-6 mb-4">
<div class="col-12 col-sm-6 col-md-4 col-xl-3 mb-4">
<div class="card bg-dark bg-gradient mb-3 shadow-lg border border-0">
<a href="<%- url %>">
<img class="card-img-top" src="<%- poster %>" alt="<%- title %>" onerror="this.onerror=null;this.src='<%= APP_URL %>/images/no-binger.jpg';">
Expand Down
6 changes: 3 additions & 3 deletions views/partials/meta/base.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="<%= APP_URL %>/images/favicons/favicon-32x32.png"/>
<link rel="icon" type="image/png" sizes="16x16" href="<%= APP_URL %>/images/favicons/favicon-16x16.png"/>
<link rel="manifest" href="<%= APP_URL %>/site.webmanifest"/>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"/>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css"/>
<link rel="stylesheet" href="<%= APP_URL %>/css/style.css"/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"></script>
25 changes: 17 additions & 8 deletions views/partials/navigation.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<!-- Header Search -->
<div class="row">
<form action="<%= APP_URL %>/search" class="d-md-flex justify-content-center text-center" method="get" name="search">
<div class="col-sm-12 col-md-3">
<a href="<%= (typeof user !== 'undefined' && user) ? APP_URL + '/watchlist' : APP_URL + '/' %>" class="display-5 text-decoration-none me-2 me-md-0 ms-0 ms-lg-2 d-inline-flex d-md-relative" for="q">
<div class="col-sm-12 col-md-3 pt-md-1">
<a href="<%= APP_URL + '/' %>" class="display-5 text-decoration-none me-2 me-md-0 ms-0 ms-lg-2 d-inline-flex d-md-relative" for="q">
<img src="<%= APP_URL %>/images/favicons/apple-touch-icon.png" style="width:64px" class="d-none d-md-inline me-2" alt="<%= APP_DESCRIPTION %>>">
<img src="<%= APP_URL %>/images/favicons/apple-touch-icon.png" style="width:80px" class="d-inline d-md-none" alt="<%= APP_DESCRIPTION %>>">
<div class="d-md-none d-lg-inline-flex position-relative pt-4 pt-md-0 ps-2 ps-md-0 text-white">
Bin<i class="text-warning fst-normal opacity-50">ger</i>
<div class="d-md-none d-lg-inline-flex position-relative pt-4 pt-md-1 ps-2 ps-md-0 text-white">
<i class="text-warning fst-normal opacity-75">B</i>inger
<h2 class="d-none"><%= APP_NAME %> - <%= APP_DESCRIPTION %></h2>
</div>
</a>
Expand All @@ -18,16 +18,25 @@
<div class="row">
<div class="col-sm-12 d-inline-flex">
<div class="w-100 btn-group pe-2" role="group" aria-label="Search type selection">
<input type="text" class="w-100 border border-secondary border-end-0 rounded-start" name="q" id="q"
<input type="text" class="w-100 border border-secondary border-end-0 rounded-start fs-5" name="q" id="q"
aria-label="Search for your next binge..."
placeholder="Search for your next binge..."
value="<%= query _%>" required>
<input type="radio" class="btn-check" name="type" id="movie" autocomplete="off" value="movie" <%= type === 'movie' ? 'checked' : '' %>>
<label class="btn btn-outline-warning opacity-75 border border-secondary border-end-0 border-end-0" for="movie">Movie</label>
<label class="btn btn-outline-warning opacity-75 border border-secondary border-end-0 border-end-0 fs-5" for="movie">
<i class="d-none d-sm-inline fst-normal">Movie</i>
<i class="d-inline d-sm-none fst-normal"><i class="bi bi-film"></i></i>
</label>
<input type="radio" class="btn-check" name="type" id="series" autocomplete="off" value="series" <%= type === 'series' ? 'checked' : '' %>>
<label class="btn btn-outline-warning opacity-75 border border-secondary border-start-0 rounded-end" for="series">Series</label>
<label class="btn btn-outline-warning opacity-75 border border-secondary border-start-0 rounded-end fs-5" for="series">
<i class="d-none d-sm-inline fst-normal">Series</i>
<i class="d-inline d-sm-none fst-normal"><i class="bi bi-tv"></i></i>
</label>
</div>
<button type="submit" class="d-inline btn btn-warning opacity-75"><i class="bi-search"></i></button>
<button type="submit" class="d-inline btn bg-warning opacity-75"><i class="bi-search fs-5"></i></button>
<% if (typeof user !== 'undefined' && user) { %>
<a href="<%= APP_URL %>/watchlist" class="btn bg-primary opacity-75 ms-2"><i class="bi-eye-fill fs-5 text-warning"></i></a>
<% } %>
</div>
</div>
</div>
Expand Down