v1
This commit is contained in:
parent
5907cfa4ac
commit
bc1ae866e9
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
from .models import Movie
|
||||||
|
|
||||||
# Register your models here.
|
admin.site.register(Movie)
|
||||||
27
core/migrations/0001_initial.py
Normal file
27
core/migrations/0001_initial.py
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Generated by Django 5.2.7 on 2025-11-23 13:10
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
initial = True
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Movie',
|
||||||
|
fields=[
|
||||||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('title', models.CharField(max_length=200)),
|
||||||
|
('description', models.TextField()),
|
||||||
|
('genre', models.CharField(max_length=100)),
|
||||||
|
('thumbnail_url', models.URLField()),
|
||||||
|
('video_url', models.URLField()),
|
||||||
|
('is_featured', models.BooleanField(default=False)),
|
||||||
|
('rating', models.DecimalField(decimal_places=1, default=8.0, max_digits=3)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
||||||
65
core/migrations/0002_seed_movies.py
Normal file
65
core/migrations/0002_seed_movies.py
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# Generated by Django 5.0.6 on 2024-05-22 14:30
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
def seed_movies(apps, schema_editor):
|
||||||
|
Movie = apps.get_model('core', 'Movie')
|
||||||
|
movies = [
|
||||||
|
{
|
||||||
|
"title": "Cyberpunk: Edgerunners",
|
||||||
|
"description": "A Street Kid trying to survive in a technology and body modification-obsessed city of the future. Having everything to lose, he chooses to stay alive by becoming an Edgerunner, a Mercenary outlaw also known as a Cyberpunk.",
|
||||||
|
"genre": "Anime",
|
||||||
|
"thumbnail_url": "https://i.ytimg.com/vi/JtqIas3bYow/maxresdefault.jpg",
|
||||||
|
"video_url": "https://www.youtube.com/watch?v=JtqIas3bYow",
|
||||||
|
"is_featured": True,
|
||||||
|
"rating": 8.6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Arcane",
|
||||||
|
"description": "Amid the stark discord of twin cities Piltover and Zaun, two sisters fight on rival sides of a war between magic technologies and clashing convictions.",
|
||||||
|
"genre": "Animation",
|
||||||
|
"thumbnail_url": "https://dx35vtwkllw9q.cloudfront.net/netflix/arcane/images/regions/us/onesheet.jpg",
|
||||||
|
"video_url": "https://www.youtube.com/watch?v=fXmAurh012s",
|
||||||
|
"is_featured": False,
|
||||||
|
"rating": 9.0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Breaking Bad",
|
||||||
|
"description": "A high school chemistry teacher diagnosed with inoperable lung cancer turns to manufacturing and selling methamphetamine in order to secure his family's future.",
|
||||||
|
"genre": "Crime",
|
||||||
|
"thumbnail_url": "https://m.media-amazon.com/images/M/MV5BYmQ4YWMxYjUtNjZmYi00MDQ1LWFjMjMtNjA5ZDdiYjdiODU5XkEyXkFqcGdeQXVyMTMzNDExODE5._V1_FMjpg_UX1000_.jpg",
|
||||||
|
"video_url": "https://www.youtube.com/watch?v=HhesaQXLuRY",
|
||||||
|
"is_featured": False,
|
||||||
|
"rating": 9.5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Stranger Things",
|
||||||
|
"description": "When a young boy disappears, his mother, a police chief, and his friends must confront terrifying supernatural forces in order to get him back.",
|
||||||
|
"genre": "Horror",
|
||||||
|
"thumbnail_url": "https://resizing.flixster.com/0xxuAB_l3-iRz_9K6gI_pt6-YwE=/ems.cHJkLWVtcy1hc3NldHMvdHZzZWFzb24vUlRUVjI3OTYxNy5lbi5qcGc=",
|
||||||
|
"video_url": "https://www.youtube.com/watch?v=b9EkMc79ZSU",
|
||||||
|
"is_featured": False,
|
||||||
|
"rating": 8.7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The Witcher",
|
||||||
|
"description": "Geralt of Rivia, a solitary monster hunter, struggles to find his place in a world where people often prove more wicked than beasts.",
|
||||||
|
"genre": "Fantasy",
|
||||||
|
"thumbnail_url": "https://m.media-amazon.com/images/M/MV5BN2FiOWU4YzYtMzVlOS00M2RjLWEyYjEtNjY2ZmNlMzllMTAyXkEyXkFqcGdeQXVyMTkxNjUyNQ@@._V1_FMjpg_UX1000_.jpg",
|
||||||
|
"video_url": "https://www.youtube.com/watch?v=ndl1W4ltcmg",
|
||||||
|
"is_featured": False,
|
||||||
|
"rating": 8.2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
for movie_data in movies:
|
||||||
|
Movie.objects.create(**movie_data)
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('core', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunPython(seed_movies),
|
||||||
|
]
|
||||||
BIN
core/migrations/__pycache__/0001_initial.cpython-311.pyc
Normal file
BIN
core/migrations/__pycache__/0001_initial.cpython-311.pyc
Normal file
Binary file not shown.
BIN
core/migrations/__pycache__/0002_seed_movies.cpython-311.pyc
Normal file
BIN
core/migrations/__pycache__/0002_seed_movies.cpython-311.pyc
Normal file
Binary file not shown.
@ -1,3 +1,13 @@
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
# Create your models here.
|
class Movie(models.Model):
|
||||||
|
title = models.CharField(max_length=200)
|
||||||
|
description = models.TextField()
|
||||||
|
genre = models.CharField(max_length=100)
|
||||||
|
thumbnail_url = models.URLField(max_length=200)
|
||||||
|
video_url = models.URLField(max_length=200)
|
||||||
|
is_featured = models.BooleanField(default=False)
|
||||||
|
rating = models.DecimalField(max_digits=3, decimal_places=1, default=8.0)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.title
|
||||||
@ -1,11 +1,21 @@
|
|||||||
|
{% load static %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>{% block title %}Knowledge Base{% endblock %}</title>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{% block title %}AmaFlix{% endblock %}</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@400;700&display=swap" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
|
||||||
{% block head %}{% endblock %}
|
{% block head %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="bg-dark text-white">
|
||||||
|
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</body>
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,154 +1,80 @@
|
|||||||
{% extends "base.html" %}
|
{% extends 'base.html' %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
{% block title %}{{ project_name }}{% endblock %}
|
{% block title %}AmaFlix - Watch Movies Online{% endblock %}
|
||||||
|
|
||||||
{% block head %}
|
|
||||||
{% if project_description %}
|
|
||||||
<meta name="description" content="{{ project_description }}">
|
|
||||||
<meta property="og:description" content="{{ project_description }}">
|
|
||||||
<meta property="twitter:description" content="{{ project_description }}">
|
|
||||||
{% endif %}
|
|
||||||
{% if project_image_url %}
|
|
||||||
<meta property="og:image" content="{{ project_image_url }}">
|
|
||||||
<meta property="twitter:image" content="{{ project_image_url }}">
|
|
||||||
{% endif %}
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
|
||||||
<style>
|
|
||||||
:root {
|
|
||||||
--bg-color-start: #6a11cb;
|
|
||||||
--bg-color-end: #2575fc;
|
|
||||||
--text-color: #ffffff;
|
|
||||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
|
||||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: 'Inter', sans-serif;
|
|
||||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
|
||||||
color: var(--text-color);
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 100vh;
|
|
||||||
text-align: center;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
body::before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
inset: 0;
|
|
||||||
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M-10 10L110 10M10 -10L10 110' stroke-width='1' stroke='rgba(255,255,255,0.05)'/></svg>");
|
|
||||||
animation: bg-pan 20s linear infinite;
|
|
||||||
z-index: -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes bg-pan {
|
|
||||||
0% {
|
|
||||||
background-position: 0% 0%;
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
background-position: 100% 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
padding: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
background: var(--card-bg-color);
|
|
||||||
border: 1px solid var(--card-border-color);
|
|
||||||
border-radius: 16px;
|
|
||||||
padding: 2.5rem 2rem;
|
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
-webkit-backdrop-filter: blur(20px);
|
|
||||||
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: clamp(2.2rem, 3vw + 1.2rem, 3.2rem);
|
|
||||||
font-weight: 700;
|
|
||||||
margin: 0 0 1.2rem;
|
|
||||||
letter-spacing: -0.02em;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
opacity: 0.92;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loader {
|
|
||||||
margin: 1.5rem auto;
|
|
||||||
width: 56px;
|
|
||||||
height: 56px;
|
|
||||||
border: 4px solid rgba(255, 255, 255, 0.25);
|
|
||||||
border-top-color: #fff;
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: spin 1s linear infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes spin {
|
|
||||||
to {
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.runtime code {
|
|
||||||
background: rgba(0, 0, 0, 0.25);
|
|
||||||
padding: 0.15rem 0.45rem;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sr-only {
|
|
||||||
position: absolute;
|
|
||||||
width: 1px;
|
|
||||||
height: 1px;
|
|
||||||
padding: 0;
|
|
||||||
margin: -1px;
|
|
||||||
overflow: hidden;
|
|
||||||
clip: rect(0, 0, 0, 0);
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 1rem;
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
opacity: 0.75;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main>
|
<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="card">
|
<div class="container-fluid px-5">
|
||||||
<h1>Analyzing your requirements and generating your app…</h1>
|
<a class="navbar-brand" href="#">AmaFlix</a>
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
<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="sr-only">Loading…</span>
|
<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>
|
</div>
|
||||||
<p class="hint">AppWizzy AI is collecting your requirements and applying the first changes.</p>
|
</nav>
|
||||||
<p class="hint">This page will refresh automatically as the plan is implemented.</p>
|
|
||||||
<p class="runtime">
|
{% if featured_movie %}
|
||||||
Runtime: Django <code>{{ django_version }}</code> · Python <code>{{ python_version }}</code>
|
<header class="hero-section" style="background-image: url('{{ featured_movie.thumbnail_url }}');">
|
||||||
— UTC <code>{{ current_time|date:"Y-m-d H:i:s" }}</code>
|
<div class="hero-content">
|
||||||
</p>
|
<h1 class="hero-title">{{ featured_movie.title }}</h1>
|
||||||
</div>
|
<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 }}">
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<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 }}">
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
|
||||||
Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC)
|
<footer class="py-5 text-center text-body-secondary">
|
||||||
|
<div class="container">
|
||||||
|
<p class="mb-0">AmaFlix © 2025</p>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -1,7 +1,6 @@
|
|||||||
from django.urls import path
|
from django.urls import path
|
||||||
|
from . import views
|
||||||
from .views import home
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("", home, name="home"),
|
path('', views.index, name='index'),
|
||||||
]
|
]
|
||||||
@ -1,25 +1,14 @@
|
|||||||
import os
|
|
||||||
import platform
|
|
||||||
|
|
||||||
from django import get_version as django_version
|
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from django.utils import timezone
|
from .models import Movie
|
||||||
|
|
||||||
|
def index(request):
|
||||||
def home(request):
|
featured_movie = Movie.objects.filter(is_featured=True).first()
|
||||||
"""Render the landing screen with loader and environment details."""
|
trending_movies = Movie.objects.filter(rating__gte=8.5).order_by('-rating')
|
||||||
host_name = request.get_host().lower()
|
top_rated_movies = Movie.objects.order_by('-rating')[:10]
|
||||||
agent_brand = "AppWizzy" if host_name == "appwizzy.com" else "Flatlogic"
|
|
||||||
now = timezone.now()
|
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
"project_name": "New Style",
|
'featured_movie': featured_movie,
|
||||||
"agent_brand": agent_brand,
|
'trending_movies': trending_movies,
|
||||||
"django_version": django_version(),
|
'top_rated_movies': top_rated_movies
|
||||||
"python_version": platform.python_version(),
|
|
||||||
"current_time": now,
|
|
||||||
"host_name": host_name,
|
|
||||||
"project_description": os.getenv("PROJECT_DESCRIPTION", ""),
|
|
||||||
"project_image_url": os.getenv("PROJECT_IMAGE_URL", ""),
|
|
||||||
}
|
}
|
||||||
return render(request, "core/index.html", context)
|
return render(request, 'core/index.html', context)
|
||||||
123
static/css/custom.css
Normal file
123
static/css/custom.css
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #141414;
|
||||||
|
color: #fff;
|
||||||
|
font-family: 'Roboto', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
font-family: 'Bebas Neue', sans-serif;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-brand {
|
||||||
|
font-family: 'Bebas Neue', sans-serif;
|
||||||
|
color: #E50914 !important;
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-section {
|
||||||
|
position: relative;
|
||||||
|
height: 80vh;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-end;
|
||||||
|
padding: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-section::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: linear-gradient(to top, rgba(20, 20, 20, 1) 10%, rgba(20, 20, 20, 0) 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-content {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
max-width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-title {
|
||||||
|
font-size: 5rem;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-description {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
max-width: 700px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-buttons .btn {
|
||||||
|
margin-right: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 10px 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-play {
|
||||||
|
background-color: #fff;
|
||||||
|
color: #000;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-play:hover {
|
||||||
|
background-color: rgba(255, 255, 255, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-more-info {
|
||||||
|
background-color: rgba(109, 109, 110, 0.7);
|
||||||
|
color: #fff;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-more-info:hover {
|
||||||
|
background-color: rgba(109, 109, 110, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-carousel-section {
|
||||||
|
padding: 20px 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-carousel-section h2 {
|
||||||
|
font-size: 2rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-carousel {
|
||||||
|
display: flex;
|
||||||
|
overflow-x: auto;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
scrollbar-width: none; /* Firefox */
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-carousel::-webkit-scrollbar {
|
||||||
|
display: none; /* Safari and Chrome */
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-card {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
width: 220px;
|
||||||
|
margin-right: 15px;
|
||||||
|
background-color: #181818;
|
||||||
|
border-radius: 5px;
|
||||||
|
overflow: hidden;
|
||||||
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-card:hover {
|
||||||
|
transform: scale(1.05);
|
||||||
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.movie-card img {
|
||||||
|
width: 100%;
|
||||||
|
height: 330px;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user