diff --git a/assets/css/styles.css b/assets/css/styles.css index 582a7dd..5b9532b 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -21,6 +21,136 @@ font-size: 4rem; } +.navbar { + display: flex; + position: relative; + justify-content: space-between; + align-items: center; + background-color: #333; + color: white; +} + +.brand-title { + font-size: 1.5rem; + margin: 3rem; +} + +.navbar-links { + height: 100%; +} + +.navbar-links ul { + display: flex; + margin: 0; + padding: 0; +} + +.navbar-links li { + list-style: none; +} + +.navbar-links li a { + display: block; + text-decoration: none; + color: white; + padding: 1rem; +} + +.navbar-links li:hover { + background-color: #555; +} + +.toggle-button { + position: absolute; + top: .75rem; + right: 1rem; + display: none; + flex-direction: column; + justify-content: space-between; + width: 30px; + height: 21px; +} + +.toggle-button .bar { + height: 3px; + width: 100%; + background-color: white; + border-radius: 10px; +} + +@media (max-width: 800px) { + .navbar { + flex-direction: column; + align-items: flex-start; + } + + .toggle-button { + display: flex; + } + + .navbar-links { + display: none; + width: 100%; + } + + .navbar-links ul { + width: 100%; + flex-direction: column; + } + + .navbar-links ul li { + text-align: center; + } + + .navbar-links ul li a { + padding: .5rem 1rem; + } + + .navbar-links.active { + display: flex; + } +} + +.side-links { +position: absolute; +bottom: 15px; +right: 15px; +} + +.side-link { +display: flex; +align-items: center; +justify-content: center; +text-decoration: none; +margin-bottom: 10px; +color: white; +width: 180px; +padding: 10px 0; +border-radius: 10px; +} + +.side-link-youtube { +background-color: red; +} + +.side-link-twitter { +background-color: #1DA1F2; +} + +.side-link-github { +background-color: #6e5494; +} + +.side-link-text { +margin-left: 10px; +font-size: 18px; +} + +.side-link-icon { +color: white; +font-size: 30px; +} + .paragraph { background-color: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(50px); diff --git a/assets/js/app.js b/assets/js/app.js index 8b13789..5788a0a 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -1 +1,6 @@ +const toggleButton = document.getElementsByClassName('toggle-button')[0] +const navbarLinks = document.getElementsByClassName('navbar-links')[0] +toggleButton.addEventListener('click', () => { + navbarLinks.classList.toggle('active') +}) diff --git a/index.html b/index.html index 345319f..b3234c6 100644 --- a/index.html +++ b/index.html @@ -72,6 +72,21 @@ href="assets/img/CALCULATOR.png" alt="CALCULATOR" /> +