82 lines
3.6 KiB
HTML
82 lines
3.6 KiB
HTML
<!doctype html>
|
|
<html class="dark h-full">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>
|
|
{{ if eq .PageTitle "index_title" }}Honeypot Dashboard
|
|
{{ else if eq .PageTitle "logs_title" }}Recent Logs
|
|
{{ else if eq .PageTitle "settings_title" }}Settings
|
|
{{ else if eq .PageTitle "stats_title" }}Statistics
|
|
{{ else if eq .PageTitle "blacklist_title" }}Blacklist
|
|
{{ else if eq .PageTitle "threats_title" }}Top Threats
|
|
{{ else if eq .PageTitle "threat_reports_title" }}Threat Reports
|
|
{{ else if eq .PageTitle "threat_rules_title" }}Threat Rules
|
|
{{ else if eq .PageTitle "users_title" }}User Management
|
|
{{ else }}Honeypot Dashboard{{ end }}
|
|
</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script>
|
|
tailwind.config = {
|
|
darkMode: 'class',
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
primary: {
|
|
50: '#eff6ff', 100: '#dbeafe', 200: '#bfdbfe', 300: '#93c5fd', 400: '#60a5fa',
|
|
500: '#3b82f6', 600: '#2563eb', 700: '#1d4ed8', 800: '#1e40af', 900: '#1e3a8a'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="h-full bg-gray-900 text-gray-100">
|
|
<div class="min-h-full">
|
|
<nav class="bg-gray-800 border-b border-gray-700">
|
|
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
|
<div class="flex h-16 items-center justify-between">
|
|
<div class="flex items-center space-x-8">
|
|
<a href="/" class="text-primary-400 hover:text-primary-300 font-semibold">Honeypot Dashboard</a>
|
|
<a href="/logs" class="text-gray-300 hover:text-white">Recent Logs</a>
|
|
<a href="/threats" class="text-gray-300 hover:text-white">Top Threats</a>
|
|
<a href="/threat-reports" class="text-gray-300 hover:text-white">Threat Reports</a>
|
|
<a href="/threat-rules" class="text-gray-300 hover:text-white">Threat Rules</a>
|
|
<a href="/blacklist" class="text-gray-300 hover:text-white">Blacklist</a>
|
|
<a href="/stats" class="text-gray-300 hover:text-white">Statistics</a>
|
|
<a href="/users" class="text-gray-300 hover:text-white">Users</a>
|
|
<a href="/settings" class="text-gray-300 hover:text-white">Settings</a>
|
|
</div>
|
|
<div class="text-xs text-gray-400">{{ .Now }}</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<main class="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8">
|
|
{{ if eq .PageContent "index_content" }}
|
|
{{ template "index_content" . }}
|
|
{{ else if eq .PageContent "logs_content" }}
|
|
{{ template "logs_content" . }}
|
|
{{ else if eq .PageContent "settings_content" }}
|
|
{{ template "settings_content" . }}
|
|
{{ else if eq .PageContent "stats_content" }}
|
|
{{ template "stats_content" . }}
|
|
{{ else if eq .PageContent "blacklist_content" }}
|
|
{{ template "blacklist_content" . }}
|
|
{{ else if eq .PageContent "threats_content" }}
|
|
{{ template "threats_content" . }}
|
|
{{ else if eq .PageContent "threat_reports_content" }}
|
|
{{ template "threat_reports_content" . }}
|
|
{{ else if eq .PageContent "threat_rules_content" }}
|
|
{{ template "threat_rules_content" . }}
|
|
{{ else if eq .PageContent "webtemplates_content" }}
|
|
{{ template "webtemplates_content" . }}
|
|
{{ else if eq .PageContent "users_content" }}
|
|
{{ template "users_content" . }}
|
|
{{ end }}
|
|
</main>
|
|
<footer class="border-t border-gray-800 py-6 text-center text-gray-500 text-sm">Honeypot Dashboard</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|