This commit includes `card.html` in the embedded files by updating the `all.hpp` file. It modifies the function to map and include the `card.html` resource. Additionally, `index.html` was updated to ensure the latest content is embedded.
156 lines
4.7 KiB
HTML
156 lines
4.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Toolbox</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background: linear-gradient(to bottom, #1e1e2e, #28293d);
|
|
color: white;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
.header {
|
|
background: #1b1b2b;
|
|
padding: 15px 20px;
|
|
text-align: center;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
|
|
}
|
|
.header h1 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
color: #ff79c6;
|
|
}
|
|
.main {
|
|
flex: 1;
|
|
padding: 15px;
|
|
overflow-y: auto;
|
|
scrollbar-width: thin; /* Firefox */
|
|
scrollbar-color: #ff79c6 #2b2c3b;
|
|
}
|
|
.main::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
.main::-webkit-scrollbar-track {
|
|
background: #2b2c3b;
|
|
border-radius: 4px;
|
|
}
|
|
.main::-webkit-scrollbar-thumb {
|
|
background-color: #ff79c6;
|
|
border-radius: 4px;
|
|
border: 2px solid #2b2c3b;
|
|
}
|
|
.tool-card {
|
|
display: flex;
|
|
align-items: center;
|
|
background: #2b2c3b;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
margin-bottom: 10px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
|
transition: transform 0.2s;
|
|
color: inherit; /* Vererbt die Textfarbe */
|
|
text-decoration: none; /* Entfernt die Unterstreichung */
|
|
}
|
|
|
|
.tool-card:hover {
|
|
transform: scale(1.02);
|
|
background-color: #32334a;
|
|
}
|
|
|
|
.tool-card img {
|
|
width: 60px;
|
|
height: 60px;
|
|
margin-right: 10px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.tool-info {
|
|
flex-grow: 1;
|
|
color: #ff79c6;
|
|
text-align: left;
|
|
}
|
|
|
|
.tool-info h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.tool-info p {
|
|
margin: 5px 0 0;
|
|
font-size: 14px;
|
|
color: #bbb;
|
|
}
|
|
|
|
.tool-action {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.tool-action button {
|
|
background: #ff79c6;
|
|
border: none;
|
|
color: white;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.tool-action button:hover {
|
|
background: #ff47b4;
|
|
}
|
|
.footer {
|
|
background: #1b1b2b;
|
|
padding: 10px 20px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: #aaa;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<h1>Toolbox</h1>
|
|
</div>
|
|
<div class="main" id="toolbox">
|
|
<!-- Tool Cards werden hier dynamisch geladen -->
|
|
</div>
|
|
<div class="footer">
|
|
<!--Schmidti.Digital © 2024-->
|
|
</div>
|
|
|
|
<script>
|
|
const tools = [
|
|
{ imgSrc: 'https://via.placeholder.com/60', toolName: 'ReSharper Tools', toolDescription: 'Version: 2024.3', buttonText: 'Einst' },
|
|
{ imgSrc: 'https://via.placeholder.com/60', toolName: 'Visual Studio 2022', toolDescription: 'Professional Edition', buttonText: 'Einst' },
|
|
{ imgSrc: 'https://via.placeholder.com/60', toolName: 'CLion', toolDescription: 'Version: 2024.3', buttonText: 'Einst' },
|
|
{ imgSrc: 'https://via.placeholder.com/60', toolName: 'IntelliJ IDEA', toolDescription: 'Ultimate Edition 2024', buttonText: 'Einst' },
|
|
{ imgSrc: 'https://via.placeholder.com/60', toolName: 'PyCharm', toolDescription: 'Community Edition 2024', buttonText: 'Einst' },
|
|
{ imgSrc: 'https://via.placeholder.com/60', toolName: 'Rider', toolDescription: 'For .NET Development', buttonText: 'Einst' }
|
|
];
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
const toolbox = document.getElementById('toolbox');
|
|
tools.forEach(tool => {
|
|
fetch('card.html')
|
|
.then(response => response.text())
|
|
.then(template => {
|
|
const cardHTML = template
|
|
.replace(/{{imgSrc}}/g, tool.imgSrc)
|
|
.replace(/{{toolName}}/g, tool.toolName)
|
|
.replace(/{{toolDescription}}/g, tool.toolDescription)
|
|
.replace(/{{buttonText}}/g, tool.buttonText);
|
|
|
|
toolbox.innerHTML += cardHTML;
|
|
})
|
|
.catch(error => console.error('Error fetching card template:', error));
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |