Compare commits
2 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
576eaa9ed5 | |
|
|
09efa92792 |
100
css/style.css
100
css/style.css
|
|
@ -17,36 +17,40 @@ body {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
/* min-height: 140vh; */
|
||||
flex-direction: column;
|
||||
color: #333333;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
font-family: ProblematicPiercer;
|
||||
cursor: default;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
div.row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 1000px;
|
||||
width: 100%;
|
||||
max-width: 1000px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
div.photo {
|
||||
border-radius: 300px;
|
||||
border-radius: 50%;
|
||||
box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
|
||||
background-image: url(../images/favicon.jpg);
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
background-size: contain;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
margin-right: 80px;
|
||||
}
|
||||
|
||||
div.info {
|
||||
display: flex;
|
||||
width: 620px;
|
||||
width: 100%;
|
||||
max-width: 620px;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
|
|
@ -63,11 +67,18 @@ div.bio {
|
|||
text-align: justify;
|
||||
}
|
||||
|
||||
div.icons {
|
||||
min-height: 400px;
|
||||
}
|
||||
|
||||
div.social {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 100px;
|
||||
width: 960px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr); /* 5 столбцов для десктопа */
|
||||
gap: 60px;
|
||||
justify-items: center;
|
||||
margin-top: 50px;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
.social div {
|
||||
|
|
@ -93,11 +104,9 @@ div.social {
|
|||
.github { background-image: url(../images/social/github.png); }
|
||||
.telegram { background-image: url(../images/social/telegram.png); }
|
||||
.solus { background-image: url(../images/social/linux.png); }
|
||||
.blog { background-image: url(../images/social/blog.png); }
|
||||
.ftp { background-image: url(../images/social/ftp.png); }
|
||||
.band { background-image: url(../images/social/band.png); }
|
||||
.soundcloud { background-image: url(../images/social/soundcloud.png); }
|
||||
.email { background-image: url(../images/social/email.png); }
|
||||
.matrix { background-image: url(../images/social/matrix.png); }
|
||||
.gallery { background-image: url(../images/social/gallery.png); }
|
||||
|
||||
|
|
@ -116,7 +125,7 @@ div.social {
|
|||
padding: 5px 0;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 110%;
|
||||
top: 100%;
|
||||
opacity: 0;
|
||||
transition: opacity 1s;
|
||||
font-family: Whypo-rrey;
|
||||
|
|
@ -126,3 +135,68 @@ div.social {
|
|||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Медиа-запросы для мобильных устройств */
|
||||
@media screen and (max-width: 768px) {
|
||||
body {
|
||||
padding: 10px;
|
||||
/* min-height: 170vh; */
|
||||
}
|
||||
|
||||
div.row {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
div.photo {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
margin-right: 0;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
div.info {
|
||||
max-width: 100%;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
div.title {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
div.bio {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
div.icons {
|
||||
min-height: 150%;
|
||||
}
|
||||
|
||||
div.social {
|
||||
grid-template-columns: repeat(3, 1fr); /* 3 столбца для мобильных */
|
||||
gap: 60px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.social div {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background-size: 80px auto;
|
||||
}
|
||||
|
||||
.social div:hover {
|
||||
background-position: -40px 0;
|
||||
}
|
||||
|
||||
.tooltip .tooltiptext {
|
||||
width: 100px;
|
||||
margin-left: -50px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
div.social {
|
||||
grid-template-columns: repeat(2, 1fr); /* 2 столбца для очень маленьких экранов */
|
||||
}
|
||||
}
|
||||
35
index.html
35
index.html
|
|
@ -2,6 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Alexander Zhirov</title>
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
<link href="css/jquery-ui.css" rel="stylesheet">
|
||||
|
|
@ -23,23 +24,23 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row social">
|
||||
<div class="tooltip mastodon"><span class="tooltiptext">Mastodon</span></div>
|
||||
<div class="tooltip twitter"><span class="tooltiptext">Twitter</span></div>
|
||||
<div class="tooltip linkedin"><span class="tooltiptext">LinkedIn</span></div>
|
||||
<div class="tooltip facebook"><span class="tooltiptext">Facebook</span></div>
|
||||
<div class="tooltip instagram"><span class="tooltiptext">Instagram</span></div>
|
||||
<div class="tooltip matrix"><span class="tooltiptext">Matrix</span></div>
|
||||
<div class="tooltip telegram"><span class="tooltiptext">Telegram</span></div>
|
||||
<div class="tooltip git"><span class="tooltiptext">Git</span></div>
|
||||
<div class="tooltip github"><span class="tooltiptext">GitHub</span></div>
|
||||
<div class="tooltip solus"><span class="tooltiptext">Solus Linux</span></div>
|
||||
<!-- <div class="tooltip blog"><span class="tooltiptext">Blog</span></div> -->
|
||||
<div class="tooltip ftp"><span class="tooltiptext">FTP</span></div>
|
||||
<div class="tooltip band"><span class="tooltiptext">Band</span></div>
|
||||
<div class="tooltip soundcloud"><span class="tooltiptext">Soundcloud</span></div>
|
||||
<!-- <div class="tooltip email"><span class="tooltiptext">Email</span></div> -->
|
||||
<div class="tooltip gallery"><span class="tooltiptext">Gallery</span></div>
|
||||
<div class="icons">
|
||||
<div class="row social">
|
||||
<div class="tooltip mastodon"><span class="tooltiptext">Mastodon</span></div>
|
||||
<div class="tooltip twitter"><span class="tooltiptext">Twitter</span></div>
|
||||
<div class="tooltip linkedin"><span class="tooltiptext">LinkedIn</span></div>
|
||||
<div class="tooltip facebook"><span class="tooltiptext">Facebook</span></div>
|
||||
<div class="tooltip instagram"><span class="tooltiptext">Instagram</span></div>
|
||||
<div class="tooltip matrix"><span class="tooltiptext">Matrix</span></div>
|
||||
<div class="tooltip telegram"><span class="tooltiptext">Telegram</span></div>
|
||||
<div class="tooltip git"><span class="tooltiptext">Git</span></div>
|
||||
<div class="tooltip github"><span class="tooltiptext">GitHub</span></div>
|
||||
<div class="tooltip solus"><span class="tooltiptext">Solus Linux</span></div>
|
||||
<div class="tooltip ftp"><span class="tooltiptext">FTP</span></div>
|
||||
<div class="tooltip band"><span class="tooltiptext">Band</span></div>
|
||||
<div class="tooltip soundcloud"><span class="tooltiptext">Soundcloud</span></div>
|
||||
<div class="tooltip gallery"><span class="tooltiptext">Gallery</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue