Skip to content

Commit

Permalink
replaced the existing nav bar with an alternative method
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmaclaren committed Mar 6, 2024
1 parent a1a1063 commit 5dd522d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
1 change: 1 addition & 0 deletions static/styles/mainpage.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ body {

main {
background: #efe6d5;
padding: 2rem;
}

footer {
Expand Down
31 changes: 20 additions & 11 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,28 @@
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light" style="background-color: #9dbeb7">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<a class="navbar-brand" href="#">Curl</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-item nav-link active" href="/index">Home <span class="sr-only">(current)</span></a>
<a class="nav-item nav-link" href="/login">Login</a>
<a class="nav-item nav-link" href="/history">History</a>
<a class="nav-item nav-link" href="/training">Training</a>
<a class="nav-item nav-link" href="/aboutme">About Me</a>
<a class="nav-item nav-link disabled" href="#">Disabled</a>
</div>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/index">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/login">Login</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/history">History</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/training">Training</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/aboutme">About Me</a>
</li>
</ul>
</div>
</nav>
</header>
Expand Down
14 changes: 5 additions & 9 deletions templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@
{% block main %}
<form action="/login" method="post">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Check me out</label>
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
Expand Down

0 comments on commit 5dd522d

Please sign in to comment.