From b38fe5f7152f5ef65091070b18601f301e1d0604 Mon Sep 17 00:00:00 2001 From: Notoric Date: Thu, 23 May 2024 21:12:26 +0100 Subject: [PATCH] Added aboutme --- index.html | 8 ++++- styles/global.css | 82 ++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 78 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index 1ca6448..e29495e 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,13 @@

Tom Cornes

I'm a Software Developer based in Leicestershire, England.

-
+
+
+ +
+
+

About Me

+

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.

diff --git a/styles/global.css b/styles/global.css index 316e798..5a11ea9 100644 --- a/styles/global.css +++ b/styles/global.css @@ -9,7 +9,8 @@ body { font-style: normal; font-size: 16px; width: 100vw; - overflow: hidden; + overflow-x: hidden; + overflow-y: scroll; } #nav-btn { @@ -20,18 +21,23 @@ body { background-color: black; margin: 0; overflow: hidden; - padding-inline: 16px; + padding-inline: 30px; font-size: 1.4em; display: flex; flex-direction: row; align-items: center; height: 60px; + position: sticky; + top: 0; + width: calc(100vw - 60px); + z-index: 10; } main { max-width: 1300px; margin: 0 auto; - padding-inline: 30px; + padding: 30px; + flex-direction: column; } em { @@ -57,7 +63,7 @@ em { } #links { - right: 0; + right: 20px; } #nav { @@ -152,6 +158,10 @@ em { padding: 50px; } +#homepage .card #homepage-text p { + z-index: 3; +} + #homepage-text { width: auto; text-align: right; @@ -183,6 +193,16 @@ em { border-radius: 50%; z-index: -1; filter: blur(14px); + animation: rotate 10s linear infinite; +} + +@keyframes rotate { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } } #homepage p { @@ -201,6 +221,47 @@ em { font-weight: 700; } +#aboutme { + border-radius: 60px; + background-image: repeating-conic-gradient( + #ff0050 0%, + #ff8000 33.333%, + #7520ff 66.666%, + #ff0050 100% + ); + margin-top: 100px !important; + padding-inline: 50px; + padding-block: 30px; + position: relative; + max-width: 800px; + margin: auto; + &::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; + } +} + +#aboutme h1 { + position: absolute; + top: -1.3em; + left: 70px; + background-color: #111; + padding-inline: 15px; + z-index: 2; +} + +#aboutme p { + position: relative; + z-index: 2; +} + @media screen and (max-width: 1100px) { #logo { @@ -210,7 +271,7 @@ em { #nav-btn { content: ""; display: block; - position: absolute; + position: fixed; top: 50px; right: 50px; z-index: 11; @@ -227,7 +288,7 @@ em { body::before { content: "[N]"; display: flex; - position: absolute; + position: fixed; top: 45px; left: 50px; font-size: 3em; @@ -246,9 +307,8 @@ em { height: 100vh; width: 100vw; justify-content: space-between; - position: absolute; - right: 100vw; - z-index: 10; + position: fixed; + right: -100vw; font-size: 3em; margin: 0; border: 0; @@ -259,7 +319,7 @@ em { } #navbar.expanded { - transform: translateX(100vw); + transform: translateX(-100vw); } #links, #nav { @@ -294,7 +354,7 @@ em { gap: 70px; width: fit-content; padding: 80px; - margin-top: 120px; + margin-top: 0; } .card::after {