Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Визитная карточка</title>

</head>
<body>
<main>
<section class="card">
<header>
<div class="photo-container">
<img src="avatar.jpg"
alt="Photo of me)" class="photo">
</div>
<h1>Matthew Gubnn</h1>
<h2>Frontend-beginner developer</h2>
</header>

<article>
<p class="description">
Creating simple one page sites for improving skills and completing hometask
</p>
</article>

<nav>
<ul>
<li><a href="https://github.com/matthew-guba" aria-label="GitHub">GitH</a></li>
<li><a href="https://linkedin.com" aria-label="LinkedIn">LI</a></li>
<li><a href="https://vk.com" aria-label="VK">VK</a></li>
<li><a href="https://t.me/MaThEwHu" aria-label="Telegram">Tg</a></li>
</ul>
</nav>
</section>
</main>

<footer>
<p>Matthew Gubnn. All rights are reserved))</p>
</footer>
</body>
</html>
173 changes: 173 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #333;
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 32px;
}

.card {
background-color: rgba(255, 255, 255, 0.95);
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
padding: 40px;
max-width: 500px;
width: 90%;
text-align: center;
transition: all 0.4s ease;
position: relative;
overflow: hidden;
}

.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background: linear-gradient(90deg, #cb66ea, #4d2c6e);
}

.card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

h1 {
font-size: 40px;
margin-bottom: 8px;
color: #333;
font-weight: 700;
}

h2 {
font-size: 20.8px;
color: #3554e0;
margin-bottom: 24px;
font-weight: 500;
}

.photo-container {
width: 150px;
height: 150px;
border-radius: 50%;
overflow: hidden;
margin: 0 auto 24px;
border: 4px solid #667eea;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.4s ease;
}

.photo-container:hover {
transform: scale(1.05);
}

.photo {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}

.photo-container:hover .photo {
transform: scale(1.1);
}
.photo-container:active .photo {
transform: scale(2.5);
}

.description {
font-size: 17.6px;
margin-bottom: 32px;
color: #555;
}

nav ul {
list-style: none;
display: flex;
justify-content: center;
gap: 24px;
}

nav li {
transition: transform 0.3s ease;
}

nav li:first-child {
transform-origin: left center;
}

nav li:last-child {
transform-origin: right center;
}

nav li:hover {
transform: scale(1.2);
}

nav a {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
background-color: #f5f5f5;
border-radius: 50%;
text-decoration: none;
font-size: 24px;
transition: all 0.3s ease;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

nav a:hover {
background-color: #667eea;
color: white;
transform: translateY(-5px);
}

nav a:active {
transform: translateY(0);
background-color: #542683;
}

nav a:focus {
outline: 2px solid #4d2b70;
outline-offset: 2px;
}

footer {
margin-top: 32px;
color: rgba(255, 255, 255, 0.8);
text-align: center;
font-size: 14.4px;
}
/* adaptive to mobile devices*/
@media (max-width: 600px) {
.card {
padding: 32px 24px;
}

h1 {
font-size: 32px;
}

h2 {
font-size: 17.6px;
}

nav ul {
gap: 16px;
}

nav a {
width: 45px;
height: 45px;
font-size: 20.8px;
}
}