|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en-US"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>Sidebar + Hamburger Extract</title> |
| 7 | + <!-- W3.css and Font Awesome used in your original page --> |
| 8 | + <link rel="stylesheet" href="https://www.w3schools.com/w3css/5/w3.css"> |
| 9 | + <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway"> |
| 10 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> |
| 11 | + <style> |
| 12 | + body, h1, h2, h3, h4, h5, h6 { font-family: "Raleway", sans-serif; } |
| 13 | + </style> |
| 14 | +</head> |
| 15 | +<body class="w3-light-grey w3-content" style="max-width:1600px"> |
| 16 | + |
| 17 | +<!-- Sidebar/menu --> |
| 18 | +<nav class="w3-sidebar w3-collapse w3-white w3-animate-left" style="z-index:3;width:300px;" id="mySidebar"><br> |
| 19 | + <div class="w3-container"> |
| 20 | + <!-- close button (visible only on small screens) --> |
| 21 | + <a href="#" onclick="w3_close()" class="w3-hide-large w3-right w3-jumbo w3-padding w3-hover-grey" title="close menu"> |
| 22 | + <i class="fa fa-remove"></i> |
| 23 | + </a> |
| 24 | + |
| 25 | + <img src="/Assests/logo.jpg" style="width:45%;" class="w3-round"><br><br> |
| 26 | + <h4><b>Welcome to FRCsource</b></h4> |
| 27 | + <p class="w3-text-grey">For all your scouting and programming needs</p> |
| 28 | + </div> |
| 29 | + |
| 30 | + <div class="w3-bar-block"> |
| 31 | + <a href="/index.html" onclick="w3_close()" class="w3-bar-item w3-button w3-padding w3-text-teal"><i class="fa fa-th-large fa-fw w3-margin-right"></i>Home</a> |
| 32 | + <a href="/index.html#about" onclick="w3_close()" class="w3-bar-item w3-button w3-padding"><i class="fa fa-user fa-fw w3-margin-right"></i>About</a> |
| 33 | + <a href="/Programming/Programming-Index.html" onclick="w3_close()" class="w3-bar-item w3-button w3-padding"><i class="fa fa-th-large fa-fw w3-margin-right"></i>Programming Index</a> |
| 34 | + <a href="/Scouting/Scouting-Index.html" onclick="w3_close()" class="w3-bar-item w3-button w3-padding"><i class="fa fa-user fa-fw w3-margin-right"></i>Scouting Index</a> |
| 35 | + <a href="/FRCsource/FRCsource-Index.html" onclick="w3_close()" class="w3-bar-item w3-button w3-padding"><i class="fa fa-envelope fa-fw w3-margin-right"></i>FRCsource Index</a> |
| 36 | + </div> |
| 37 | + |
| 38 | + <div class="w3-panel w3-large"> |
| 39 | + <i class="fa fa-github w3-hover-opacity"></i> |
| 40 | + </div> |
| 41 | +</nav> |
| 42 | + |
| 43 | +<!-- Overlay effect when opening sidebar on small screens --> |
| 44 | +<div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div> |
| 45 | + |
| 46 | +<!-- PAGE CONTENT --> |
| 47 | +<div class="w3-main" style="margin-left:300px"> |
| 48 | + |
| 49 | + <!-- Header with hamburger (shown only on small screens) --> |
| 50 | + <header id="portfolio"> |
| 51 | + <a href="/index.html"><img src="/Assests/logo.jpg" style="width:65px;" class="w3-circle w3-right w3-margin w3-hide-large w3-hover-opacity"></a> |
| 52 | + <!-- Hamburger button: visible on small screens because of w3-hide-large --> |
| 53 | + <span class="w3-button w3-hide-large w3-xxlarge w3-hover-text-grey" onclick="w3_open()"><i class="fa fa-bars"></i></span> |
| 54 | + |
| 55 | + <div class="w3-container"> |
| 56 | + <h1><b>Welcome to FRCsource</b></h1> |
| 57 | + </div> |
| 58 | + </header> |
| 59 | + |
| 60 | + <!-- Example main content placeholder --> |
| 61 | + <div class="w3-container w3-padding-large" style="margin-bottom:32px"> |
| 62 | + <h4><b>Page content goes here</b></h4> |
| 63 | + <p>This file contains only the sidebar + hamburger/open-close behavior extracted from your original page.</p> |
| 64 | + </div> |
| 65 | + |
| 66 | +</div> |
| 67 | + |
| 68 | +<script> |
| 69 | +// Small JS helper to open/close the sidebar and overlay on small screens |
| 70 | +function w3_open() { |
| 71 | + document.getElementById("mySidebar").style.display = "block"; |
| 72 | + document.getElementById("myOverlay").style.display = "block"; |
| 73 | +} |
| 74 | +function w3_close() { |
| 75 | + document.getElementById("mySidebar").style.display = "none"; |
| 76 | + document.getElementById("myOverlay").style.display = "none"; |
| 77 | +} |
| 78 | +</script> |
| 79 | + |
| 80 | +</body> |
| 81 | +</html> |
0 commit comments