59 lines
3 KiB
HTML
59 lines
3 KiB
HTML
<!DOCTYPE html>
|
|
<html data-bs-theme="light" lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
|
<title>EaglerRinth</title>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css">
|
|
<link rel="stylesheet" href="assets/css/Articles-Cards-images.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container py-4 py-xl-5">
|
|
<div class="row gy-4 row-cols-1 row-cols-md-2 row-cols-xl-3">
|
|
<div class="col"><img src="https://avatars.githubusercontent.com/u/157155680?s=64&v=4">
|
|
<h1 style="margin-top: -58px;padding-left: 66px;padding-top: 7px;"> EaglerRinth</h1>
|
|
</div>
|
|
<div class="col-md-11 col-lg-12 col-xl-11" id="modContainer">
|
|
<!-- JavaScript will add mod cards here -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script>
|
|
fetch('mods.json')
|
|
.then(response => response.json())
|
|
.then(data => {
|
|
const modContainer = document.getElementById('modContainer');
|
|
|
|
// Remove existing cards
|
|
modContainer.innerHTML = '';
|
|
|
|
// Add cards from the JSON data
|
|
data.mods.forEach(mod => {
|
|
const card = document.createElement('div');
|
|
card.className = 'col-md-11 col-lg-12 col-xl-11';
|
|
|
|
card.innerHTML = `
|
|
<div class="card">
|
|
<div class="card-body p-4">
|
|
<h4 class="card-title" style="padding-top: 0px;margin-left: 3px;padding-bottom: 0px;margin-bottom: 2px;margin-top: 0px;padding-left: 112px;">${mod.name}</h4>
|
|
<p style="padding-left: 108px;margin-top: 3px;margin-bottom: -25px;margin-left: 5px;">Author : </p>
|
|
<a href="#" style="padding-left: 113px;padding-right: 0px;padding-top: 0px;padding-bottom: 0px;margin-top: -23px;margin-bottom: -15px;margin-left: 65px;">
|
|
<i class="far fa-user" style="font-size: 16px;"></i> ${mod.author}
|
|
</a>
|
|
<p class="card-text" style="margin-top: 3px;padding-left: 113px;margin-bottom: -35px;padding-bottom: 0px;padding-top: 6px;">${mod.description}</p>
|
|
<img style="padding-top: 0px;padding-bottom: 0px;margin-bottom: -48px;margin-top: -89px;" src="${mod.icon}" width="100">
|
|
</div>
|
|
</div>`;
|
|
|
|
modContainer.appendChild(card);
|
|
});
|
|
})
|
|
.catch(error => console.error('Error fetching mods.json:', error));
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|