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

made the nav bar #166

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
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
/>
</head>
<body>
<nav class="navbar">
<div class="navbar-container">
<h1 class="navbar-title">My Todo List</h1>
<ul class="navbar-links">
<li><a href="#add-todo">Add Task</a></li>
<li><a href="#sort-todos">Sort Tasks</a></li>
<li><a href="#completed-tasks">Completed</a></li>
<li><a href="#about">About</a></li>
</ul>
</div>
</nav>
<div class="container">
<h1 class="subtitle">Todo-List</h1>

Expand Down
42 changes: 42 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,50 @@ h1 {
.js-delete-button img,
.js-edit-button img {
margin-right: 5px;
}.navbar {
background-color: rgba(30, 30, 30, 0.8);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}

.navbar-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
}

.navbar-title {
color: #f6ac62;
font-family: 'Londrina Outline', cursive;
font-size: 2rem;
}

.navbar-links {
list-style: none;
display: flex;
gap: 15px;
}

.navbar-links li {
display: inline;
}

.navbar-links a {
color: #f6ac62;
text-decoration: none;
padding: 8px 12px;
border-radius: 5px;
transition: background-color 0.3s;
}

.navbar-links a:hover {
background-color: 255, 215, 0, 0.8;
color: white;
}
/* Footer Styling */
footer {
background-color: transparent;
Expand Down
Loading