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 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="container-fluid px-5">
|
||||
<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">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" aria-current="page" href="#">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<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 class="navbar-nav ms-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Login</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="page-wrapper">
|
||||
|
||||
{% if featured_movie %}
|
||||
<header class="hero-section" style="background-image: url('{{ featured_movie.thumbnail_url }}');">
|
||||
<div class="hero-content">
|
||||
<h1 class="hero-title">{{ featured_movie.title }}</h1>
|
||||
<p class="hero-description">{{ featured_movie.description }}</p>
|
||||
<div class="hero-buttons">
|
||||
<a href="{{ featured_movie.video_url }}" target="_blank" class="btn btn-play">Play</a>
|
||||
<a href="#" class="btn btn-more-info">More Info</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{% endif %}
|
||||
|
||||
<main>
|
||||
<section class="movie-carousel-section">
|
||||
<h2>Trending Now</h2>
|
||||
<div class="movie-carousel">
|
||||
{% for movie in trending_movies %}
|
||||
<div class="movie-card">
|
||||
<img src="{{ movie.thumbnail_url }}" alt="{{ movie.title }}">
|
||||
<!-- 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>
|
||||
<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>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||
<li class="nav-item"><a class="nav-link active" aria-current="page" href="#">Home</a></li>
|
||||
<li class="nav-item"><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 class="navbar-nav ms-auto">
|
||||
<li class="nav-item"><a class="nav-link" href="#">Login</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
</nav>
|
||||
|
||||
<section class="movie-carousel-section">
|
||||
<h2>Top Rated</h2>
|
||||
<div class="movie-carousel">
|
||||
{% for movie in top_rated_movies %}
|
||||
<div class="movie-card">
|
||||
<img src="{{ movie.thumbnail_url }}" alt="{{ movie.title }}">
|
||||
<!-- Hero Section -->
|
||||
{% if featured_movie %}
|
||||
<header class="hero-section" style="background-image: url('{{ featured_movie.thumbnail_url }}');">
|
||||
<div class="hero-content-wrapper">
|
||||
<div class="hero-content">
|
||||
<h1 class="hero-title">{{ featured_movie.title }}</h1>
|
||||
<p class="hero-description">{{ featured_movie.description|truncatewords:30 }}</p>
|
||||
<div class="hero-buttons">
|
||||
<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"><i class="bi bi-info-circle"></i> More Info</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</header>
|
||||
{% endif %}
|
||||
|
||||
<footer class="py-5 text-center text-body-secondary">
|
||||
<div class="container">
|
||||
<p class="mb-0">AmaFlix © 2025</p>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- Movie Carousels -->
|
||||
<main class="container-fluid movie-sections">
|
||||
<section class="movie-carousel-section">
|
||||
<h2 class="section-title">Trending Now</h2>
|
||||
<div class="movie-carousel-wrapper">
|
||||
<div class="movie-carousel">
|
||||
{% for movie in trending_movies %}
|
||||
<div class="movie-card">
|
||||
<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>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
<section class="movie-carousel-section">
|
||||
<h2 class="section-title">Top Rated</h2>
|
||||
<div class="movie-carousel-wrapper">
|
||||
<div class="movie-carousel">
|
||||
{% for movie in top_rated_movies %}
|
||||
<div class="movie-card">
|
||||
<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>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</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 %}
|
||||
@ -1,3 +1,4 @@
|
||||
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');
|
||||
|
||||
body {
|
||||
background-color: #141414;
|
||||
@ -10,20 +11,49 @@ h1, h2, h3, h4, h5, h6 {
|
||||
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 {
|
||||
font-family: 'Bebas Neue', sans-serif;
|
||||
color: #E50914 !important;
|
||||
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 {
|
||||
position: relative;
|
||||
height: 80vh;
|
||||
height: 90vh;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-position: center top;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
padding: 40px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-section::after {
|
||||
@ -33,31 +63,41 @@ h1, h2, h3, h4, h5, h6 {
|
||||
left: 0;
|
||||
right: 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 {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
max-width: 50%;
|
||||
max-width: 550px;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: 5rem;
|
||||
font-weight: bold;
|
||||
margin-bottom: 1rem;
|
||||
text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
|
||||
}
|
||||
|
||||
.hero-description {
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 1.5rem;
|
||||
max-width: 700px;
|
||||
line-height: 1.5;
|
||||
margin: 1rem 0 2rem;
|
||||
text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
|
||||
}
|
||||
|
||||
.hero-buttons .btn {
|
||||
margin-right: 10px;
|
||||
margin-right: 1rem;
|
||||
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 {
|
||||
@ -65,7 +105,6 @@ h1, h2, h3, h4, h5, h6 {
|
||||
color: #000;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-play:hover {
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
@ -75,24 +114,33 @@ h1, h2, h3, h4, h5, h6 {
|
||||
color: #fff;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-more-info:hover {
|
||||
background-color: rgba(109, 109, 110, 0.5);
|
||||
}
|
||||
|
||||
.movie-carousel-section {
|
||||
padding: 20px 40px;
|
||||
/* --- Movie Carousels --- */
|
||||
.movie-sections {
|
||||
margin-top: -10vh; /* Pulls the carousels up into the hero gradient */
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.movie-carousel-section h2 {
|
||||
font-size: 2rem;
|
||||
.section-title {
|
||||
font-size: 1.8rem;
|
||||
font-weight: 500;
|
||||
margin-bottom: 1rem;
|
||||
padding: 0 5%;
|
||||
}
|
||||
|
||||
.movie-carousel-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.movie-carousel {
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 20px;
|
||||
overflow-x: scroll;
|
||||
overflow-y: hidden;
|
||||
padding: 0 5% 20px;
|
||||
scrollbar-width: none; /* Firefox */
|
||||
}
|
||||
|
||||
@ -102,13 +150,38 @@ h1, h2, h3, h4, h5, h6 {
|
||||
|
||||
.movie-card {
|
||||
flex: 0 0 auto;
|
||||
width: 220px;
|
||||
margin-right: 15px;
|
||||
background-color: #181818;
|
||||
width: 16vw; /* Responsive width */
|
||||
max-width: 280px;
|
||||
min-width: 180px;
|
||||
margin-right: 10px;
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
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 {
|
||||
@ -116,8 +189,35 @@ h1, h2, h3, h4, h5, h6 {
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.movie-card img {
|
||||
width: 100%;
|
||||
height: 330px;
|
||||
object-fit: cover;
|
||||
.movie-card-title {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 1rem;
|
||||
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