280 lines
9.1 KiB
HTML
280 lines
9.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>SmartCane Web Apps</title>
|
|
<link rel="stylesheet" href="theme.css">
|
|
<link rel="icon" type="image/png" href="./res/main.png">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, var(--sc-primary-light) 0%, var(--sc-accent) 100%);
|
|
min-height: 100vh;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
color: white;
|
|
margin-bottom: 50px;
|
|
padding-bottom: 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.logo-section {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.logo {
|
|
height: 60px;
|
|
width: auto;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 48px;
|
|
margin-bottom: 10px;
|
|
text-shadow: 0 2px 4px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
header p {
|
|
font-size: 18px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.apps-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 30px;
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
.app-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.app-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 15px 40px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.app-icon {
|
|
font-size: 60px;
|
|
padding: 30px;
|
|
background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-primary-light) 100%);
|
|
text-align: center;
|
|
}
|
|
|
|
.app-content {
|
|
padding: 25px;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.app-content h2 {
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.app-content p {
|
|
color: #666;
|
|
font-size: 14px;
|
|
margin-bottom: 15px;
|
|
flex: 1;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.app-features {
|
|
background: #f8f9fa;
|
|
padding: 12px;
|
|
border-radius: 6px;
|
|
margin-bottom: 15px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.app-features li {
|
|
margin-bottom: 5px;
|
|
color: #555;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.app-btn {
|
|
background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-primary-light) 100%);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 20px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
text-align: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.app-btn:hover {
|
|
transform: scale(1.02);
|
|
box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
color: white;
|
|
opacity: 0.8;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.status-badge {
|
|
display: inline-block;
|
|
background: #d4edda;
|
|
color: #155724;
|
|
padding: 4px 8px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.status-badge.beta {
|
|
background: #fff3cd;
|
|
color: #856404;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
if (sessionStorage.getItem('authenticated') !== 'true') {
|
|
window.location.href = 'login.html';
|
|
}
|
|
</script>
|
|
<div class="container">
|
|
<header>
|
|
<div class="logo-section">
|
|
<img src="https://smartcane.ag/wp-content/uploads/2023/06/Logo-smartcane.png" alt="SmartCane Logo" class="logo">
|
|
</div>
|
|
<h1>🌾 SmartCane Web Apps</h1>
|
|
<p>Quick tools for crop analysis and farm management</p>
|
|
<button class="logout-btn" onclick="logout()" style="position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; transition: background 0.3s;">Logout</button>
|
|
</header>
|
|
|
|
<div class="apps-grid">
|
|
<!-- Sugar Mill Locator -->
|
|
<div class="app-card">
|
|
<div class="app-icon">🗺️</div>
|
|
<div class="app-content">
|
|
<h2>Sugar Mill Locator</h2>
|
|
<p>Interactive map of sugar cane mills across East & Southern Africa with detailed facility information.</p>
|
|
<ul class="app-features">
|
|
<li>Browse all mill locations</li>
|
|
<li>Filter by country</li>
|
|
<li>Add new locations</li>
|
|
<li>Export data as CSV</li>
|
|
</ul>
|
|
<a href="./sugar_mill_locator/" class="app-btn">Open Map</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Data Validation Tool -->
|
|
<div class="app-card">
|
|
<div class="app-icon">✓</div>
|
|
<div class="app-content">
|
|
<h2>Data Validation Tool</h2>
|
|
<p>Validate and check data quality for crop analysis inputs.</p>
|
|
<ul class="app-features">
|
|
<li>Check data formats</li>
|
|
<li>Validate coordinates</li>
|
|
<li>Error reporting</li>
|
|
<li>Data preview</li>
|
|
</ul>
|
|
<a href="./data_validation_tool/" class="app-btn">Open Tool</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- GeoJSON Viewer -->
|
|
<div class="app-card">
|
|
<div class="app-icon">📍</div>
|
|
<div class="app-content">
|
|
<h2>GeoJSON Viewer</h2>
|
|
<p>Upload and visualize GeoJSON files on an interactive map with feature properties.</p>
|
|
<ul class="app-features">
|
|
<li>Upload GeoJSON files</li>
|
|
<li>Interactive map view</li>
|
|
<li>View feature properties</li>
|
|
<li>Download exports</li>
|
|
</ul>
|
|
<a href="./geojson_viewer/" class="app-btn">Open Viewer</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Polygon Analysis Editor -->
|
|
<div class="app-card">
|
|
<div class="app-icon">🔷</div>
|
|
<div class="app-content">
|
|
<h2>Polygon Analysis & Editor</h2>
|
|
<p>Analyze field polygons for overlaps and self-intersections. Automatically clean geometries.</p>
|
|
<ul class="app-features">
|
|
<li>Overlap analysis</li>
|
|
<li>Automated cleaning</li>
|
|
<li>Log & CSV export</li>
|
|
<li>Fix <30% overlaps</li>
|
|
</ul>
|
|
<a href="./polygon_analysis_editor/" class="app-btn">Open Editor</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ODK Viewer -->
|
|
<div class="app-card">
|
|
<div class="app-icon">🔎</div>
|
|
<div class="app-content">
|
|
<h2>ODK Data Viewer</h2>
|
|
<p>Upload ODK CSVs to visualise and turn field corner points into polygons</p>
|
|
<ul class="app-features">
|
|
<li>View ODK data</li>
|
|
<li>Turn corner points into polygons</li>
|
|
<li>Download created polygons</li>
|
|
</ul>
|
|
<a href="./odk_viewer/" class="app-btn">Open Viewer</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer>
|
|
<p>SmartCane • Resilience BV • <span id="year"></span></p>
|
|
</footer>
|
|
</div>
|
|
|
|
<script>
|
|
function logout() {
|
|
sessionStorage.removeItem('authenticated');
|
|
window.location.href = 'login.html';
|
|
}
|
|
document.getElementById("year").textContent = new Date().getFullYear();
|
|
</script>
|
|
</body>
|
|
</html>
|