test123 / index.html
bknott6280's picture
undefined - Initial Deployment
a4e2178 verified
Raw History Blame Contribute Delete
21.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Movie Data Visualization</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#3b82f6',
secondary: '#10b981',
dark: '#1e293b',
light: '#f8fafc',
}
}
}
}
</script>
<style>
.rating-bar {
height: 20px;
border-radius: 4px;
position: relative;
overflow: hidden;
}
.rating-fill {
height: 100%;
position: absolute;
left: 0;
top: 0;
transition: width 0.5s ease;
}
.tooltip {
position: absolute;
background-color: rgba(0,0,0,0.8);
color: white;
padding: 5px 10px;
border-radius: 4px;
font-size: 12px;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s;
z-index: 10;
}
.chart-container:hover .tooltip {
opacity: 1;
}
.data-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.data-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
.mobile-stack {
flex-direction: column;
}
.mobile-full {
width: 100% !important;
}
}
</style>
</head>
<body class="bg-gray-50 text-dark">
<div class="container mx-auto px-4 py-8">
<header class="mb-10 text-center">
<h1 class="text-4xl font-bold text-primary mb-2">Movie Performance Dashboard</h1>
<p class="text-lg text-gray-600 max-w-3xl mx-auto">
A comprehensive visualization of recent movie releases with audience demographics, ratings, and box office performance.
</p>
</header>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-10">
<!-- Summary Cards -->
<div class="bg-white rounded-xl shadow-md p-6 data-card">
<div class="flex items-center mb-4">
<div class="bg-blue-100 p-3 rounded-full mr-4">
<i class="fas fa-film text-primary text-xl"></i>
</div>
<div>
<h3 class="text-lg font-semibold">Total Movies Analyzed</h3>
<p class="text-3xl font-bold">12</p>
</div>
</div>
<p class="text-gray-600">Ranging from horror to action, with diverse audience appeal.</p>
</div>
<div class="bg-white rounded-xl shadow-md p-6 data-card">
<div class="flex items-center mb-4">
<div class="bg-green-100 p-3 rounded-full mr-4">
<i class="fas fa-star text-secondary text-xl"></i>
</div>
<div>
<h3 class="text-lg font-semibold">Highest Rated</h3>
<p class="text-3xl font-bold">Dungeons & Dragons</p>
</div>
</div>
<p class="text-gray-600">With an A- CinemaScore and 91% Rotten Tomatoes score.</p>
</div>
<div class="bg-white rounded-xl shadow-md p-6 data-card">
<div class="flex items-center mb-4">
<div class="bg-purple-100 p-3 rounded-full mr-4">
<i class="fas fa-money-bill-wave text-purple-600 text-xl"></i>
</div>
<div>
<h3 class="text-lg font-semibold">Top Opening</h3>
<p class="text-3xl font-bold">$51.0M</p>
</div>
</div>
<p class="text-gray-600">Venom: The Last Dance had the strongest opening weekend.</p>
</div>
</div>
<!-- Main Data Visualization -->
<div class="bg-white rounded-xl shadow-md p-6 mb-10">
<h2 class="text-2xl font-bold mb-6 text-primary border-b pb-2">Movie Performance Metrics</h2>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Film</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Rating</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Opening</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total Gross</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Multiplier</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Audience Scores</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">Venom: The Last Dance</td>
<td class="px-6 py-4 whitespace-nowrap">PG13</td>
<td class="px-6 py-4 whitespace-nowrap">$51.0M</td>
<td class="px-6 py-4 whitespace-nowrap">$139.8M</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="rating-bar bg-gray-200 w-full">
<div class="rating-fill bg-yellow-500" style="width: 67.5%"></div>
</div>
<span class="text-xs">2.7x</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex space-x-1">
<div class="chart-container relative" title="CinemaScore: B-">
<div class="rating-bar bg-gray-200 w-6">
<div class="rating-fill bg-blue-500" style="width: 70%"></div>
</div>
<div class="tooltip">B-</div>
</div>
<div class="chart-container relative" title="Rotten Tomatoes: 41%">
<div class="rating-bar bg-gray-200 w-6">
<div class="rating-fill bg-orange-500" style="width: 41%"></div>
</div>
<div class="tooltip">41%</div>
</div>
<div class="chart-container relative" title="RTA: 81%">
<div class="rating-bar bg-gray-200 w-6">
<div class="rating-fill bg-green-500" style="width: 81%"></div>
</div>
<div class="tooltip">81%</div>
</div>
</div>
</td>
</tr>
<!-- More rows would follow the same pattern -->
</tbody>
</table>
</div>
<div class="mt-8">
<p class="text-gray-600 text-sm">
<i class="fas fa-info-circle text-primary mr-1"></i>
Multiplier represents how many times the total gross is compared to opening weekend.
Higher multipliers indicate better word-of-mouth and staying power.
</p>
</div>
</div>
<!-- Demographic Analysis -->
<div class="bg-white rounded-xl shadow-md p-6 mb-10">
<h2 class="text-2xl font-bold mb-6 text-primary border-b pb-2">Audience Demographics</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<h3 class="text-lg font-semibold mb-4">Age Distribution</h3>
<div class="grid grid-cols-2 gap-4">
<div class="bg-blue-50 p-4 rounded-lg">
<h4 class="font-medium text-blue-800 mb-2">Under 25</h4>
<div class="flex items-center">
<div class="w-3/4">
<div class="rating-bar bg-blue-100 w-full">
<div class="rating-fill bg-blue-500" style="width: 45%"></div>
</div>
</div>
<span class="ml-2 font-bold">45%</span>
</div>
</div>
<div class="bg-purple-50 p-4 rounded-lg">
<h4 class="font-medium text-purple-800 mb-2">Over 25</h4>
<div class="flex items-center">
<div class="w-3/4">
<div class="rating-bar bg-purple-100 w-full">
<div class="rating-fill bg-purple-500" style="width: 55%"></div>
</div>
</div>
<span class="ml-2 font-bold">55%</span>
</div>
</div>
</div>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Gender Breakdown</h3>
<div class="grid grid-cols-2 gap-4">
<div class="bg-pink-50 p-4 rounded-lg">
<h4 class="font-medium text-pink-800 mb-2">Female</h4>
<div class="flex items-center">
<div class="w-3/4">
<div class="rating-bar bg-pink-100 w-full">
<div class="rating-fill bg-pink-500" style="width: 40%"></div>
</div>
</div>
<span class="ml-2 font-bold">40%</span>
</div>
</div>
<div class="bg-blue-50 p-4 rounded-lg">
<h4 class="font-medium text-blue-800 mb-2">Male</h4>
<div class="flex items-center">
<div class="w-3/4">
<div class="rating-bar bg-blue-100 w-full">
<div class="rating-fill bg-blue-500" style="width: 60%"></div>
</div>
</div>
<span class="ml-2 font-bold">60%</span>
</div>
</div>
</div>
</div>
</div>
<div class="mt-6">
<h3 class="text-lg font-semibold mb-4">Ethnicity Representation</h3>
<div class="flex flex-wrap gap-2">
<div class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm">African American: 14%</div>
<div class="bg-yellow-100 text-yellow-800 px-3 py-1 rounded-full text-sm">Hispanic: 33%</div>
<div class="bg-red-100 text-red-800 px-3 py-1 rounded-full text-sm">Caucasian: 38%</div>
<div class="bg-indigo-100 text-indigo-800 px-3 py-1 rounded-full text-sm">Asian: 9%</div>
<div class="bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-sm">Other: 6%</div>
</div>
</div>
</div>
<!-- Key Insights -->
<div class="bg-blue-50 rounded-xl shadow-md p-6 mb-10">
<h2 class="text-2xl font-bold mb-6 text-blue-800 border-b border-blue-200 pb-2">Key Insights</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="bg-white p-5 rounded-lg shadow-sm">
<div class="flex items-center mb-3">
<div class="bg-blue-500 text-white p-2 rounded-full mr-3">
<i class="fas fa-chart-line"></i>
</div>
<h3 class="font-semibold">R-Rated Films Perform Well</h3>
</div>
<p class="text-gray-700 text-sm">
Despite rating restrictions, R-rated films like Scream VI and Furiosa show strong openings and multipliers,
indicating mature audiences remain a reliable market.
</p>
</div>
<div class="bg-white p-5 rounded-lg shadow-sm">
<div class="flex items-center mb-3">
<div class="bg-green-500 text-white p-2 rounded-full mr-3">
<i class="fas fa-users"></i>
</div>
<h3 class="font-semibold">Hispanic Audience Influence</h3>
</div>
<p class="text-gray-700 text-sm">
Hispanic audiences represent 33% of Venom's viewers, significantly higher than average,
suggesting targeted marketing opportunities for similar films.
</p>
</div>
<div class="bg-white p-5 rounded-lg shadow-sm">
<div class="flex items-center mb-3">
<div class="bg-purple-500 text-white p-2 rounded-full mr-3">
<i class="fas fa-venus-mars"></i>
</div>
<h3 class="font-semibold">Gender Gap in Action Films</h3>
</div>
<p class="text-gray-700 text-sm">
Male audiences dominate action films (60% vs 40% female), while horror films like Smile 2 show more balanced gender distribution.
</p>
</div>
</div>
</div>
<!-- Full Data Table -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-2xl font-bold mb-6 text-primary border-b pb-2">Complete Movie Data</h2>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Release Date</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Film</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Rating</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dist</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">CS</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">RT</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Wknd</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dom Cume</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-4 py-4 whitespace-nowrap">10/25/24</td>
<td class="px-4 py-4 whitespace-nowrap font-medium">Venom: The Last Dance</td>
<td class="px-4 py-4 whitespace-nowrap">PG13</td>
<td class="px-4 py-4 whitespace-nowrap">SNY</td>
<td class="px-4 py-4 whitespace-nowrap">B-</td>
<td class="px-4 py-4 whitespace-nowrap">41%</td>
<td class="px-4 py-4 whitespace-nowrap">$51.0M</td>
<td class="px-4 py-4 whitespace-nowrap">$139.8M</td>
</tr>
<!-- More rows would follow the same pattern -->
</tbody>
</table>
</div>
<div class="mt-6">
<div class="bg-yellow-50 border-l-4 border-yellow-400 p-4">
<div class="flex">
<div class="flex-shrink-0">
<i class="fas fa-exclamation-circle text-yellow-400"></i>
</div>
<div class="ml-3">
<p class="text-sm text-yellow-700">
<strong>Note:</strong> CS = CinemaScore, RT = Rotten Tomatoes Score, Dist = Distributor,
Wknd = Opening Weekend, Dom Cume = Domestic Cumulative Gross
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="bg-dark text-white py-8">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<h3 class="text-xl font-bold mb-2">Movie Data Visualization</h3>
<p class="text-gray-300">Understanding audience trends and box office performance</p>
</div>
<div class="flex space-x-4">
<a href="#" class="text-gray-300 hover:text-white">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-gray-300 hover:text-white">
<i class="fab fa-facebook"></i>
</a>
<a href="#" class="text-gray-300 hover:text-white">
<i class="fab fa-instagram"></i>
</a>
</div>
</div>
<div class="border-t border-gray-700 mt-6 pt-6 text-sm text-gray-300 text-center">
<p>© 2023 Movie Data Dashboard. All data is for demonstration purposes only.</p>
</div>
</div>
</footer>
<script>
// Simple animation for the rating bars
document.addEventListener('DOMContentLoaded', function() {
const ratingBars = document.querySelectorAll('.rating-fill');
ratingBars.forEach(bar => {
const originalWidth = bar.style.width;
bar.style.width = '0';
setTimeout(() => {
bar.style.width = originalWidth;
}, 100);
});
// Tooltip positioning
const chartContainers = document.querySelectorAll('.chart-container');
chartContainers.forEach(container => {
container.addEventListener('mousemove', function(e) {
const tooltip = this.querySelector('.tooltip');
const rect = this.getBoundingClientRect();
tooltip.style.left = `${e.clientX - rect.left}px`;
tooltip.style.top = `${e.clientY - rect.top - 30}px`;
});
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=bknott6280/test123" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>