diff --git a/static/main/css/index.css b/static/main/css/index.css index 6fcf601..92371d2 100644 --- a/static/main/css/index.css +++ b/static/main/css/index.css @@ -1,3 +1,10 @@ +:root { + --clr-purple: hsl(251, 91%, 63%); + --clr-blue: hsl(201, 85%, 55%); + --clr-dark-blue: hsl(201, 100%, 35%); + --clr-black: hsl(248, 16%, 10%); +} + #landing { display: flex; height: 100%; @@ -22,3 +29,61 @@ img { font-weight: 700; text-align: center; } + +.landing-icons { + display: flex; + justify-content: center; + text-align: center; + width: 20%; + margin: 3rem auto 0 auto; +} + +.social-link { + text-decoration: none; +} + +.social-link > i { + display: grid; + place-items: center; + color: var(--clr-secondary); + background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='%23EEF5FCFF' stroke-width='4' stroke-dasharray='24' stroke-dashoffset='8' stroke-linecap='square'/%3e%3c/svg%3e"); + border-radius: 100px; + margin: auto 0.5rem 1rem 0.5rem; + font-size: 2rem; + width: 3rem; + aspect-ratio: 1; +} + +.social-link:hover > i { + background-color: var(--clr-secondary); +} + +.email:hover > i { + color: var(--clr-purple); + border: 2px solid var(--clr-purple); + background-image: none; +} +.telegram:hover > i { + color: var(--clr-blue); + border: 2px solid var(--clr-blue); + background-image: none; +} +.linkedin:hover > i { + color: var(--clr-dark-blue); + border: 2px solid var(--clr-dark-blue); + background-image: none; +} +.github:hover > i { + color: var(--clr-black); + border: 2px solid var(--clr-black); + background-image: none; +} + +.social-link .label { + display: none; + color: var(--clr-secondary); +} + +.social-link:hover .label { + display: block; +} diff --git a/static/main/css/layout.css b/static/main/css/layout.css index 36f787d..80f244c 100644 --- a/static/main/css/layout.css +++ b/static/main/css/layout.css @@ -1,4 +1,5 @@ :root { + font-size: 16px; --clr-primary: hsl(216, 28%, 7%); --clr-primary-100: hsla(215, 21%, 11%, 0.9); --clr-primary-200: hsla(215, 21%, 11%, 0.5); @@ -68,6 +69,7 @@ body { .mobile-nav-toggle { display: none; + cursor: pointer; } .primary-navigation { diff --git a/static/main/js/navigation.js b/static/main/js/navigation.js index a1cbda8..ecdb11d 100644 --- a/static/main/js/navigation.js +++ b/static/main/js/navigation.js @@ -1,13 +1,13 @@ const PRIMARY_NAV = document.querySelector(".primary-navigation") -const NAV_TOGGLE = document.querySelector(".mobile-nav-toggle") +const EMAIL = document.querySelector(".mobile-nav-toggle") -NAV_TOGGLE.addEventListener("click", () => { - const visibility = PRIMARY_NAV.getAttribute("data-visible") === "false" - if (visibility) { +EMAIL.addEventListener("click", () => { + const VISIBILITY = PRIMARY_NAV.getAttribute("data-visible") === "false" + if (VISIBILITY) { PRIMARY_NAV.setAttribute("data-visible", true) - NAV_TOGGLE.setAttribute("aria-expanded", true) + EMAIL.setAttribute("aria-expanded", true) } else { PRIMARY_NAV.setAttribute("data-visible", false) - NAV_TOGGLE.setAttribute("aria-expanded", false) + EMAIL.setAttribute("aria-expanded", false) } }) diff --git a/static/main/js/typewriter.js b/static/main/js/typewriter.js index afc76ee..989ff98 100644 --- a/static/main/js/typewriter.js +++ b/static/main/js/typewriter.js @@ -34,6 +34,7 @@ typewriter = () => { if (i === PHRASES.length) { i = 0 } + TEXT_DISPLAY.innerHTML = " " // prevent element movement } } const TYPING_SPEED = Math.random() * 300 diff --git a/templates/main/index.html b/templates/main/index.html index 5f1a177..5ba8aee 100644 --- a/templates/main/index.html +++ b/templates/main/index.html @@ -5,6 +5,9 @@ + {% endblock %} {% block content %} @@ -17,7 +20,34 @@

I'm Kristofers Solo

-

+

 

+ +
+ + + E-Mail + + + + Telegram + + + + LinkedIn + + + + GitHub + +
{% endblock %}