Skip to content

Commit a800cff

Browse files
authored
Merge pull request #83 from TeekshaHarish/navbar
Adding navbar
2 parents b33cc73 + a667af9 commit a800cff

File tree

2 files changed

+26
-11
lines changed

2 files changed

+26
-11
lines changed

index.html

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,34 @@
88
<link rel="icon" type="image/x-icon" href="assets/ico/favicon.ico" />
99
<script async defer src="https://buttons.github.io/buttons.js"></script>
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
11-
11+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
12+
1213
</head>
1314

1415
<body>
15-
<header>
16-
<div class="github-button-container">
17-
<div class="sign-in">
18-
<span id="g_id_onload" data-callback="handleCredentialResponse" data-auto_prompt="false"></span>
19-
<span class="g_id_signin" id="g_id_signin" data-type="standard" data-size="medium" data-theme="filled_black" data-text="sign_in_with" data-shape="square" data-logo_alignment="left"></span>
20-
<button onclick="signOut()" id="g_id_signout" style="display: none">Sign Out</button>
16+
<nav class="navbar navbar-expand-lg bg-dark border-bottom border-body w-100 mb-5" data-bs-theme="dark">
17+
<div class="container-fluid px-3">
18+
<a class="navbar-brand" href="#">Drawing Board</a>
19+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
20+
<span class="navbar-toggler-icon"></span>
21+
</button>
22+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
23+
<ul class="navbar-nav me-auto mb-2 mb-lg-0 d-flex w-100 justify-content-end gap-5 pr-4">
24+
<li class="nav-item">
25+
<div class="sign-in">
26+
<span id="g_id_onload" data-callback="handleCredentialResponse" data-auto_prompt="false"></span>
27+
<span class="g_id_signin" id="g_id_signin" data-type="standard" data-size="medium" data-theme="filled_black" data-text="sign_in_with" data-shape="square" data-logo_alignment="left"></span>
28+
<button onclick="signOut()" id="g_id_signout" style="display: none">Sign Out</button>
29+
</div>
30+
</li>
31+
<li class="nav-item">
32+
<span id="g_id_user" style="display: none"></span>
33+
<a class="github-button" href="https://github.com/DhanushNehru/board" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star DhanushNehru/board on GitHub">Star</a>
34+
</li>
35+
</ul>
2136
</div>
22-
<span id="g_id_user" style="display: none"></span>
23-
<a class="github-button" href="https://github.com/DhanushNehru/board" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star DhanushNehru/board on GitHub">Star</a>
2437
</div>
25-
</header>
38+
</nav>
2639

2740
<main>
2841
<section class="drawing-controls">
@@ -99,5 +112,7 @@
99112
scriptElement.defer = true;
100113
document.body.appendChild(scriptElement);
101114
</script>
115+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
116+
102117
</body>
103118
</html>

styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ body {
2323
flex-direction: column;
2424
align-items: center;
2525
justify-content: flex-start;
26-
padding: 20px;
26+
/* padding: 20px; */
2727
min-height: 100vh;
2828
}
2929

0 commit comments

Comments
 (0)