Added coloured border to about me

This commit is contained in:
Notoric 2024-05-23 21:35:40 +01:00
parent b38fe5f715
commit 793d45647e
2 changed files with 31 additions and 13 deletions

View File

@ -36,8 +36,8 @@
</div> </div>
</div> </div>
<div id="aboutme"> <div id="aboutme">
<div class="box-with-title">
<h1>About Me</h1> <h1>About Me</h1>
<div id="box-with-title">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div> </div>
</div> </div>

View File

@ -221,20 +221,15 @@ em {
font-weight: 700; font-weight: 700;
} }
#aboutme { #box-with-title {
border-radius: 60px; border-radius: 60px;
background-image: repeating-conic-gradient(
#ff0050 0%,
#ff8000 33.333%,
#7520ff 66.666%,
#ff0050 100%
);
margin-top: 100px !important; margin-top: 100px !important;
padding-inline: 50px; padding-inline: 50px;
padding-block: 30px; padding-block: 30px;
position: relative; position: relative;
max-width: 800px; max-width: 800px;
margin: auto; margin: auto;
overflow: hidden;
&::after { &::after {
content: ""; content: "";
position: absolute; position: absolute;
@ -246,18 +241,41 @@ em {
border-radius: 57px; border-radius: 57px;
background-color: #111; background-color: #111;
} }
&::before {
content: "";
position: absolute;
top: calc(50% - 55vw);
left: calc(50% - 55vw);
height: 110vw;
width: 110vw;
z-index: 0;
background-image: repeating-conic-gradient(
#ff0050 0%,
#ff8000 33.333%,
#7520ff 66.666%,
#ff0050 100%
);
animation: rotate 10s linear infinite;
}
}
#aboutme {
width: fit-content;
height: fit-content;
margin: auto;
position: relative;
} }
#aboutme h1 { #aboutme h1 {
position: absolute;
top: -1.3em;
left: 70px;
background-color: #111; background-color: #111;
padding-inline: 15px; padding-inline: 15px;
position: absolute;
top: -40px;
left: 70px;
z-index: 2; z-index: 2;
} }
#aboutme p { #box-with-title p {
position: relative; position: relative;
z-index: 2; z-index: 2;
} }