User icon added to navigation bar
This commit is contained in:
@@ -15,6 +15,4 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.league-container {
|
|
||||||
display: inline-block; /* Change display property to inline-block to prevent stretching */
|
|
||||||
}
|
|
||||||
|
|||||||
BIN
ProjectSourceCode/src/resources/img/navigation-bar/user.png
Normal file
BIN
ProjectSourceCode/src/resources/img/navigation-bar/user.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
@@ -1,12 +1,11 @@
|
|||||||
<nav class="navbar navbar-expand-lg navbar-dark" id="navigation-bar-container">
|
<nav class="navbar navbar-expand-lg navbar-dark" id="navigation-bar-container">
|
||||||
|
|
||||||
<div class="container-fluid"> <!-- Added container-fluid for full-width -->
|
<div class="container-fluid d-flex justify-content-between align-items-center"> <!-- Added container-fluid for full-width -->
|
||||||
|
|
||||||
<div class="d-flex align-items-center"> <!-- Added d-flex and align-items-center -->
|
<div> <!-- Wrapped navbar brand and toggler in a div -->
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation" style="margin-right: 20px;">
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation" style="margin-right: 20px;">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a class="navbar-brand" href="#">ScoreSpot</a>
|
<a class="navbar-brand" href="#">ScoreSpot</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -40,5 +39,18 @@
|
|||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Right-aligned image outside collapsing area -->
|
||||||
|
<div id="user" class="d-sm-flex">
|
||||||
|
<img src="img/navigation-bar/user.png" alt="Your Image" class="img-fluid" style="width: 30px;">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/* CSS to hide the user icon when navbar toggler is expanded */
|
||||||
|
.navbar-toggler:(.collapsed) + .collapse #user {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user