Update index.html
This commit is contained in:
parent
5f41aeb3d8
commit
da666127c9
127
index.html
127
index.html
@ -9,13 +9,25 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
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;
|
display: flex;
|
||||||
color: white;
|
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 {
|
.left-column {
|
||||||
width: 250px;
|
width: 300px;
|
||||||
min-width: 250px; /* Add this line */
|
min-width: 300px; /* Add this line */
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -24,6 +36,7 @@
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
|
||||||
}
|
}
|
||||||
.profile-pic {
|
.profile-pic {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
@ -31,12 +44,16 @@
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
transition: transform 0.3s ease;
|
||||||
}
|
}
|
||||||
.text-box {
|
.profile-pic:hover {
|
||||||
padding: 0;
|
transform: scale(1.05);
|
||||||
margin-bottom: 20px;
|
}
|
||||||
|
.discord-widget {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center; /* Add this line */
|
flex-grow: 1;
|
||||||
|
margin: 10px 0;
|
||||||
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
.right-column {
|
.right-column {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@ -47,6 +64,8 @@
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
background-color: rgba(0, 0, 0, 0.3);
|
||||||
|
box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
|
||||||
}
|
}
|
||||||
.name {
|
.name {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
@ -63,13 +82,21 @@
|
|||||||
padding: 20px;
|
padding: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: rgba(0, 0, 0, 0.3);
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
border-radius: 5px;
|
box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1);
|
||||||
|
border-radius: 10px; /* Add this line to round the corners */
|
||||||
}
|
}
|
||||||
.menu {
|
.menu {
|
||||||
position: absolute;
|
display: flex;
|
||||||
top: 10px;
|
justify-content: space-between;
|
||||||
right: 10px;
|
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 {
|
.menu-button {
|
||||||
background-color: rgba(76, 175, 80, 0.7);
|
background-color: rgba(76, 175, 80, 0.7);
|
||||||
@ -80,47 +107,57 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin: 4px 2px;
|
margin-right: 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
.content {
|
|
||||||
display: none;
|
.menu-button:hover {
|
||||||
margin-top: 50px;
|
background-color: rgba(76, 175, 80, 0.9);
|
||||||
}
|
transform: translateY(-2px);
|
||||||
.content.active {
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-button.active {
|
.menu-button.active {
|
||||||
background-color: rgba(69, 160, 73, 0.9);
|
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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="left-column">
|
<div class="left-column">
|
||||||
<img src="https://via.placeholder.com/150" alt="Profile Picture" class="profile-pic">
|
<img src="https://placehold.co/150" alt="Profile Picture" class="profile-pic">
|
||||||
<div class="text-box">
|
<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>
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="right-column">
|
<div class="right-column">
|
||||||
<h1 class="name">chkdsk</h1>
|
<h1 class="name">chkdsk</h1>
|
||||||
<p class="description">Lorem gittest ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
<p class="description">Lorem gittest ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<button class="menu-button active" data-target="about">About</button>
|
<h2 class="content-title" id="content-title">About</h2>
|
||||||
<button class="menu-button" data-target="projects">Projects</button>
|
<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>
|
||||||
<div id="about" class="content active">
|
<div class="content-wrapper">
|
||||||
<h2>About</h2>
|
<div id="about" class="content active">
|
||||||
<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>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>
|
<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>
|
||||||
<div id="projects" class="content">
|
<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>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>
|
||||||
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -130,16 +167,32 @@
|
|||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
const menuButtons = document.querySelectorAll('.menu-button');
|
const menuButtons = document.querySelectorAll('.menu-button');
|
||||||
const contents = document.querySelectorAll('.content');
|
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 => {
|
menuButtons.forEach(button => {
|
||||||
button.addEventListener('click', function() {
|
button.addEventListener('click', function() {
|
||||||
const target = this.getAttribute('data-target');
|
const target = this.getAttribute('data-target');
|
||||||
|
|
||||||
menuButtons.forEach(btn => btn.classList.remove('active'));
|
menuButtons.forEach(btn => btn.classList.remove('active'));
|
||||||
contents.forEach(content => content.classList.remove('active'));
|
|
||||||
|
|
||||||
this.classList.add('active');
|
this.classList.add('active');
|
||||||
document.getElementById(target).classList.add('active');
|
|
||||||
|
showContent(target);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user