@extends('layouts.app') @section('styles') @include ('layouts.footer-style') html { height: 100%; } .movie-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; } .movie-card { flex: 0 0 calc(33.333% - 14px); min-width: 250px; } @media (max-width: 991.98px) { .movie-card { flex: 0 0 calc(50% - 10px); } } @media (max-width: 575.98px) { .movie-card { flex: 0 0 100%; } } .movie-card .poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background-color: #333; border-radius: 4px 4px 0 0; } .movie-card .year { color: #868e96; font-size: 0.85rem; } .movie-card .rating { font-size: 0.9rem; color: #868e96; } .movie-card .synopsis { font-size: 0.875rem; color: #6c757d; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .movie-card h1 { font-size: 1rem; padding: 10px 12px 4px; margin: 0; } .movie-card h1 a { color: inherit; text-decoration: none; } .movie-card h1 a:hover { text-decoration: underline; } .movie-card .card-body { padding: 0 12px 12px; } .no-poster { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 2 / 3; background-color: #495057; color: #adb5bd; font-size: 3rem; border-radius: 4px 4px 0 0; } .permalink:hover { text-decoration: none; } @endsection @section('content')
@if ( isset($search_query) && $search_query != '' ) Found {{ $count }} movies matching "{{ $search_query }}". @else Browse {{ number_format($count) }} movies from the database, mentioned on Hacker News, ranked by rating or popularity. @endif
{{ strip_tags($movie->synopsis) }}
@endif