Base of personal website
This commit is contained in:
86
index.html
Normal file
86
index.html
Normal file
@@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content-container="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" href="https://avatars.githubusercontent-container.com/u/16880356?v=4" type="image/x-icon">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<title>Erik Fehér</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div class="card-wrapper">
|
||||
<div class="card">
|
||||
<img class="card-image" src="./public/cozy1.jpg"/>
|
||||
</div>
|
||||
<div class="card-label">
|
||||
ABOUT
|
||||
</div>
|
||||
<div class="content-container">
|
||||
<div class="content-wrapper">
|
||||
<p>Hello! I'm Erik Fehér, a passionate software developer with a knack for creating innovative solutions. With a background in computer science and years of experience in the tech industry, I specialize in building web applications that are both user-friendly and efficient. When I'm not coding, you can find me exploring the latest tech trends or contributing to open-source projects. Let's connect and create something amazing together!</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-wrapper">
|
||||
<div class="card">
|
||||
<img class="card-image" src="./public/cozy2.jpg"/>
|
||||
</div>
|
||||
<div class="card-label">
|
||||
CONTACT
|
||||
</div>
|
||||
<div class="content-container">
|
||||
<div class="content-wrapper">
|
||||
<p>Hello! I'm Erik Fehér, a passionate software developer with a knack for creating innovative solutions. With a background in computer science and years of experience in the tech industry, I specialize in building web applications that are both user-friendly and efficient. When I'm not coding, you can find me exploring the latest tech trends or contributing to open-source projects. Let's connect and create something amazing together!</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-wrapper">
|
||||
<div class="card">
|
||||
<img class="card-image" src="./public/cozy3.png"/>
|
||||
</div>
|
||||
<div class="card-label">
|
||||
SOCIALS
|
||||
</div>
|
||||
<div class="content-container">
|
||||
<div class="content-wrapper">
|
||||
<p>Hello! I'm Erik Fehér, a passionate software developer with a knack for creating innovative solutions. With a background in computer science and years of experience in the tech industry, I specialize in building web applications that are both user-friendly and efficient. When I'm not coding, you can find me exploring the latest tech trends or contributing to open-source projects. Let's connect and create something amazing together!</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-wrapper">
|
||||
<div class="card">
|
||||
<img class="card-image" src="./public/cozy4.png"/>
|
||||
</div>
|
||||
<div class="card-label">
|
||||
EXPERIENCE
|
||||
</div>
|
||||
<div class="content-container">
|
||||
<div class="content-wrapper">
|
||||
<p>Hello! I'm Erik Fehér, a passionate software developer with a knack for creating innovative solutions. With a background in computer science and years of experience in the tech industry, I specialize in building web applications that are both user-friendly and efficient. When I'm not coding, you can find me exploring the latest tech trends or contributing to open-source projects. Let's connect and create something amazing together!</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-wrapper">
|
||||
<div class="card">
|
||||
<img class="card-image" src="./public/cozy5.png"/>
|
||||
</div>
|
||||
<div class="card-label">
|
||||
SKILLS
|
||||
</div>
|
||||
<div class="content-container">
|
||||
<div class="content-wrapper">
|
||||
<p>Hello! I'm Erik Fehér, a passionate software developer with a knack for creating innovative solutions. With a background in computer science and years of experience in the tech industry, I specialize in building web applications that are both user-friendly and efficient. When I'm not coding, you can find me exploring the latest tech trends or contributing to open-source projects. Let's connect and create something amazing together!</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="script.js"></script>
|
||||
|
||||
</html>
|
||||
BIN
public/cozy1.jpg
Normal file
BIN
public/cozy1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 666 KiB |
BIN
public/cozy2.jpg
Normal file
BIN
public/cozy2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 476 KiB |
BIN
public/cozy3.png
Normal file
BIN
public/cozy3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 872 KiB |
BIN
public/cozy4.png
Normal file
BIN
public/cozy4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 659 KiB |
BIN
public/cozy5.png
Normal file
BIN
public/cozy5.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
23
script.js
Normal file
23
script.js
Normal file
@@ -0,0 +1,23 @@
|
||||
function init() {
|
||||
const cards = document.getElementsByClassName('card-wrapper');
|
||||
|
||||
console.log(cards[0]); // Logs the first card-wrapper elementű
|
||||
for (let i = 0; i < cards.length; i++) {
|
||||
cards[i].addEventListener('click', function() {
|
||||
for (let j = 0; j < cards.length; j++) {
|
||||
if (j === i) {
|
||||
cards[j].classList.remove('hidden');
|
||||
cards[j].classList.add('active');
|
||||
cards[j].getElementsByClassName('content-wrapper')[0].classList.add('visible');
|
||||
continue;
|
||||
}
|
||||
cards[j].getElementsByClassName('content-wrapper')[0].classList.remove('visible');
|
||||
cards[j].classList.add('hidden');
|
||||
cards[j].classList.remove('active');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
init();
|
||||
114
styles.css
Normal file
114
styles.css
Normal file
@@ -0,0 +1,114 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=BBH+Sans+Bogle&display=swap');
|
||||
|
||||
:root {
|
||||
--card-gap: 6px;
|
||||
--background-color: #1b1b1b;
|
||||
--text-color: #fff;
|
||||
--label-height: 60px;
|
||||
|
||||
font-family: "BBH Sans Bogle", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
html, body {
|
||||
background: var(--background-color);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow-y: hidden; /* Hide vertical scrollbar */
|
||||
overflow-x: hidden; /* Hide horizontal scrollbar */
|
||||
height: 100dvh;
|
||||
}
|
||||
|
||||
#container {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
gap: var(--card-gap);
|
||||
margin: var(--card-gap);
|
||||
}
|
||||
|
||||
.card-image {
|
||||
filter: grayscale(100%) brightness(80%);
|
||||
transform: translateY(0);
|
||||
transition: 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
|
||||
}
|
||||
|
||||
.card {
|
||||
height: calc(100dvh - (2 * var(--card-gap)));
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.card-wrapper {
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
transition: 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
|
||||
}
|
||||
|
||||
.card-label {
|
||||
position: relative;
|
||||
bottom: calc(-1 * var(--label-height / 2));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
height: var(--label-height);
|
||||
width: 100%;
|
||||
filter: grayscale(0%) brightness(100%);
|
||||
transform: translateY(0);
|
||||
transition: 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
|
||||
font-size: 32px;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
.card-wrapper:hover .card .card-image {
|
||||
filter: grayscale(0%) brightness(110%);
|
||||
transform: translateY(-30px);
|
||||
}
|
||||
|
||||
.card-wrapper:hover .card-label {
|
||||
transform: translateY(calc(-1 * var(--label-height)));
|
||||
}
|
||||
|
||||
.hidden {
|
||||
width: calc(100% / 10);
|
||||
}
|
||||
|
||||
.active .card-label {
|
||||
transform: translateY(0) !important;
|
||||
}
|
||||
|
||||
.active .card .card-image {
|
||||
filter: grayscale(0%) brightness(110%) !important;
|
||||
transform: translateY(0) !important;
|
||||
}
|
||||
|
||||
.content-container {
|
||||
display: block;
|
||||
position: relative;
|
||||
border: 1px solid #fff;
|
||||
max-width: 100%;
|
||||
height: calc(100dvh - (2 * var(--card-gap)));
|
||||
top: calc(-1 * (100dvh - (2 * var(--card-gap))) - var(--label-height));
|
||||
}
|
||||
|
||||
.content-wrapper {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
transition: 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
|
||||
}
|
||||
|
||||
.visible {
|
||||
display: block !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
Reference in New Issue
Block a user