chdsksite/index.html
2024-09-09 21:02:47 +02:00

149 lines
5.4 KiB
HTML

<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>chkdsk</title>
<style>
body, html {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
height: 100%;
background: linear-gradient(to bottom, #000000, #00FF00);
display: flex;
color: white;
}
.left-column {
width: 250px;
min-width: 250px; /* Add this line */
padding: 20px;
display: flex;
flex-direction: column;
align-items: center; /* Add this line */
background-color: rgba(0, 0, 0, 0.5);
height: 100vh;
box-sizing: border-box;
overflow-y: auto;
}
.profile-pic {
width: 150px;
height: 150px;
border-radius: 10px;
object-fit: cover;
margin-bottom: 20px;
}
.text-box {
padding: 0;
margin-bottom: 20px;
width: 100%;
text-align: center; /* Add this line */
}
.right-column {
flex: 1;
min-width: 0; /* Add this line */
padding: 20px;
display: flex;
flex-direction: column;
height: 100vh;
box-sizing: border-box;
overflow-y: auto;
}
.name {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}
.description {
color: #ccc;
margin-bottom: 20px;
}
.main-content {
flex-grow: 1;
position: relative;
padding: 20px;
display: flex;
flex-direction: column;
background-color: rgba(0, 0, 0, 0.3);
border-radius: 5px;
}
.menu {
position: absolute;
top: 10px;
right: 10px;
}
.menu-button {
background-color: rgba(76, 175, 80, 0.7);
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 5px;
}
.content {
display: none;
margin-top: 50px;
}
.content.active {
display: block;
}
.menu-button.active {
background-color: rgba(69, 160, 73, 0.9);
}
</style>
</head>
<body>
<div class="left-column">
<img src="https://via.placeholder.com/150" alt="Profile Picture" class="profile-pic">
<div class="text-box">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
</div>
<div class="right-column">
<h1 class="name">chkdsk</h1>
<p class="description">Lorem gittest ipsum dolor sit amet, consectetur adipiscing elit.</p>
<div class="main-content">
<div class="menu">
<button class="menu-button active" data-target="about">About</button>
<button class="menu-button" data-target="projects">Projects</button>
</div>
<div id="about" class="content active">
<h2>About</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nunc id aliquam tincidunt, nisl nunc tincidunt urna, nec tincidunt nunc nunc id nunc. Sed euismod, nunc id aliquam tincidunt, nisl nunc tincidunt urna, nec tincidunt nunc nunc id nunc.</p>
<p>Phasellus auctor, nunc id aliquam tincidunt, nisl nunc tincidunt urna, nec tincidunt nunc nunc id nunc. Sed euismod, nunc id aliquam tincidunt, nisl nunc tincidunt urna, nec tincidunt nunc nunc id nunc.</p>
</div>
<div id="projects" class="content">
<h2>Projects</h2>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const menuButtons = document.querySelectorAll('.menu-button');
const contents = document.querySelectorAll('.content');
menuButtons.forEach(button => {
button.addEventListener('click', function() {
const target = this.getAttribute('data-target');
menuButtons.forEach(btn => btn.classList.remove('active'));
contents.forEach(content => content.classList.remove('active'));
this.classList.add('active');
document.getElementById(target).classList.add('active');
});
});
});
</script>
</body>
</html>