draft of field manua

This commit is contained in:
2025-08-29 06:58:56 -04:00
parent d28218de89
commit 4a6b9f922f
33 changed files with 15554 additions and 0 deletions
+500
View File
@@ -0,0 +1,500 @@
---
---
// Field Guide for Subversives - Main Stylesheet
// Inspired by resist.is design with military field manual structure
// Color scheme (based on resist.is)
$bg-color: #000000;
$text-color: #ffffff;
$accent-green: #00ff00;
$accent-blue: #0066ff;
$accent-red: #ff0000;
$border-color: #333333;
$code-bg: #1a1a1a;
$warning-color: #ffaa00;
// Typography
$font-family-base: 'Courier New', 'Monaco', 'Menlo', monospace;
$font-family-heading: 'Arial', 'Helvetica', sans-serif;
$font-size-base: 16px;
$line-height-base: 1.6;
// Layout
$max-width: 1200px;
$sidebar-width: 300px;
$header-height: 80px;
// Base styles
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: $font-size-base;
scroll-behavior: smooth;
}
body {
font-family: $font-family-base;
font-size: $font-size-base;
line-height: $line-height-base;
color: $text-color;
background-color: $bg-color;
min-height: 100vh;
}
// Typography
h1, h2, h3, h4, h5, h6 {
font-family: $font-family-heading;
font-weight: bold;
margin-bottom: 1rem;
line-height: 1.2;
}
h1 {
font-size: 2.5rem;
color: $accent-green;
text-align: center;
margin-bottom: 2rem;
text-transform: uppercase;
letter-spacing: 2px;
}
h2 {
font-size: 2rem;
color: $accent-blue;
border-bottom: 2px solid $accent-blue;
padding-bottom: 0.5rem;
margin-top: 2rem;
margin-bottom: 1.5rem;
}
h3 {
font-size: 1.5rem;
color: $accent-green;
margin-top: 1.5rem;
margin-bottom: 1rem;
}
h4 {
font-size: 1.25rem;
color: $text-color;
margin-top: 1rem;
margin-bottom: 0.75rem;
}
p {
margin-bottom: 1rem;
}
// Links
a {
color: $accent-blue;
text-decoration: none;
transition: color 0.3s ease;
&:hover {
color: $accent-green;
text-decoration: underline;
}
&:visited {
color: lighten($accent-blue, 20%);
}
}
// Lists
ul, ol {
margin-bottom: 1rem;
padding-left: 2rem;
li {
margin-bottom: 0.5rem;
}
}
// Code and preformatted text
code {
background-color: $code-bg;
color: $accent-green;
padding: 0.2rem 0.4rem;
border-radius: 3px;
font-family: $font-family-base;
font-size: 0.9rem;
}
pre {
background-color: $code-bg;
color: $text-color;
padding: 1rem;
border-radius: 5px;
overflow-x: auto;
margin-bottom: 1rem;
border-left: 4px solid $accent-green;
code {
background: none;
padding: 0;
color: inherit;
}
}
// Tables
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 1rem;
background-color: $code-bg;
th, td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid $border-color;
}
th {
background-color: $border-color;
color: $accent-green;
font-weight: bold;
}
tr:hover {
background-color: lighten($code-bg, 5%);
}
}
// Layout components
.container {
max-width: $max-width;
margin: 0 auto;
padding: 0 1rem;
}
.header {
background-color: $bg-color;
border-bottom: 2px solid $accent-green;
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 100;
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
font-size: 1.5rem;
font-weight: bold;
color: $accent-green;
.omega {
font-size: 2rem;
margin-right: 0.5rem;
}
}
.nav-toggle {
display: none;
background: none;
border: none;
color: $text-color;
font-size: 1.5rem;
cursor: pointer;
}
}
.main-layout {
display: flex;
min-height: calc(100vh - #{$header-height});
}
.sidebar {
width: $sidebar-width;
background-color: lighten($bg-color, 5%);
border-right: 1px solid $border-color;
padding: 2rem 1rem;
overflow-y: auto;
position: sticky;
top: $header-height;
height: calc(100vh - #{$header-height});
.nav-section {
margin-bottom: 2rem;
h3 {
color: $accent-green;
font-size: 1rem;
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 1px;
}
ul {
list-style: none;
padding: 0;
li {
margin-bottom: 0.25rem;
a {
display: block;
padding: 0.5rem;
border-radius: 3px;
transition: background-color 0.3s ease;
&:hover {
background-color: $border-color;
text-decoration: none;
}
&.active {
background-color: $accent-blue;
color: $bg-color;
}
}
ul {
margin-left: 1rem;
margin-top: 0.5rem;
a {
font-size: 0.9rem;
color: lighten($text-color, 20%);
}
}
}
}
}
}
.content {
flex: 1;
padding: 2rem;
max-width: calc(100% - #{$sidebar-width});
.content-header {
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid $border-color;
.manual-designation {
color: $accent-green;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 0.5rem;
}
.classification {
color: $warning-color;
font-size: 0.8rem;
text-transform: uppercase;
font-weight: bold;
}
}
.section-nav {
display: flex;
justify-content: space-between;
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid $border-color;
.nav-link {
display: flex;
align-items: center;
padding: 0.75rem 1.5rem;
background-color: $code-bg;
border: 1px solid $border-color;
border-radius: 5px;
transition: all 0.3s ease;
&:hover {
background-color: $accent-blue;
color: $bg-color;
text-decoration: none;
}
.arrow {
font-size: 1.2rem;
margin: 0 0.5rem;
}
}
}
}
// Special components
.warning-box {
background-color: rgba($warning-color, 0.1);
border-left: 4px solid $warning-color;
padding: 1rem;
margin: 1rem 0;
border-radius: 0 5px 5px 0;
.warning-title {
color: $warning-color;
font-weight: bold;
margin-bottom: 0.5rem;
text-transform: uppercase;
}
}
.info-box {
background-color: rgba($accent-blue, 0.1);
border-left: 4px solid $accent-blue;
padding: 1rem;
margin: 1rem 0;
border-radius: 0 5px 5px 0;
.info-title {
color: $accent-blue;
font-weight: bold;
margin-bottom: 0.5rem;
text-transform: uppercase;
}
}
.success-box {
background-color: rgba($accent-green, 0.1);
border-left: 4px solid $accent-green;
padding: 1rem;
margin: 1rem 0;
border-radius: 0 5px 5px 0;
.success-title {
color: $accent-green;
font-weight: bold;
margin-bottom: 0.5rem;
text-transform: uppercase;
}
}
.do-dont-list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin: 1rem 0;
.do-list, .dont-list {
padding: 1rem;
border-radius: 5px;
h4 {
margin-bottom: 0.5rem;
text-transform: uppercase;
}
ul {
margin: 0;
padding-left: 1.5rem;
}
}
.do-list {
background-color: rgba($accent-green, 0.1);
border: 1px solid $accent-green;
h4 {
color: $accent-green;
}
}
.dont-list {
background-color: rgba($accent-red, 0.1);
border: 1px solid $accent-red;
h4 {
color: $accent-red;
}
}
}
// Footer
.footer {
background-color: $border-color;
padding: 2rem 0;
margin-top: 4rem;
text-align: center;
border-top: 2px solid $accent-green;
.footer-content {
color: lighten($text-color, 20%);
font-size: 0.9rem;
.organization {
color: $accent-green;
font-weight: bold;
}
}
}
// Responsive design
@media (max-width: 768px) {
.header {
.nav-toggle {
display: block;
}
}
.main-layout {
flex-direction: column;
}
.sidebar {
width: 100%;
position: static;
height: auto;
display: none;
&.active {
display: block;
}
}
.content {
max-width: 100%;
padding: 1rem;
}
.do-dont-list {
grid-template-columns: 1fr;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.5rem;
}
}
// Print styles
@media print {
body {
background: white;
color: black;
}
.header, .sidebar, .footer, .section-nav {
display: none;
}
.content {
max-width: 100%;
padding: 0;
}
a {
color: black;
text-decoration: underline;
}
}
+166
View File
@@ -0,0 +1,166 @@
// Field Guide for Subversives - Main JavaScript
document.addEventListener('DOMContentLoaded', function() {
// Mobile navigation toggle
const navToggle = document.getElementById('nav-toggle');
const sidebar = document.getElementById('sidebar');
if (navToggle && sidebar) {
navToggle.addEventListener('click', function() {
sidebar.classList.toggle('active');
});
}
// Smooth scrolling for anchor links
const anchorLinks = document.querySelectorAll('a[href^="#"]');
anchorLinks.forEach(link => {
link.addEventListener('click', function(e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// Add security warning for external links
const externalLinks = document.querySelectorAll('a[href^="http"]:not([href*="' + window.location.hostname + '"])');
externalLinks.forEach(link => {
link.addEventListener('click', function(e) {
if (!confirm('You are about to visit an external site. Ensure you are using secure browsing practices. Continue?')) {
e.preventDefault();
}
});
// Add visual indicator for external links
link.setAttribute('title', 'External link - opens in new tab');
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'noopener noreferrer');
});
// Keyboard navigation
document.addEventListener('keydown', function(e) {
// Alt + Left Arrow: Previous page
if (e.altKey && e.key === 'ArrowLeft') {
const prevLink = document.querySelector('.section-nav .nav-link:first-child');
if (prevLink && prevLink.href) {
window.location.href = prevLink.href;
}
}
// Alt + Right Arrow: Next page
if (e.altKey && e.key === 'ArrowRight') {
const nextLink = document.querySelector('.section-nav .nav-link:last-child');
if (nextLink && nextLink.href) {
window.location.href = nextLink.href;
}
}
// Escape: Close mobile menu
if (e.key === 'Escape' && sidebar && sidebar.classList.contains('active')) {
sidebar.classList.remove('active');
}
});
// Print functionality
function addPrintButton() {
const contentHeader = document.querySelector('.content-header');
if (contentHeader) {
const printButton = document.createElement('button');
printButton.textContent = 'Print Section';
printButton.className = 'print-button';
printButton.style.cssText = `
background: #333;
color: #00ff00;
border: 1px solid #00ff00;
padding: 0.5rem 1rem;
border-radius: 3px;
cursor: pointer;
font-family: inherit;
margin-top: 1rem;
`;
printButton.addEventListener('click', function() {
window.print();
});
contentHeader.appendChild(printButton);
}
}
addPrintButton();
// Security reminder
function showSecurityReminder() {
const reminder = document.createElement('div');
reminder.style.cssText = `
position: fixed;
bottom: 20px;
right: 20px;
background: rgba(255, 170, 0, 0.9);
color: #000;
padding: 1rem;
border-radius: 5px;
max-width: 300px;
font-size: 0.9rem;
z-index: 1000;
display: none;
`;
reminder.innerHTML = `
<strong>Security Reminder:</strong> Ensure you're using Tails OS or a secure browser when accessing this guide.
<button onclick="this.parentElement.style.display='none'" style="float: right; background: none; border: none; font-size: 1.2rem; cursor: pointer;">×</button>
`;
document.body.appendChild(reminder);
// Show reminder after 30 seconds
setTimeout(() => {
reminder.style.display = 'block';
}, 30000);
// Auto-hide after 10 seconds
setTimeout(() => {
reminder.style.display = 'none';
}, 40000);
}
// Only show security reminder on first visit
if (!localStorage.getItem('security_reminder_shown')) {
showSecurityReminder();
localStorage.setItem('security_reminder_shown', 'true');
}
// Add copy-to-clipboard functionality for code blocks
const codeBlocks = document.querySelectorAll('pre code');
codeBlocks.forEach(block => {
const button = document.createElement('button');
button.textContent = 'Copy';
button.className = 'copy-button';
button.style.cssText = `
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: #333;
color: #00ff00;
border: 1px solid #00ff00;
padding: 0.25rem 0.5rem;
border-radius: 3px;
cursor: pointer;
font-size: 0.8rem;
`;
const pre = block.parentElement;
pre.style.position = 'relative';
pre.appendChild(button);
button.addEventListener('click', function() {
navigator.clipboard.writeText(block.textContent).then(() => {
button.textContent = 'Copied!';
setTimeout(() => {
button.textContent = 'Copy';
}, 2000);
});
});
});
});