mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 01:57:57 +00:00
0db06287a0
- Added hero landing page with Digital Kurdistan State branding - Header with Explorer and Go to Home Page buttons - Background image with Kurdistan map - Landing page shows when no hash route, app loads on #/explorer Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
373 lines
10 KiB
HTML
373 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-theme="light">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="theme-color" content="#000000">
|
|
<link rel="manifest" href="manifest.json">
|
|
<link rel="shortcut icon" href="favicon.ico">
|
|
<title><%= htmlWebpackPlugin.options.PAGE_TITLE %></title>
|
|
<script type="text/javascript" src="env-config.js"></script>
|
|
<style>
|
|
:root {
|
|
--font-mono: 0.889em Consolas, monaco, "Ubuntu Mono", "Liberation Mono", "Courier New", Courier, monospace;
|
|
--font-sans: 1em "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
|
/*
|
|
From https://www.modularscale.com/?1&rem&1.125 and https://type-scale.com/ -
|
|
1.125 (8:9) factor: 1.424rem, 1.266rem, 1.125rem, 1rem, 0.889rem, 0.79rem
|
|
*/
|
|
--font-percent-small: 88.9%;
|
|
--font-percent-tiny: 79.0%;
|
|
--font-size-base: 1rem;
|
|
--font-size-h1: 1.424rem;
|
|
--font-size-h2: 1.266rem;
|
|
--font-size-h3: 1.125rem;
|
|
--font-size-small: 0.889rem;
|
|
--font-size-tiny: 0.79rem;
|
|
|
|
--font-weight-bold: 600; /* semi */
|
|
--font-weight-light: 200;
|
|
--font-weight-normal: 400;
|
|
|
|
--opacity-light: 0.6;
|
|
|
|
--width-full: 1750px;
|
|
--width-half: 875px;
|
|
--width-shortaddr: 6.5em;
|
|
--width-shorthash: 9em;
|
|
|
|
--font-weight-header: var(--font-weight-normal);
|
|
--font-size-label: var(--font-size-small);
|
|
--font-weight-label: var(--font-weight-bold);
|
|
--text-transform-label: lowercase;
|
|
|
|
--bg-menu-hover: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--bg-identicon-circle: #282829;
|
|
--bg-input: #38393f;
|
|
--bg-input-error: #48393f;
|
|
--bg-inverse: rgba(78, 78, 78, 0.66);
|
|
--bg-menu: #26272c;
|
|
--bg-page: #26272c;
|
|
--bg-table: #3b3d3f;
|
|
--bg-tabs: #38393f;
|
|
--bg-toggle: #58595f;
|
|
--bg-sidebar: #1a1b20;
|
|
--bg-static-extra: rgba(200, 200, 200, 0.1);
|
|
--border-identicon: transparent;
|
|
--border-input: rgba(234, 236, 238, .15);
|
|
--border-table: #343536;
|
|
--border-tabs: #343536;
|
|
--color-bounty-info: #8E8E8E;
|
|
--color-checkbox: rgba(78, 78, 78, 0.66);
|
|
--color-error: rgba(255, 83, 83, 0.8);
|
|
--color-text: rgba(244, 242, 240, 0.8);
|
|
--opacity-gray: 0.1;
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
--bg-identicon-circle: #eee;
|
|
--bg-input: #ffffff;
|
|
--bg-input-error: #fff6f6;
|
|
--bg-inverse: rgba(244, 242, 240, 0.91);
|
|
--bg-menu: #ffffff;
|
|
--bg-page: #f5f3f1;
|
|
--bg-table: #ffffff;
|
|
--bg-tabs: #ffffff;
|
|
--bg-toggle: #e4e5e6;
|
|
--bg-sidebar: #fafafa;
|
|
--bg-static-extra: rgba(200, 200, 200, 0.1);
|
|
--border-identicon: #ddd;
|
|
--border-input: rgba(34, 36, 38, .15);
|
|
--border-table: #efedeb;
|
|
--border-tabs: #f1efed;
|
|
--color-bounty-info: #4D4D4D;
|
|
--color-checkbox: rgba(34, 36, 38, 0.15);
|
|
--color-error: rgba(139, 0, 0);
|
|
--color-text: rgba(78, 78, 78, 0.8);
|
|
--opacity-gray: 0.75;
|
|
}
|
|
|
|
.--absolute {
|
|
position: absolute;
|
|
}
|
|
|
|
.--digits {
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.--hidden {
|
|
display: none;
|
|
}
|
|
|
|
.--relative {
|
|
position: relative;
|
|
}
|
|
|
|
.--tmp {
|
|
background: grey;
|
|
filter: blur(2px);
|
|
opacity: 0.15;
|
|
}
|
|
|
|
/* Landing Page Styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#landing-page {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 9999;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
#landing-page.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.landing-background {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
|
|
z-index: -2;
|
|
}
|
|
|
|
.landing-background-image {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url('kurdistan_map.png');
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
opacity: 0.15;
|
|
z-index: -1;
|
|
}
|
|
|
|
.landing-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 2rem;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.landing-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.landing-logo img {
|
|
height: 40px;
|
|
}
|
|
|
|
.landing-logo-text {
|
|
color: #fff;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.landing-nav {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.landing-btn {
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
}
|
|
|
|
.landing-btn-primary {
|
|
background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
|
|
color: #fff;
|
|
}
|
|
|
|
.landing-btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
|
|
}
|
|
|
|
.landing-btn-secondary {
|
|
background: transparent;
|
|
color: #fff;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.landing-btn-secondary:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.landing-hero {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: calc(100% - 72px);
|
|
text-align: center;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.landing-version {
|
|
display: inline-block;
|
|
padding: 0.5rem 1rem;
|
|
background: rgba(233, 30, 99, 0.2);
|
|
border: 1px solid rgba(233, 30, 99, 0.4);
|
|
border-radius: 20px;
|
|
color: #e91e63;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.landing-title {
|
|
font-size: 4rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
margin-bottom: 1rem;
|
|
text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.landing-subtitle {
|
|
font-size: 1.75rem;
|
|
color: #4caf50;
|
|
font-weight: 600;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.landing-description {
|
|
font-size: 1.25rem;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
max-width: 600px;
|
|
line-height: 1.6;
|
|
margin-bottom: 2.5rem;
|
|
}
|
|
|
|
.landing-cta {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.landing-btn-large {
|
|
padding: 1rem 2.5rem;
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.landing-header {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.landing-title {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.landing-subtitle {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.landing-description {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.landing-nav {
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- Landing Page -->
|
|
<div id="landing-page">
|
|
<div class="landing-background"></div>
|
|
<div class="landing-background-image"></div>
|
|
|
|
<header class="landing-header">
|
|
<div class="landing-logo">
|
|
<img src="favicon.ico" alt="PezkuwiChain Logo">
|
|
<span class="landing-logo-text">PezkuwiChain</span>
|
|
</div>
|
|
<nav class="landing-nav">
|
|
<a href="#/explorer" class="landing-btn landing-btn-primary">Explorer</a>
|
|
<a href="https://pezkuwichain.io" class="landing-btn landing-btn-secondary">Go to Home Page</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="landing-hero">
|
|
<span class="landing-version">Digital Kurdistan State v1.0</span>
|
|
<h1 class="landing-title">PezkuwiChain</h1>
|
|
<h2 class="landing-subtitle">Decentralized Governance for Kurdistan</h2>
|
|
<p class="landing-description">
|
|
Building a transparent, democratic future through blockchain technology
|
|
</p>
|
|
<div class="landing-cta">
|
|
<a href="#/explorer" class="landing-btn landing-btn-primary landing-btn-large">Launch Explorer</a>
|
|
<a href="#/accounts" class="landing-btn landing-btn-secondary landing-btn-large">Manage Accounts</a>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
<div id="root"></div>
|
|
<div id="tooltips"></div>
|
|
|
|
<script>
|
|
// Handle iframe escape
|
|
if (window.self !== window.top) {
|
|
window.top.location.href = window.location.href;
|
|
}
|
|
|
|
// Landing page visibility logic
|
|
function updateLandingVisibility() {
|
|
var landing = document.getElementById('landing-page');
|
|
var root = document.getElementById('root');
|
|
var hash = window.location.hash;
|
|
|
|
// Show landing page only when there's no hash or hash is just '#' or '#/'
|
|
if (!hash || hash === '#' || hash === '#/') {
|
|
landing.classList.remove('hidden');
|
|
root.style.display = 'none';
|
|
} else {
|
|
landing.classList.add('hidden');
|
|
root.style.display = 'block';
|
|
}
|
|
}
|
|
|
|
// Run on page load
|
|
updateLandingVisibility();
|
|
|
|
// Listen for hash changes
|
|
window.addEventListener('hashchange', updateLandingVisibility);
|
|
</script>
|
|
</body>
|
|
</html>
|