Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 176 additions & 0 deletions dist/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions dist/css/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/main.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap" rel="stylesheet">
<title>Bussines Card</title>
</head>
<body>
<header>
<div class="menu-btn">
<span class="menu-btn_burger">

</div>

<nav class="nav">
<ul class="menu-nav">
<li class="menu-nav_item">
<a href="#" class="menu-nav_link">
About Me
</a>
</li>
<li class="menu-nav_item">
<a href="#" class="menu-nav_link">
Skills
</a>
</li>
<li class="menu-nav_item">
<a href="#" class="menu-nav_link">
Portfolio
</a>
</li>
<li class="menu-nav_item">
<a href="#" class="menu-nav_link">
Contact Me
</a>
</li>
</ul>
</div>
</div>
</header>

<script src="js/main.js"></script>

</body>
</html>
27 changes: 27 additions & 0 deletions dist/js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const menuBtn = document.querySelector('.menu-btn');
const hamburger = document.querySelector('.menu-btn_burger');
const nav = document.querySelector('.nav');
const menuNav = document.querySelector('.menu-nav');
const navItems = document.querySelectorAll('.menu-nav_item');

let showMenu = false;

menuBtn.addEventListener('click', toggleMenu);

function toggleMenu() {
if(!showMenu) {
hamburger.classList.add('open');
nav.classList.add('open');
menuNav.classList.add('open');
navItems.forEach(item => item.classList.add('open'));

showMenu = true;
} else {
hamburger.classList.remove('open');
nav.classList.remove('open');
menuNav.classList.remove('open');
navItems.forEach(item => item.classList.remove('open'));

showMenu = false;
}
}
13 changes: 13 additions & 0 deletions dist/scss/_config.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$background-color: #e1e1e1;
$text-color: #515151;

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

@mixin transition-ease {
transition: all 0.25s ease-in-out;
}

Loading