Merge pull request #3 from meqativ/main

make buttons scale from center
This commit is contained in:
maggster165 2024-01-17 21:23:51 +01:00 committed by GitHub
commit 261a187f78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 73 additions and 66 deletions

View file

@ -19,8 +19,14 @@
<div class="top"> <div class="top">
<h1>Hi! I'm Maggie!</h1> <h1>Hi! I'm Maggie!</h1>
<p>Welcome to my website!</p> <p>Welcome to my website!</p>
<a href="https://discord.com/users/330299657458679821"><img class="logo" src="catpdiscord.png" width="32" title="maggie.pi"/></a> <div class="buttons">
<a href="https://github.com/maggster165"><img class="logo2" src="catpgh.png" title="maggster165" width="32"/></a> <a class="btn" href="https://discord.com/users/330299657458679821">
<img class="logo" src="catpdiscord.png" width="32" title="maggie.pi">
</a>
<a class="btn" href="https://github.com/maggster165">
<img class="logo2" src="catpgh.png" width="32" title="maggster165">
</a>
</div>
</div> </div>
<div class="aboutbox"> <div class="aboutbox">
<h3>About Me</h3> <h3>About Me</h3>

View file

@ -2,24 +2,21 @@ body{
background-color: #24273a; background-color: #24273a;
color: #cad3f5; color: #cad3f5;
font-family: 'Open Sans'; font-family: 'Open Sans';
} }
.top { .top {
display: inline-block; display: inline-block;
margin-left: 10rem; margin-left: 10rem;
} }
h1 { h1 {
margin-left: 1rem; margin-left: 1rem;
} }
.pfp { .pfp {
border-radius: 50%; border-radius: 50%;
padding: 1rem; padding: 1rem;
float: none; float: none;
transition: 0.3s; transition: 0.3s;
position: absolute position: absolute
} }
.pfp:hover { .pfp:hover {
scale: 125%; scale: 125%;
@ -31,34 +28,25 @@ p{
h3 { h3 {
margin-top: 4rem; margin-top: 4rem;
} }
.logo{ .logo,
top: rem; .logo2 {
margin-left: 1rem; width: 2rem;
float: left; float: left;
position: relative; position: relative;
transition: 0.3s; transition: 0.3s;
} }
.logo2{ .logo:hover,
margin-left: 2rem;
position: relative;
float: none;
transition: 0.3s;
}
.logo:hover{
background-color: #b7bdf8;
padding: 5px;
scale: 125%;
border-radius: 10px;
transition: 0.3s;
content: url(catpdiscordhover.png);
}
.logo2:hover { .logo2:hover {
background-color: #b7bdf8; background-color: #b7bdf8;
padding: 5px; padding: 5px;
scale: 125%; scale: 125%;
border-radius: 10px; border-radius: 10px;
transition: 0.3s; transition: 0.3s;
}
.logo:hover {
content: url(catpdiscordhover.png);
}
.logo2:hover {
content: url(catpghover.png); content: url(catpghover.png);
} }
h4 { h4 {
@ -73,3 +61,16 @@ a:link{
a:visited { a:visited {
color: #b7bdf8; color: #b7bdf8;
} }
.buttons {
margin-left: 1rem;
height: 4rem;
display:flex;
justify-content: flex-start;
align-items: center;
}
.buttons .btn {
width: 3rem;
display: flex;
justify-content: center;
}