linkfree-themes
Version:
CSS themes for a free and open source alternative to LinkTree
98 lines (87 loc) • 1.76 kB
CSS
body {
background: linear-gradient(99.79deg, #0d0941 0.24%, #642a85 100.04%);
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
}
a {
text-decoration: none;
}
#userName {
font-size: 2rem;
color: white;
font-weight: bold;
text-shadow: 0px 0px 10px purple;
transition: all 0.5s;
}
#userName:hover {
color: rgb(46, 3, 46);
text-shadow: 0px 0px 10px white;
}
p {
display: flex;
gap: 0.2em;
align-items: center;
justify-content: center;
font-size: 1.8rem;
text-decoration: none;
padding: 0.5em 3em;
border-radius: 30px;
background: linear-gradient(180deg, #520a80 0%, #160c31 100%);
font-weight: bold;
transform: perspective(1px) translateZ(0);
color: white;
text-shadow: 0 1px 0 #ff0e7e;
transition: all 0.4s;
text-align: center;
}
#userPhoto {
width: 7em;
height: 7em;
object-fit: cover;
border-radius: 50%;
margin: 3px auto 6px;
display: flex;
justify-content: center;
align-items: center;
}
#links {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 0.5em;
}
.link::before {
content: "";
position: absolute;
z-index: -1;
inset: 0;
}
.link {
display: flex;
gap: 0.2em;
align-items: center;
justify-content: center;
font-size: 1.8rem;
text-decoration: none;
padding: 0.5em 3em;
border-radius: 30px;
background: linear-gradient(180deg, #520a80 0%, #160c31 100%);
font-weight: bold;
transform: perspective(1px) translateZ(0);
color: white;
text-shadow: 0 1px 0 #ff0e7e;
transition: all 0.4s;
}
.link::before {
background: #0d0941;
clip-path: inset(0 0 0 100%);
opacity: 1;
transition: 0.4s;
border-radius: 30px;
}
.link:hover::before {
clip-path: inset(0 0 0 0);
}