<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<!-- SEO Meta Tags -->
<title>MarvelFight | Marvel Game News & Strategy Hub</title>
<meta content="MarvelFight is a professional Marvel game strategy and news platform, providing the latest guides, character builds, team compositions, in-depth analysis, and version previews for Marvel Super War, Marvel Future Fight, Marvel Contest of Champions, and more. Your one-stop destination for all Marvel game enthusiasts!" name="description"/>
<meta content=":Marvel game guides,Marvel Super War guide,Marvel Future Fight guide,Marvel Contest of Champions guide,Marvel games,character builds,team compositions,Marvel news,game strategies,MarvelFight" name="keywords"/>
<link href="https://www.marvelfight.cc/" rel="canonical"/>
<link href="/game_logo.png" rel="icon" type="image/x-icon"/>
<style>
/* Global Styles */
:root {
--primary-color: #e23636; /* Marvel red */
--secondary-color: #0476f2; /* Marvel blue */
--accent-color: #ffd700; /* Gold for highlights */
--dark-bg: #1a1a1a;
--light-bg: #f5f5f5;
--text-light: #ffffff;
--text-dark: #333333;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Rajdhani', 'Segoe UI', sans-serif;
}
body {
background-color: var(--dark-bg);
color: var(--text-light);
overflow-x: hidden;
background-image: linear-gradient(60deg, #1a1a1a 0%, #2c2c2c 100%);
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: 4px;
}
/* Header Styles */
.header {
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.logo {
font-size: 2rem;
font-weight: 800;
letter-spacing: 1px;
color: var(--text-light);
text-transform: uppercase;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.logo span {
color: var(--accent-color);
}
.nav-links {
display: flex;
list-style: none;
}
.nav-links li {
margin-left: 2rem;
}
.nav-links a {
color: var(--text-light);
text-decoration: none;
font-weight: 600;
font-size: 1.1rem;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
position: relative;
padding-bottom: 8px;
}
.nav-links a:hover {
color: var(--accent-color);
}
.nav-links a::after {
content: '';
position: absolute;
width: 0;
height: 3px;
bottom: -5px;
left: 0;
background-color: var(--accent-color);
transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
width: 100%;
}
.nav-links a.active {
color: var(--accent-color);
}
/* Hero Section */
.hero {
height: 80vh;
background-image: url('https://wallpapercave.com/wp/wp9096042.jpg');
background-size: cover;
background-position: center;
position: relative;
color: var(--text-light);
display: flex;
align-items: center;
justify-content: center;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
}
.hero-content {
position: relative;
z-index: 1;
text-align: center;
max-width: 800px;
padding: 0 2rem;
}
.hero h1 {
font-size: 4rem;
margin-bottom: 1rem;
text-transform: uppercase;
letter-spacing: 2px;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
background: linear-gradient(to right, var(--primary-color), var(--accent-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
line-height: 1.5;
}
.hero-btn {
display: inline-block;
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
color: var(--text-light);
padding: 1rem 2.5rem;
font-size: 1.1rem;
text-transform: uppercase;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
letter-spacing: 1px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
cursor: pointer;
}
.hero-btn:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
/* Generic Section Styles */
.content-section {
padding: 5rem 2rem;
}
.content-section .container {
max-width: 1200px;
margin: 0 auto;
}
.section-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--accent-color);
position: relative;
padding-bottom: 1rem;
}
.section-title::after {
content: '';
position: absolute;
width: 100px;
height: 5px;
bottom: 0;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}
.article-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 2rem;
}
.article-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
display: flex;
flex-direction: column;
}
.article-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}
.article-img-link {
display: block;
height: 220px;
overflow: hidden;
}
.article-img-link img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.article-card:hover .article-img-link img {
transform: scale(1.1);
}
.article-tag {
position: absolute;
top: 15px;
left: 15px;
background: var(--primary-color);
color: var(--text-light);
padding: 0.5rem 1rem;
border-radius: 50px;
font-weight: 600;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.article-content {
padding: 1.5rem;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.article-title {
font-size: 1.5rem;
margin-bottom: 0.5rem;
color: var(--text-light);
}
.article-excerpt {
color: #cccccc;
margin-bottom: 1rem;
line-height: 1.5;
flex-grow: 1;
}
.article-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.9rem;
color: #999999;
margin-top: auto;
}
.article-author {
display: flex;
align-items: center;
}
.article-author-icon {
width: 25px;
height: 25px;
border-radius: 50%;
margin-right: 0.5rem;
background-color: var(--secondary-color);
display: inline-flex;
justify-content: center;
align-items: center;
font-weight: bold;
}
/* Popular Tags Section */
.tags-section {
background-color: rgba(255, 215, 0, 0.05);
}
.tags-container {
text-align: center;
}
.tags-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
list-style: none;
padding: 0;
}
.tags-list a {
display: inline-block;
background: rgba(255, 255, 255, 0.1);
color: var(--accent-color);
padding: 0.5rem 1.5rem;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
border: 1px solid rgba(255, 215, 0, 0.2);
transition: all 0.3s ease;
}
.tags-list a:hover {
background: var(--accent-color);
color: var(--dark-bg);
transform: translateY(-3px);
box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}
/* Community Section */
.community {
background-color: rgba(226, 54, 54, 0.1);
padding: 5rem 2rem;
}
.community-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
}
.community-text {
text-align: center;
max-width: 700px;
margin-bottom: 3rem;
}
.community-text p {
font-size: 1.2rem;
color: #cccccc;
line-height: 1.6;
margin-bottom: 2rem;
}
/* Newsletter */
.newsletter {
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
padding: 4rem 2rem;
color: var(--text-light);
text-align: center;
}
.newsletter h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.newsletter p {
max-width: 600px;
margin: 0 auto 2rem;
font-size: 1.1rem;
}
.newsletter-form {
display: flex;
max-width: 500px;
margin: 0 auto;
overflow: hidden;
border-radius: 50px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.newsletter-input {
flex: 1;
padding: 1rem 1.5rem;
border: none;
outline: none;
font-size: 1rem;
}
.newsletter-btn {
background: var(--dark-bg);
color: var(--text-light);
border: none;
padding: 1rem 1.5rem;
cursor: pointer;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
transition: background 0.3s ease;
}
.newsletter-btn:hover {
background: #000000;
}
/* Footer */
.footer {
background-color: #0e0e0e;
padding: 4rem 2rem 2rem;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 3rem;
margin-bottom: 3rem;
}
.footer-widget h3 {
font-size: 1.3rem;
margin-bottom: 1.5rem;
color: var(--accent-color);
position: relative;
padding-bottom: 10px;
}
.footer-widget h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height: 3px;
background: var(--primary-color);
}
.footer-list {
list-style: none;
padding: 0;
}
.footer-list li {
color: #999999;
line-height: 1.6;
margin-bottom: 0.8rem;
}
.footer-bottom {
text-align: center;
padding-top: 2rem;
border-top: 1px solid #333333;
color: #666666;
}
/* Toast Notification */
.toast-notification {
position: fixed;
top: 20px;
right: 20px;
background-color: #28a745;
color: white;
padding: 15px 25px;
border-radius: 5px;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
z-index: 2000;
opacity: 0;
transform: translateY(-20px);
transition: opacity 0.5s ease, transform 0.5s ease;
}
.toast-notification.show {
opacity: 1;
transform: translateY(0);
}
/* Media Queries */
@media screen and (max-width: 768px) {
.navbar {
flex-direction: column;
padding: 1rem;
}
.logo {
margin-bottom: 1rem;
}
.nav-links {
width: 100%;
justify-content: space-around;
}
.nav-links li {
margin: 0;
}
.hero h1 {
font-size: 2.5rem;
}
.article-grid {
grid-template-columns: 1fr;
}
.newsletter-form {
flex-direction: column;
border-radius: 10px;
}
.newsletter-input {
border-radius: 10px 10px 0 0;
}
.newsletter-btn {
border-radius: 0 0 10px 10px;
}
}
/* Animation Keyframes */
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.pulse {
animation: pulse 2s infinite;
}
</style>
<script type="application/ld+json">{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "MarvelFight",
"url": "https://www.marvelfight.cc",
"publisher": {
"@type": "Organization",
"@id": "https://www.marvelfight.cc/#website",
"name": "MarvelFight",
"url": "https://www.marvelfight.cc",
"description": "MarvelFight is a professional Marvel game strategy and news platform, providing the latest guides, character builds, team compositions, in-depth analysis, and version previews for Marvel Super War, Marvel Future Fight, Marvel Contest of Champions, and more. Your one-stop destination for all Marvel game enthusiasts!",
"foundingDate": "2023",
"logo": {
"@type": "ImageObject",
"url": "https://www.marvelfight.cc/game_logo.png",
"caption": "MarvelFight Logo"
}
}
}</script></head>
<body>
<!-- Header -->
<header class="header">
<nav class="navbar">
<div class="logo">MarvelFight</div>
<ul class="nav-links" id="nav-links-container">
<!-- Navigation links will be dynamically inserted here -->
</ul>
</nav>
</header>
<!-- Hero Section -->
<section class="hero">
<div class="hero-content">
<h1>MARVEL Duel Chronicles</h1>
<p>Dive into the ultimate gaming experience with our in-depth guides, reviews, and news about MARVEL Duel - the most thrilling superhero battle arena game of the year!</p>
<a class="hero-btn pulse" id="explore-now-btn">Explore Now</a>
</div>
</section>
<!-- Content Sections will be dynamically generated below -->
<main id="main-content">
<!-- Industry News -->
<section class="content-section" id="industry-news">
<div class="container">
<h2 class="section-title">Industry News</h2>
<div class="article-grid" id="latest_all_grid">
<!-- Articles will be injected here -->
</div>
</div>
</section>
<!-- Recent Posts -->
<section class="content-section" id="recent-posts" style="background-color: rgba(4, 118, 242, 0.1);">
<div class="container">
<h2 class="section-title">Recent Posts</h2>
<div class="article-grid" id="latest_news_grid">
<!-- Articles will be injected here -->
</div>
</div>
</section>
<!-- Knowledge Base -->
<section class="content-section" id="knowledge-base">
<div class="container">
<h2 class="section-title">Knowledge Base</h2>
<div class="article-grid" id="latest_guides_grid">
<!-- Articles will be injected here -->
</div>
</div>
</section>
<!-- Highlights Review -->
<section class="content-section" id="highlights-review" style="background-color: rgba(255, 255, 255, 0.05);">
<div class="container">
<h2 class="section-title">Highlights Review</h2>
<div class="article-grid" id="latest_articles_grid">
<!-- Articles will be injected here -->
</div>
</div>
</section>
</main>
<!-- Popular Tags Section -->
<section class="content-section tags-section">
<div class="container tags-container">
<h2 class="section-title">Popular Tags</h2>
<ul class="tags-list" id="popular-tags-list">
<!-- Tags will be injected here -->
</ul>
</div>
</section>
<!-- Community Section -->
<section class="community">
<div class="community-container">
<h2 class="section-title">Join Our Community</h2>
<div class="community-text">
<p>Connect with fellow MARVEL Duel enthusiasts, share your strategies, participate in community tournaments, and stay updated with the latest meta developments.</p>
<a class="hero-btn" id="join-discord-btn">Join Discord Server</a>
</div>
</div>
</section>
<!-- Newsletter Section -->
<section class="newsletter">
<h2>Stay In The Loop</h2>
<p>Subscribe to our newsletter for exclusive guides, character builds, and insider information on upcoming MARVEL Duel content.</p>
<form class="newsletter-form" id="newsletter-form">
<input class="newsletter-input" placeholder="Enter your email" required="" type="email"/>
<button class="newsletter-btn" type="submit">Subscribe</button>
</form>
</section>
<!-- Footer -->
<footer class="footer">
<div class="footer-container">
<div class="footer-grid" id="footer-grid-container">
<!-- Footer widgets will be dynamically inserted here -->
</div>
<div class="footer-bottom">
<p id="copyright-text">© 2023. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Toast Notification Element -->
<div class="toast-notification" id="toast-notification"></div>
<script>
document.addEventListener("DOMContentLoaded", function() {
// --- CONFIGURATION ---
const JSON_URL = '/data/index.json';
// --- UTILITY FUNCTIONS ---
/**
* Shows a toast notification message.
* @param {string} message The message to display.
* @param {string} type 'success' or 'error'.
*/
function showToast(message, type = 'success') {
const toast = document.getElementById('toast-notification');
if (!toast) return;
toast.textContent = message;
toast.style.backgroundColor = type === 'success' ? '#28a745' : '#dc3545';
toast.classList.add('show');
setTimeout(() => {
toast.classList.remove('show');
}, 3000);
}
// --- DYNAMIC POPULATION FUNCTIONS ---
/**
* Populates the navigation bar.
* @param {Array} navData Array of navigation objects.
*/
function populateNavigation(navData) {
const navContainer = document.getElementById('nav-links-container');
if (!navContainer || !navData) return;
navContainer.innerHTML = ''; // Clear existing
const currentPage = window.location.pathname;
navData.forEach(item => {
const li = document.createElement('li');
const a = document.createElement('a');
a.textContent = item.label;
a.href = item.link;
// Highlight active page
if (item.link === currentPage || (item.link === '/' && (currentPage === '/index.html' || currentPage === '/'))) {
a.classList.add('active');
}
li.appendChild(a);
navContainer.appendChild(li);
});
}
/**
* Creates and returns an article card HTML element.
* @param {Object} article The article data object.
* @returns {HTMLElement} The article card element.
*/
function createArticeCard(article) {
const card = document.createElement('article');
card.className = 'article-card';
card.innerHTML = `
<a href="${article.link}" class="article-img-link">
<img src="${article.image}" alt="${article.title}">
</a>
<span class="article-tag">${article.game || 'Game'}</span>
<div class="article-content">
<h3 class="article-title">${article.title}</h3>
<p class="article-excerpt">${article.excerpt}</p>
<div class="article-meta">
<div class="article-author">
<span class="article-author-icon">${article.author.charAt(0)}</span>
<span>${article.author}</span>
</div>
<span>${article.date}</span>
</div>
</div>
`;
return card;
}
/**
* Populates a grid with articles.
* @param {string} gridId The ID of the grid container.
* @param {Array} articlesData The array of article data.
*/
function populateArticleGrid(gridId, articlesData) {
const grid = document.getElementById(gridId);
if (!grid || !articlesData) return;
grid.innerHTML = ''; // Clear existing
articlesData.forEach(article => {
grid.appendChild(createArticeCard(article));
});
}
/**
* Populates the popular tags section.
* @param {Array} tagsData Array of tag objects.
*/
function populateTags(tagsData) {
const tagsList = document.getElementById('popular-tags-list');
if (!tagsList || !tagsData) return;
tagsList.innerHTML = ''; // Clear existing
tagsData.forEach(tag => {
const li = document.createElement('li');
const a = document.createElement('a');
a.href = tag.link;
a.textContent = tag.name;
li.appendChild(a);
tagsList.appendChild(li);
});
}
/**
* Populates the footer.
* @param {Array} footerData Array of footer widget objects.
* @param {string} copyrightText The copyright text.
*/
function populateFooter(footerData, copyrightText) {
const footerGrid = document.getElementById('footer-grid-container');
const copyrightEl = document.getElementById('copyright-text');
if (footerGrid && footerData) {
footerGrid.innerHTML = ''; // Clear existing
footerData.forEach(widget => {
const widgetDiv = document.createElement('div');
widgetDiv.className = 'footer-widget';
const title = document.createElement('h3');
title.textContent = widget.title;
widgetDiv.appendChild(title);
const list = document.createElement('ul');
list.className = 'footer-list';
widget.contents.forEach(content => {
const listItem = document.createElement('li');
listItem.innerHTML = content;
list.appendChild(listItem);
});
widgetDiv.appendChild(list);
footerGrid.appendChild(widgetDiv);
});
}
if (copyrightEl && copyrightText) {
copyrightEl.textContent = copyrightText;
}
}
// --- MAIN EXECUTION ---
/**
* Fetches data and populates the entire page.
*/
async function initializePage() {
try {
const response = await fetch(JSON_URL);
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
const data = await response.json();
// Populate dynamic sections
populateNavigation(data.navigation);
populateArticleGrid('latest_all_grid', data.latest_all);
populateArticleGrid('latest_news_grid', data.latest_news);
populateArticleGrid('latest_guides_grid', data.latest_guides);
populateArticleGrid('latest_articles_grid', data.latest_articles);
populateTags(data.tag);
populateFooter(data.footer, data.copyright);
} catch (error) {
console.error("Failed to load page data:", error);
// Optionally show an error to the user
const mainContent = document.getElementById('main-content');
if(mainContent) mainContent.innerHTML = `<p style="text-align:center; padding: 5rem;">Failed to load content. Please try again later.</p>`;
}
}
initializePage();
// --- EVENT LISTENERS ---
// Smooth scroll for "Explore Now" button
const exploreBtn = document.getElementById('explore-now-btn');
if (exploreBtn) {
exploreBtn.addEventListener('click', (e) => {
e.preventDefault();
document.getElementById('main-content').scrollIntoView({
behavior: 'smooth'
});
});
}
// "Join Discord" button
const discordBtn = document.getElementById('join-discord-btn');
if(discordBtn) {
discordBtn.addEventListener('click', (e) => {
e.preventDefault();
showToast('Success');
});
}
// Newsletter form submission
const newsletterForm = document.getElementById('newsletter-form');
if (newsletterForm) {
newsletterForm.addEventListener('submit', (e) => {
e.preventDefault();
showToast('subscribe successful');
newsletterForm.reset();
});
}
});
</script>
</body>
</html>