Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login Added in NavBar #212

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<li><a href="./pages/about.html">About</a></li>
<li><a href="./pages/contact.html">Contact</a></li>
<li><a href="./pages/badges.html">Badges</a></li>
<li><a href="./pages/login.html" class="login-button">Log In</a></li>
</ul>
</nav>
</div>
Expand Down
3 changes: 1 addition & 2 deletions login.html → pages/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@
</style>
</head>
<body>
lo
<div class="login-container">
<h2>Login</h2>
<form>
<input type="text" placeholder="Username" required>
<input type="password" placeholder="Password" required>
<button type="submit">Login</button>
<p>Don't have an account? <a href="sigin.html">Sign Up</a></p>
<p>Don't have an account? <a href="./sigin.html">Sign Up</a></p>
</form>
</div>

Expand Down
2 changes: 1 addition & 1 deletion sigin.html → pages/sigin.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h2>Create an Account</h2>
<input type="password" placeholder="Password" required>
<input type="password" placeholder="Confirm Password" required>
<button type="submit">Sign Up</button>
<p>Already have an account? <a href="#">Login</a></p>
<p>Already have an account? <a href="./login.html">Login</a></p>
</form>
</div>

Expand Down
19 changes: 19 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@ nav ul li a {
nav ul li a:hover {
color: #ff85a1; /* Change color on hover */
}
/* Style for the Log In button */
.nav-links ul li .login-button {
background-color: #0a97cf;
color: white;
padding: 10px 20px;
border-radius: 4px;
text-align: center;
display: inline-block;
text-decoration: none;
font-size: 16px;
font-weight: bold;
white-space: nowrap;
transition: background-color 0.3s ease;
}

.nav-links ul li .login-button:hover {
background-color: #0f3dd6;
}

/* General Styles */
* {
margin: 0;
Expand Down