mirror of
https://github.com/LCE-Hub/lce-hub.github.io.git
synced 2026-07-18 00:07:23 +00:00
Hotfix
This commit is contained in:
parent
2140eb53c7
commit
c72b820900
30
index.html
30
index.html
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/png" href="/logo.png" />
|
||||
<link rel="icon" type="image/png" href="logo.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Emerald Legacy Launcher | Play Minecraft Legacy Edition</title>
|
||||
<meta name="description"
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
<div class="menu-container">
|
||||
<header class="menu-header">
|
||||
<img src="/MenuTitle.png" alt="Emerald Legacy" class="menu-title">
|
||||
<img src="MenuTitle.png" alt="Emerald Legacy" class="menu-title">
|
||||
<button id="audio-toggle" class="audio-btn" title="Toggle Music">
|
||||
<i class="fas fa-volume-up"></i>
|
||||
</button>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<div class="features-row">
|
||||
<div class="feature-card">
|
||||
<div class="feature-image">
|
||||
<img src="/logo.png" alt="Emerald" class="pixel-icon">
|
||||
<img src="logo.png" alt="Emerald" class="pixel-icon">
|
||||
</div>
|
||||
<div class="feature-info">
|
||||
<h3>Authentic UI</h3>
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-image">
|
||||
<img src="/potion.png" alt="Potion" class="pixel-icon">
|
||||
<img src="potion.png" alt="Potion" class="pixel-icon">
|
||||
</div>
|
||||
<div class="feature-info">
|
||||
<h3>Optimized Speed</h3>
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-image">
|
||||
<img src="/controller.png" alt="Controller" class="pixel-icon">
|
||||
<img src="controller.png" alt="Controller" class="pixel-icon">
|
||||
</div>
|
||||
<div class="feature-info">
|
||||
<h3>Classic Support</h3>
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
|
||||
<div class="bottom-actions">
|
||||
<div class="branding-group">
|
||||
<img src="/logo.png" alt="Emerald Legacy" class="pixel-logo">
|
||||
<img src="logo.png" alt="Emerald Legacy" class="pixel-logo">
|
||||
<div class="branding-text">
|
||||
<span class="brand-name">Emerald</span>
|
||||
<span class="brand-sub">Legacy</span>
|
||||
|
|
@ -96,13 +96,13 @@
|
|||
<a href="https://github.com/Emerald-Legacy-Launcher/Emerald-Legacy-Launcher/releases/latest"
|
||||
class="main-btn get-launcher" id="main-download-btn">
|
||||
<span>Get Launcher</span>
|
||||
<img src="/logo.png" class="btn-icon">
|
||||
<img src="logo.png" class="btn-icon">
|
||||
</a>
|
||||
<a href="https://discord.gg/RHGRUwpmVc" class="main-btn join-discord" target="_blank">
|
||||
<div class="btn-content">
|
||||
<span class="btn-title">Join Discord</span>
|
||||
</div>
|
||||
<img src="/discord-icon.jpg" class="btn-icon-discord">
|
||||
<img src="discord-icon.jpg" class="btn-icon-discord">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
@ -111,7 +111,7 @@
|
|||
<div class="carousel-header">Community Screenshots</div>
|
||||
<div class="carousel-view">
|
||||
<button class="carousel-arrow left">L</button>
|
||||
<img src="/Community/image.png" class="carousel-img">
|
||||
<img src="Community/image.png" class="carousel-img">
|
||||
<button class="carousel-arrow right">R</button>
|
||||
</div>
|
||||
<div class="carousel-footer">See more in Discord</div>
|
||||
|
|
@ -188,32 +188,32 @@
|
|||
<div class="gallery-grid">
|
||||
<div class="gallery-item">
|
||||
<div class="gallery-frame">
|
||||
<img src="/Community/image.png" alt="Community Shot">
|
||||
<img src="Community/image.png" alt="Community Shot">
|
||||
</div>
|
||||
</div>
|
||||
<div class="gallery-item">
|
||||
<div class="gallery-frame">
|
||||
<img src="/Community/image2.png" alt="Community Shot">
|
||||
<img src="Community/image2.png" alt="Community Shot">
|
||||
</div>
|
||||
</div>
|
||||
<div class="gallery-item">
|
||||
<div class="gallery-frame">
|
||||
<img src="/Community/image3.png" alt="Community Shot">
|
||||
<img src="Community/image3.png" alt="Community Shot">
|
||||
</div>
|
||||
</div>
|
||||
<div class="gallery-item">
|
||||
<div class="gallery-frame">
|
||||
<img src="/Community/image4.png" alt="Community Shot">
|
||||
<img src="Community/image4.png" alt="Community Shot">
|
||||
</div>
|
||||
</div>
|
||||
<div class="gallery-item">
|
||||
<div class="gallery-frame">
|
||||
<img src="/Community/image5.png" alt="Community Shot">
|
||||
<img src="Community/image5.png" alt="Community Shot">
|
||||
</div>
|
||||
</div>
|
||||
<div class="gallery-item">
|
||||
<div class="gallery-frame">
|
||||
<img src="/Community/image6.png" alt="Community Shot">
|
||||
<img src="Community/image6.png" alt="Community Shot">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
16
src/main.ts
16
src/main.ts
|
|
@ -1,7 +1,7 @@
|
|||
import './style.css';
|
||||
|
||||
class AudioManager {
|
||||
private musicFiles = ['/music/music1.ogg', '/music/music2.ogg', '/music/music3.ogg', '/music/music4.ogg', '/music/music5.ogg'];
|
||||
private musicFiles = ['music/music1.ogg', 'music/music2.ogg', 'music/music3.ogg', 'music/music4.ogg', 'music/music5.ogg'];
|
||||
private musicIndex = Math.floor(Math.random() * 5);
|
||||
private music: HTMLAudioElement;
|
||||
private isMuted = false;
|
||||
|
|
@ -58,7 +58,7 @@ class AudioManager {
|
|||
}
|
||||
|
||||
public playSFX(file: string) {
|
||||
const sfx = new Audio(`/sounds/${file}`);
|
||||
const sfx = new Audio(`sounds/${file}`);
|
||||
sfx.volume = 0.4;
|
||||
sfx.play().catch(() => { });
|
||||
}
|
||||
|
|
@ -110,12 +110,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
|
||||
const carouselImg = document.querySelector('.carousel-img') as HTMLImageElement;
|
||||
const screenshots = [
|
||||
'/Community/image.png',
|
||||
'/Community/image2.png',
|
||||
'/Community/image3.png',
|
||||
'/Community/image4.png',
|
||||
'/Community/image5.png',
|
||||
'/Community/image6.png'
|
||||
'Community/image.png',
|
||||
'Community/image2.png',
|
||||
'Community/image3.png',
|
||||
'Community/image4.png',
|
||||
'Community/image5.png',
|
||||
'Community/image6.png'
|
||||
];
|
||||
let screenIndex = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue