first commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
@@ -0,0 +1,412 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>HackerSoft Boot Logo Generator</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
min-height: 100vh;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background: white;
|
||||
border-radius: 20px;
|
||||
padding: 30px;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
color: #333;
|
||||
margin-bottom: 30px;
|
||||
font-size: 2.5em;
|
||||
}
|
||||
|
||||
.controls {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 20px;
|
||||
margin-bottom: 30px;
|
||||
padding: 20px;
|
||||
background: #f8f9fa;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.control-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: 600;
|
||||
margin-bottom: 8px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
input, select {
|
||||
padding: 10px;
|
||||
border: 2px solid #ddd;
|
||||
border-radius: 5px;
|
||||
font-size: 14px;
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
|
||||
input:focus, select:focus {
|
||||
outline: none;
|
||||
border-color: #667eea;
|
||||
}
|
||||
|
||||
.canvas-container {
|
||||
text-align: center;
|
||||
margin: 30px 0;
|
||||
padding: 20px;
|
||||
background: #000;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
canvas {
|
||||
max-width: 100%;
|
||||
border: 3px solid #667eea;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.button-group {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 15px 30px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: #28a745;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: #218838;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.info-box {
|
||||
background: #e3f2fd;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
margin-top: 20px;
|
||||
border-left: 5px solid #2196f3;
|
||||
}
|
||||
|
||||
.info-box h3 {
|
||||
color: #1976d2;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.info-box ul {
|
||||
margin-left: 20px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.info-box li {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.presets {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.preset-btn {
|
||||
padding: 8px 15px;
|
||||
background: #f0f0f0;
|
||||
border: 2px solid #ddd;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.preset-btn:hover {
|
||||
background: #667eea;
|
||||
color: white;
|
||||
border-color: #667eea;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>🎨 HackerSoft Boot Logo Generator</h1>
|
||||
|
||||
<div class="controls">
|
||||
<div class="control-group">
|
||||
<label for="mainText">Haupttext:</label>
|
||||
<input type="text" id="mainText" value="HackerSoft">
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="subText">Untertitel:</label>
|
||||
<input type="text" id="subText" value="RDP Thin Client">
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="companyText">Firma (unten):</label>
|
||||
<input type="text" id="companyText" value="Hacker-Net Telekommunikation">
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="mainColor">Hauptfarbe:</label>
|
||||
<input type="color" id="mainColor" value="#00ff88">
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="accentColor">Akzentfarbe:</label>
|
||||
<input type="color" id="accentColor" value="#667eea">
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="bgStyle">Hintergrund:</label>
|
||||
<select id="bgStyle">
|
||||
<option value="gradient">Gradient (Dunkel)</option>
|
||||
<option value="solid-dark">Einfarbig Dunkel</option>
|
||||
<option value="solid-black">Schwarz</option>
|
||||
<option value="matrix">Matrix-Style</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="presets">
|
||||
<button class="preset-btn" onclick="loadPreset('hacker')">🟢 Hacker Green</button>
|
||||
<button class="preset-btn" onclick="loadPreset('corporate')">🔵 Corporate Blue</button>
|
||||
<button class="preset-btn" onclick="loadPreset('fire')">🔴 Fire Red</button>
|
||||
<button class="preset-btn" onclick="loadPreset('modern')">⚪ Modern Minimal</button>
|
||||
</div>
|
||||
|
||||
<div class="canvas-container">
|
||||
<canvas id="logoCanvas" width="1920" height="1080"></canvas>
|
||||
</div>
|
||||
|
||||
<div class="button-group">
|
||||
<button class="btn-primary" onclick="generateLogo()">🎨 Logo Generieren</button>
|
||||
<button class="btn-secondary" onclick="downloadLogo('boot-logo')">💾 Boot-Logo Download</button>
|
||||
<button class="btn-secondary" onclick="downloadLogo('grub-background')">💾 GRUB Background Download</button>
|
||||
<button class="btn-secondary" onclick="downloadLogo('login-background')">💾 Login Background Download</button>
|
||||
</div>
|
||||
|
||||
<div class="info-box">
|
||||
<h3>📋 Verwendung:</h3>
|
||||
<ul>
|
||||
<li><strong>1.</strong> Text und Farben anpassen</li>
|
||||
<li><strong>2.</strong> "Logo Generieren" klicken</li>
|
||||
<li><strong>3.</strong> Alle 3 Varianten downloaden</li>
|
||||
<li><strong>4.</strong> Dateien nach <code>rdp-thin-client/files/branding/</code> kopieren</li>
|
||||
<li><strong>5.</strong> Ansible-Playbook ausführen</li>
|
||||
</ul>
|
||||
<br>
|
||||
<strong>💡 Tipp:</strong> Die "Presets" geben dir verschiedene Farb-Styles!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const canvas = document.getElementById('logoCanvas');
|
||||
const ctx = canvas.getContext('2d');
|
||||
|
||||
// Presets
|
||||
const presets = {
|
||||
hacker: {
|
||||
mainColor: '#00ff88',
|
||||
accentColor: '#00cc66',
|
||||
bgStyle: 'matrix'
|
||||
},
|
||||
corporate: {
|
||||
mainColor: '#4a90e2',
|
||||
accentColor: '#667eea',
|
||||
bgStyle: 'gradient'
|
||||
},
|
||||
fire: {
|
||||
mainColor: '#ff4444',
|
||||
accentColor: '#ff8800',
|
||||
bgStyle: 'gradient'
|
||||
},
|
||||
modern: {
|
||||
mainColor: '#ffffff',
|
||||
accentColor: '#888888',
|
||||
bgStyle: 'solid-black'
|
||||
}
|
||||
};
|
||||
|
||||
function loadPreset(preset) {
|
||||
const p = presets[preset];
|
||||
document.getElementById('mainColor').value = p.mainColor;
|
||||
document.getElementById('accentColor').value = p.accentColor;
|
||||
document.getElementById('bgStyle').value = p.bgStyle;
|
||||
generateLogo();
|
||||
}
|
||||
|
||||
function generateLogo() {
|
||||
const mainText = document.getElementById('mainText').value;
|
||||
const subText = document.getElementById('subText').value;
|
||||
const companyText = document.getElementById('companyText').value;
|
||||
const mainColor = document.getElementById('mainColor').value;
|
||||
const accentColor = document.getElementById('accentColor').value;
|
||||
const bgStyle = document.getElementById('bgStyle').value;
|
||||
|
||||
// Clear canvas
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
// Background
|
||||
drawBackground(bgStyle, mainColor, accentColor);
|
||||
|
||||
// Main Text
|
||||
ctx.font = 'bold 180px Arial';
|
||||
ctx.fillStyle = mainColor;
|
||||
ctx.textAlign = 'center';
|
||||
ctx.textBaseline = 'middle';
|
||||
|
||||
// Text with glow effect
|
||||
ctx.shadowColor = mainColor;
|
||||
ctx.shadowBlur = 30;
|
||||
ctx.fillText(mainText, canvas.width / 2, canvas.height / 2 - 80);
|
||||
|
||||
// Subtitle
|
||||
ctx.shadowBlur = 20;
|
||||
ctx.font = 'bold 60px Arial';
|
||||
ctx.fillStyle = accentColor;
|
||||
ctx.fillText(subText, canvas.width / 2, canvas.height / 2 + 50);
|
||||
|
||||
// Company text at bottom
|
||||
ctx.shadowBlur = 10;
|
||||
ctx.font = '40px Arial';
|
||||
ctx.fillStyle = '#888888';
|
||||
ctx.fillText(companyText, canvas.width / 2, canvas.height - 100);
|
||||
|
||||
// Version/Build info
|
||||
ctx.font = '30px Arial';
|
||||
ctx.fillStyle = '#666666';
|
||||
ctx.fillText('v1.0 | Debian 12/13', canvas.width / 2, canvas.height - 50);
|
||||
|
||||
// Reset shadow
|
||||
ctx.shadowBlur = 0;
|
||||
|
||||
// Decorative elements
|
||||
drawDecorations(mainColor, accentColor);
|
||||
}
|
||||
|
||||
function drawBackground(style, mainColor, accentColor) {
|
||||
switch(style) {
|
||||
case 'gradient':
|
||||
const gradient = ctx.createLinearGradient(0, 0, canvas.width, canvas.height);
|
||||
gradient.addColorStop(0, '#1a1a2e');
|
||||
gradient.addColorStop(0.5, '#16213e');
|
||||
gradient.addColorStop(1, '#0f0f1e');
|
||||
ctx.fillStyle = gradient;
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||
break;
|
||||
case 'solid-dark':
|
||||
ctx.fillStyle = '#1a1a2e';
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||
break;
|
||||
case 'solid-black':
|
||||
ctx.fillStyle = '#000000';
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||
break;
|
||||
case 'matrix':
|
||||
ctx.fillStyle = '#0a0a0a';
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||
// Matrix effect
|
||||
for (let i = 0; i < 50; i++) {
|
||||
ctx.fillStyle = mainColor + '20';
|
||||
const x = Math.random() * canvas.width;
|
||||
const y = Math.random() * canvas.height;
|
||||
const size = Math.random() * 30 + 10;
|
||||
ctx.fillRect(x, y, 2, size);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function drawDecorations(mainColor, accentColor) {
|
||||
// Corner accents
|
||||
ctx.strokeStyle = mainColor;
|
||||
ctx.lineWidth = 5;
|
||||
|
||||
// Top-left
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(50, 150);
|
||||
ctx.lineTo(50, 50);
|
||||
ctx.lineTo(150, 50);
|
||||
ctx.stroke();
|
||||
|
||||
// Top-right
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(canvas.width - 50, 150);
|
||||
ctx.lineTo(canvas.width - 50, 50);
|
||||
ctx.lineTo(canvas.width - 150, 50);
|
||||
ctx.stroke();
|
||||
|
||||
// Bottom-left
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(50, canvas.height - 150);
|
||||
ctx.lineTo(50, canvas.height - 50);
|
||||
ctx.lineTo(150, canvas.height - 50);
|
||||
ctx.stroke();
|
||||
|
||||
// Bottom-right
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(canvas.width - 50, canvas.height - 150);
|
||||
ctx.lineTo(canvas.width - 50, canvas.height - 50);
|
||||
ctx.lineTo(canvas.width - 150, canvas.height - 50);
|
||||
ctx.stroke();
|
||||
}
|
||||
|
||||
function downloadLogo(filename) {
|
||||
const link = document.createElement('a');
|
||||
link.download = filename + '.png';
|
||||
link.href = canvas.toDataURL('image/png');
|
||||
link.click();
|
||||
}
|
||||
|
||||
// Generate initial logo
|
||||
window.onload = function() {
|
||||
generateLogo();
|
||||
};
|
||||
|
||||
// Auto-update on input change
|
||||
document.querySelectorAll('input, select').forEach(el => {
|
||||
el.addEventListener('input', generateLogo);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
Reference in New Issue
Block a user