Skip to content

Commit

Permalink
push responsive css to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Kan1shak committed Oct 7, 2023
1 parent 505654e commit ca8f1dd
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 12 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 32 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<script src="index.js" defer></script>
<title>Stark</title>
</head>
<body>
Expand Down Expand Up @@ -34,8 +35,35 @@
<div class="login-btn-container">
<div id="login-btn">LOGIN</div>
</div>
<div class="hamburger">
<div class="hamburger-line"></div>
<div class="hamburger-line"></div>
<div class="hamburger-line"></div>
</div>
</nav>

<section class="hamburger-menu">
<div class="hamburger-links">
<div class="nav-link-item">
<a href="#">Home</a>
</div>
<div class="nav-link-item">
<a href="#">Services</a>
</div>
<div class="nav-link-item">
<a href="#">Tasks</a>
</div>
<div class="nav-link-item">
<a href="#">FAQ</a>
</div>
<div class="nav-link-item">
<a href="#">Connect</a>
</div>
</div>
<div class="hamburger-login-btn-container">
<p>Already a user? <a href="">Login</a></p>
<div id="hamburger-login-btn">Get Started -></div>
</div>
</section>
<main class="hero">
<div class="hero-text">
<p class="hero-sub-text">INTRODUCING STARK</p>
Expand Down Expand Up @@ -146,6 +174,9 @@ <h2 class="features-card-heading">Monetize Your Talent</h2>
<section class="whystark">
<h2 id="why-heading">Why <span class="stark">Stark®?</span></h2>
<div class="why-holder">
<div class="why-image">
<img src="images/why.png" alt="Why Choose us?">
</div>
<div class="why-text">
<div class="why-text-item">
<div class="why-text-heading">
Expand Down Expand Up @@ -234,9 +265,6 @@ <h2 id="why-heading">Why <span class="stark">Stark®?</span></h2>
<p class="why-text-desc">Build your reputation and trust in the community.</p>
</div>
</div>
<div class="why-image">
<img src="images/why.png" alt="Why Choose us?">
</div>
</div>
</section>

Expand Down
23 changes: 23 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const hamburger = document.querySelector('.hamburger');
const hamburgerMenu = document.querySelector('.hamburger-menu');
const navbar = document.querySelector('.navbar');
hamburger.addEventListener('click', () =>{
hamburger.classList.toggle('active');
hamburgerMenu.classList.toggle('visible');
navbar.classList.toggle('menu')
})

const featureHeading = document.querySelector('.features-heading .emphasis');
console.log(featureHeading);
const mediaQuery = window.matchMedia('(max-width: 1024px)');
function handleTabletChange(e) {
if (e.matches) {
featureHeading.textContent = 'every thing';
}
else {
featureHeading.textContent = 'everything';
}
}

mediaQuery.addListener(handleTabletChange);
handleTabletChange(mediaQuery);
Loading

0 comments on commit ca8f1dd

Please sign in to comment.