Skip to content

Commit

Permalink
create nav-menu.html for #10
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jan 31, 2020
1 parent c93886b commit 0f64d95
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions nav-menu.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>Image Placeholder Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/css/tachyons.min.css">
<link rel="shortcut icon" type="image/png" href="http://www.dwyl.io/img/favicon.ico"/>
</head>
<body class="debug-grid helvetica debug">
<h1 class="tc"> CSS Burger Menu Navigation </h1>



<!-- ignore this, it's just for debugging -->
<footer class="fixed bottom-1 ba b--gray ph2 ml3 w-40 bg-dark-gray white">
<p>Resize browser window to fire <code class="green">resize</code> event.</p>
<p>Window height: <strong class="green" id="height"></strong> px</p>
<p>Window width: <strong class="green" id="width"></strong> px</p>
<script>
(function(){
const heightOutput = document.querySelector('#height');
const widthOutput = document.querySelector('#width');
function reportWindowSize() {
heightOutput.textContent = window.innerHeight;
widthOutput.textContent = window.innerWidth;
}
window.onresize = reportWindowSize;
reportWindowSize(); // init
})();
</script>
</footer>
<!-- debug grid for learning CSS positioning! http://tachyons.io/xray -->
<link rel="stylesheet"
href="https://unpkg.com/[email protected]/css/tachyons-debug-grid.min.css" />
</body>
</html>

0 comments on commit 0f64d95

Please sign in to comment.