Update index.html
This commit is contained in:
parent
5f41aeb3d8
commit
da666127c9
109
index.html
109
index.html
@ -9,13 +9,25 @@
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
background: linear-gradient(to bottom, #000000, #00FF00);
|
||||
background: linear-gradient(45deg,
|
||||
#001a00, #002600, #003300, #004000,
|
||||
#004d00, #005900, #006600, #007300,
|
||||
#008000, #008c00, #009900);
|
||||
background-size: 300% 300%;
|
||||
animation: gradientBG 20s ease infinite;
|
||||
display: flex;
|
||||
color: white;
|
||||
}
|
||||
@keyframes gradientBG {
|
||||
0% { background-position: 0% 50%; }
|
||||
25% { background-position: 100% 25%; }
|
||||
50% { background-position: 50% 100%; }
|
||||
75% { background-position: 25% 75%; }
|
||||
100% { background-position: 0% 50%; }
|
||||
}
|
||||
.left-column {
|
||||
width: 250px;
|
||||
min-width: 250px; /* Add this line */
|
||||
width: 300px;
|
||||
min-width: 300px; /* Add this line */
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@ -24,6 +36,7 @@
|
||||
height: 100vh;
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
|
||||
}
|
||||
.profile-pic {
|
||||
width: 150px;
|
||||
@ -31,12 +44,16 @@
|
||||
border-radius: 10px;
|
||||
object-fit: cover;
|
||||
margin-bottom: 20px;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
.text-box {
|
||||
padding: 0;
|
||||
margin-bottom: 20px;
|
||||
.profile-pic:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
.discord-widget {
|
||||
width: 100%;
|
||||
text-align: center; /* Add this line */
|
||||
flex-grow: 1;
|
||||
margin: 10px 0;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.right-column {
|
||||
flex: 1;
|
||||
@ -47,6 +64,8 @@
|
||||
height: 100vh;
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
|
||||
}
|
||||
.name {
|
||||
font-size: 24px;
|
||||
@ -63,13 +82,21 @@
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 5px;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1);
|
||||
border-radius: 10px; /* Add this line to round the corners */
|
||||
}
|
||||
.menu {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.menu-buttons {
|
||||
display: flex;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 10px;
|
||||
padding: 5px;
|
||||
}
|
||||
.menu-button {
|
||||
background-color: rgba(76, 175, 80, 0.7);
|
||||
@ -80,66 +107,92 @@
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
margin: 4px 2px;
|
||||
margin-right: 5px;
|
||||
cursor: pointer;
|
||||
border-radius: 5px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.content {
|
||||
display: none;
|
||||
margin-top: 50px;
|
||||
}
|
||||
.content.active {
|
||||
display: block;
|
||||
|
||||
.menu-button:hover {
|
||||
background-color: rgba(76, 175, 80, 0.9);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.menu-button.active {
|
||||
background-color: rgba(69, 160, 73, 0.9);
|
||||
}
|
||||
.menu-button:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.content-title {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
}
|
||||
</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>
|
||||
<img src="https://placehold.co/150" alt="Profile Picture" class="profile-pic">
|
||||
<iframe src="https://discordapp.com/widget?id=1164305303408496750&theme=dark" width="100%" height="100%" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts" class="discord-widget"></iframe>
|
||||
</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">
|
||||
<h2 class="content-title" id="content-title">About</h2>
|
||||
<div class="menu-buttons">
|
||||
<button class="menu-button active" data-target="about">About</button>
|
||||
<button class="menu-button" data-target="projects">Projects</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<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>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const menuButtons = document.querySelectorAll('.menu-button');
|
||||
const contents = document.querySelectorAll('.content');
|
||||
const contentTitle = document.getElementById('content-title');
|
||||
|
||||
function showContent(target) {
|
||||
contents.forEach(content => {
|
||||
if (content.id === target) {
|
||||
content.style.display = 'block';
|
||||
setTimeout(() => content.classList.add('active'), 50);
|
||||
} else {
|
||||
content.classList.remove('active');
|
||||
content.style.display = 'none';
|
||||
}
|
||||
});
|
||||
contentTitle.textContent = target.charAt(0).toUpperCase() + target.slice(1);
|
||||
}
|
||||
|
||||
// Initially show only the 'about' content
|
||||
showContent('about');
|
||||
|
||||
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');
|
||||
|
||||
showContent(target);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user