32 lines
873 B
Text
32 lines
873 B
Text
---
|
|
import MainLayout from '../components/mockup/MainLayout.jsx';
|
|
import { AeThexProvider } from '../components/aethex/AeThexProvider.jsx';
|
|
import '../components/mockup/global.css';
|
|
---
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>AeThex Connect - Platform</title>
|
|
<meta name="description" content="Next-generation communication platform for gamers" />
|
|
<script is:inline>
|
|
// Polyfill for simple-peer
|
|
window.global = window;
|
|
|
|
// Check if user is authenticated, redirect to login if not
|
|
(function() {
|
|
const token = localStorage.getItem('aethex_token');
|
|
if (!token) {
|
|
window.location.href = '/login';
|
|
}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<AeThexProvider client:only="react">
|
|
<MainLayout client:only="react" />
|
|
</AeThexProvider>
|
|
</body>
|
|
</html>
|