v2
This commit is contained in:
parent
bc1ae866e9
commit
bd1a0b96c9
BIN
assets/pasted-20251123-131715-7e1c5d94.png
Normal file
BIN
assets/pasted-20251123-131715-7e1c5d94.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
@ -4,77 +4,92 @@
|
|||||||
{% block title %}AmaFlix - Watch Movies Online{% endblock %}
|
{% block title %}AmaFlix - Watch Movies Online{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark" style="background-color: transparent; position: absolute; top: 0; left: 0; right: 0; z-index: 10;">
|
<div class="page-wrapper">
|
||||||
<div class="container-fluid px-5">
|
|
||||||
|
<!-- Navigation -->
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
|
||||||
|
<div class="container-fluid px-lg-5">
|
||||||
<a class="navbar-brand" href="#">AmaFlix</a>
|
<a class="navbar-brand" href="#">AmaFlix</a>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarNav">
|
<div class="collapse navbar-collapse" id="navbarNav">
|
||||||
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||||
<li class="nav-item">
|
<li class="nav-item"><a class="nav-link active" aria-current="page" href="#">Home</a></li>
|
||||||
<a class="nav-link active" aria-current="page" href="#">Home</a>
|
<li class="nav-item"><a class="nav-link" href="#">TV Shows</a></li>
|
||||||
</li>
|
<li class="nav-item"><a class="nav-link" href="#">Movies</a></li>
|
||||||
<li class="nav-item">
|
<li class="nav-item"><a class="nav-link" href="#">New & Popular</a></li>
|
||||||
<a class="nav-link" href="#">TV Shows</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="#">Movies</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="#">New & Popular</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="navbar-nav ms-auto">
|
<ul class="navbar-nav ms-auto">
|
||||||
<li class="nav-item">
|
<li class="nav-item"><a class="nav-link" href="#">Login</a></li>
|
||||||
<a class="nav-link" href="#">Login</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{% if featured_movie %}
|
<!-- Hero Section -->
|
||||||
<header class="hero-section" style="background-image: url('{{ featured_movie.thumbnail_url }}');">
|
{% if featured_movie %}
|
||||||
|
<header class="hero-section" style="background-image: url('{{ featured_movie.thumbnail_url }}');">
|
||||||
|
<div class="hero-content-wrapper">
|
||||||
<div class="hero-content">
|
<div class="hero-content">
|
||||||
<h1 class="hero-title">{{ featured_movie.title }}</h1>
|
<h1 class="hero-title">{{ featured_movie.title }}</h1>
|
||||||
<p class="hero-description">{{ featured_movie.description }}</p>
|
<p class="hero-description">{{ featured_movie.description|truncatewords:30 }}</p>
|
||||||
<div class="hero-buttons">
|
<div class="hero-buttons">
|
||||||
<a href="{{ featured_movie.video_url }}" target="_blank" class="btn btn-play">Play</a>
|
<a href="{{ featured_movie.video_url }}" target="_blank" class="btn btn-play"><i class="bi bi-play-fill"></i> Play</a>
|
||||||
<a href="#" class="btn btn-more-info">More Info</a>
|
<a href="#" class="btn btn-more-info"><i class="bi bi-info-circle"></i> More Info</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</div>
|
||||||
{% endif %}
|
</header>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<main>
|
<!-- Movie Carousels -->
|
||||||
|
<main class="container-fluid movie-sections">
|
||||||
<section class="movie-carousel-section">
|
<section class="movie-carousel-section">
|
||||||
<h2>Trending Now</h2>
|
<h2 class="section-title">Trending Now</h2>
|
||||||
|
<div class="movie-carousel-wrapper">
|
||||||
<div class="movie-carousel">
|
<div class="movie-carousel">
|
||||||
{% for movie in trending_movies %}
|
{% for movie in trending_movies %}
|
||||||
<div class="movie-card">
|
<div class="movie-card">
|
||||||
<img src="{{ movie.thumbnail_url }}" alt="{{ movie.title }}">
|
<img src="{{ movie.thumbnail_url }}" alt="{{ movie.title }}">
|
||||||
|
<div class="movie-card-overlay">
|
||||||
|
<h5 class="movie-card-title">{{ movie.title }}</h5>
|
||||||
|
<div class="movie-card-actions">
|
||||||
|
<a href="#" class="btn btn-sm btn-play-icon"><i class="bi bi-play-circle-fill"></i></a>
|
||||||
|
<span class="movie-rating">Rating: {{ movie.rating }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="movie-carousel-section">
|
<section class="movie-carousel-section">
|
||||||
<h2>Top Rated</h2>
|
<h2 class="section-title">Top Rated</h2>
|
||||||
|
<div class="movie-carousel-wrapper">
|
||||||
<div class="movie-carousel">
|
<div class="movie-carousel">
|
||||||
{% for movie in top_rated_movies %}
|
{% for movie in top_rated_movies %}
|
||||||
<div class="movie-card">
|
<div class="movie-card">
|
||||||
<img src="{{ movie.thumbnail_url }}" alt="{{ movie.title }}">
|
<img src="{{ movie.thumbnail_url }}" alt="{{ movie.title }}">
|
||||||
|
<div class="movie-card-overlay">
|
||||||
|
<h5 class="movie-card-title">{{ movie.title }}</h5>
|
||||||
|
<div class="movie-card-actions">
|
||||||
|
<a href="#" class="btn btn-sm btn-play-icon"><i class="bi bi-play-circle-fill"></i></a>
|
||||||
|
<span class="movie-rating">Rating: {{ movie.rating }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<footer class="py-5 text-center text-body-secondary">
|
|
||||||
<div class="container">
|
|
||||||
<p class="mb-0">AmaFlix © 2025</p>
|
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="main-footer mt-5 py-4 text-center">
|
||||||
|
<p class="mb-0">AmaFlix © 2025. All Rights Reserved.</p>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: #141414;
|
background-color: #141414;
|
||||||
@ -10,20 +11,49 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-wrapper {
|
||||||
|
background-color: #141414;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Navigation --- */
|
||||||
|
.navbar {
|
||||||
|
background-color: rgba(20, 20, 20, 0.8);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
transition: background-color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar.scrolled {
|
||||||
|
background-color: #141414;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
font-family: 'Bebas Neue', sans-serif;
|
font-family: 'Bebas Neue', sans-serif;
|
||||||
color: #E50914 !important;
|
color: #E50914 !important;
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
|
letter-spacing: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-link {
|
||||||
|
color: #a9a9a9 !important;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link:hover, .nav-link.active {
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Hero Section --- */
|
||||||
.hero-section {
|
.hero-section {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 80vh;
|
height: 90vh;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center top;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: center;
|
||||||
padding: 40px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-section::after {
|
.hero-section::after {
|
||||||
@ -33,31 +63,41 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background: linear-gradient(to top, rgba(20, 20, 20, 1) 10%, rgba(20, 20, 20, 0) 50%);
|
background: linear-gradient(to top, #141414 15%, rgba(20, 20, 20, 0) 50%), linear-gradient(to right, rgba(20, 20, 20, 0.5) 0%, rgba(20, 20, 20, 0) 30%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-content-wrapper {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
padding: 0 5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-content {
|
.hero-content {
|
||||||
position: relative;
|
max-width: 550px;
|
||||||
z-index: 1;
|
|
||||||
max-width: 50%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-title {
|
.hero-title {
|
||||||
font-size: 5rem;
|
font-size: 5rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 1rem;
|
text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-description {
|
.hero-description {
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
margin-bottom: 1.5rem;
|
line-height: 1.5;
|
||||||
max-width: 700px;
|
margin: 1rem 0 2rem;
|
||||||
|
text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-buttons .btn {
|
.hero-buttons .btn {
|
||||||
margin-right: 10px;
|
margin-right: 1rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 10px 30px;
|
padding: 0.75rem 2rem;
|
||||||
|
border-radius: 5px;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-play {
|
.btn-play {
|
||||||
@ -65,7 +105,6 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
color: #000;
|
color: #000;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-play:hover {
|
.btn-play:hover {
|
||||||
background-color: rgba(255, 255, 255, 0.8);
|
background-color: rgba(255, 255, 255, 0.8);
|
||||||
}
|
}
|
||||||
@ -75,24 +114,33 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-more-info:hover {
|
.btn-more-info:hover {
|
||||||
background-color: rgba(109, 109, 110, 0.5);
|
background-color: rgba(109, 109, 110, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.movie-carousel-section {
|
/* --- Movie Carousels --- */
|
||||||
padding: 20px 40px;
|
.movie-sections {
|
||||||
|
margin-top: -10vh; /* Pulls the carousels up into the hero gradient */
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movie-carousel-section h2 {
|
.section-title {
|
||||||
font-size: 2rem;
|
font-size: 1.8rem;
|
||||||
|
font-weight: 500;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
padding: 0 5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-carousel-wrapper {
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movie-carousel {
|
.movie-carousel {
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow-x: auto;
|
overflow-x: scroll;
|
||||||
padding-bottom: 20px;
|
overflow-y: hidden;
|
||||||
|
padding: 0 5% 20px;
|
||||||
scrollbar-width: none; /* Firefox */
|
scrollbar-width: none; /* Firefox */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,13 +150,38 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
|
|
||||||
.movie-card {
|
.movie-card {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
width: 220px;
|
width: 16vw; /* Responsive width */
|
||||||
margin-right: 15px;
|
max-width: 280px;
|
||||||
background-color: #181818;
|
min-width: 180px;
|
||||||
|
margin-right: 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
background-color: #181818;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-card img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-card-overlay {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
|
||||||
|
padding: 2rem 1rem 1rem;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-card:hover .movie-card-overlay {
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.movie-card:hover {
|
.movie-card:hover {
|
||||||
@ -116,8 +189,35 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.movie-card img {
|
.movie-card-title {
|
||||||
width: 100%;
|
font-family: 'Roboto', sans-serif;
|
||||||
height: 330px;
|
font-size: 1rem;
|
||||||
object-fit: cover;
|
font-weight: bold;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-card-actions {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-play-icon {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
.btn-play-icon:hover {
|
||||||
|
color: #E50914;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-rating {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: #a9a9a9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Footer --- */
|
||||||
|
.main-footer {
|
||||||
|
background-color: #181818;
|
||||||
|
color: #a9a9a9;
|
||||||
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user