Compare commits

..

2 Commits

Author SHA1 Message Date
Notoric 793d45647e Added coloured border to about me 2024-05-23 21:35:40 +01:00
Notoric b38fe5f715 Added aboutme 2024-05-23 21:12:26 +01:00
2 changed files with 96 additions and 12 deletions

View File

@ -32,7 +32,13 @@
<p id="name">Tom Cornes</p> <p id="name">Tom Cornes</p>
<p id="desc">I'm a <em>Software Developer</em> based in <em>Leicestershire, England.</em></p> <p id="desc">I'm a <em>Software Developer</em> based in <em>Leicestershire, England.</em></p>
</div> </div>
<div id="homepage-img"> <div id="homepage-img"></div>
</div>
</div>
<div id="aboutme">
<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>
</div> </div>
</div> </div>
</main> </main>

View File

@ -9,7 +9,8 @@ body {
font-style: normal; font-style: normal;
font-size: 16px; font-size: 16px;
width: 100vw; width: 100vw;
overflow: hidden; overflow-x: hidden;
overflow-y: scroll;
} }
#nav-btn { #nav-btn {
@ -20,18 +21,23 @@ body {
background-color: black; background-color: black;
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
padding-inline: 16px; padding-inline: 30px;
font-size: 1.4em; font-size: 1.4em;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
height: 60px; height: 60px;
position: sticky;
top: 0;
width: calc(100vw - 60px);
z-index: 10;
} }
main { main {
max-width: 1300px; max-width: 1300px;
margin: 0 auto; margin: 0 auto;
padding-inline: 30px; padding: 30px;
flex-direction: column;
} }
em { em {
@ -57,7 +63,7 @@ em {
} }
#links { #links {
right: 0; right: 20px;
} }
#nav { #nav {
@ -152,6 +158,10 @@ em {
padding: 50px; padding: 50px;
} }
#homepage .card #homepage-text p {
z-index: 3;
}
#homepage-text { #homepage-text {
width: auto; width: auto;
text-align: right; text-align: right;
@ -183,6 +193,16 @@ em {
border-radius: 50%; border-radius: 50%;
z-index: -1; z-index: -1;
filter: blur(14px); filter: blur(14px);
animation: rotate 10s linear infinite;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
} }
#homepage p { #homepage p {
@ -201,6 +221,65 @@ em {
font-weight: 700; font-weight: 700;
} }
#box-with-title {
border-radius: 60px;
margin-top: 100px !important;
padding-inline: 50px;
padding-block: 30px;
position: relative;
max-width: 800px;
margin: auto;
overflow: hidden;
&::after {
content: "";
position: absolute;
top: 4px;
left: 4px;
height: calc(100% - 8px);
width: calc(100% - 8px);
z-index: 1;
border-radius: 57px;
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 {
background-color: #111;
padding-inline: 15px;
position: absolute;
top: -40px;
left: 70px;
z-index: 2;
}
#box-with-title p {
position: relative;
z-index: 2;
}
@media screen and (max-width: 1100px) { @media screen and (max-width: 1100px) {
#logo { #logo {
@ -210,7 +289,7 @@ em {
#nav-btn { #nav-btn {
content: ""; content: "";
display: block; display: block;
position: absolute; position: fixed;
top: 50px; top: 50px;
right: 50px; right: 50px;
z-index: 11; z-index: 11;
@ -227,7 +306,7 @@ em {
body::before { body::before {
content: "[N]"; content: "[N]";
display: flex; display: flex;
position: absolute; position: fixed;
top: 45px; top: 45px;
left: 50px; left: 50px;
font-size: 3em; font-size: 3em;
@ -246,9 +325,8 @@ em {
height: 100vh; height: 100vh;
width: 100vw; width: 100vw;
justify-content: space-between; justify-content: space-between;
position: absolute; position: fixed;
right: 100vw; right: -100vw;
z-index: 10;
font-size: 3em; font-size: 3em;
margin: 0; margin: 0;
border: 0; border: 0;
@ -259,7 +337,7 @@ em {
} }
#navbar.expanded { #navbar.expanded {
transform: translateX(100vw); transform: translateX(-100vw);
} }
#links, #nav { #links, #nav {
@ -294,7 +372,7 @@ em {
gap: 70px; gap: 70px;
width: fit-content; width: fit-content;
padding: 80px; padding: 80px;
margin-top: 120px; margin-top: 0;
} }
.card::after { .card::after {