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

Update navbar (Alignment and color combination) #72

Merged
merged 1 commit into from
Oct 7, 2022
Merged
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
14 changes: 10 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@
<body>
<nav id="navbar">
<ul class="menu">
<li class="logo"><img src="Countdown.png" alt="" height="80px" width="80px" style="border-radius: 50px;"></li>
<div>
<li class="logo"><img src="Countdown.png" alt="Logo" height="80px" width="80px" style="border-radius: 50px;"></li>
</div>
<div class="links">
<li class="item"><a href="#">Home</a></li>
<li class="item"><a href="#">About</a></li>
<li class="item has-submenu">
Expand All @@ -108,16 +111,19 @@
</li>
<li class="item"><a href="#">Blog</a></li>
<li class="item"><a href="#">Contact</a></li>
<li class="item button"><a href="#">Log In</a></li>
<li class="item d-flex my-2">
<input type="search" placeholder="search" id="form1" class="form-control" />
<li class="item button button1"><a href="#">Log In</a></li>
</div>
<div>
<li class="item searched d-flex my-2">
<input type="search" placeholder="Search" id="form1" class="form-control" />
<button type="button" class="btn btn-primary mx-1">
<i class="fas fa-search"></i>
</button>
</li>
<li class="toggle">
<a href="#"><i class="fas fa-bars"></i></a>
</li>
</div>
</ul>
</nav>
<div class="carousel">
Expand Down
100 changes: 59 additions & 41 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;ind
padding: 0;
font-family: "Roboto", sans-serif;
}

Expand All @@ -22,51 +22,72 @@ body {
}

nav {
width: 100%;
background: #222;
background-image: linear-gradient(
90deg,
#0c79ed 20%,
#13547a 50%,
#049ea6 70%,
#09c19c 75%,
#0afcac 80%
);
padding: 0 15px;
padding: 0 15px;
}
a {
color: #ed0b0b;
background-image: linear-gradient(to right, #8360c3, #2ebf91);
height: 15vh;
}
.menu a{
color: white;
font-size: 20px;
font-weight: 500;
cursor: pointer;
}
.menu a:hover{
color: black;
font-size: 22px;
text-decoration: none;
}

.has-submenu {
z-index: 100;
}
.menu,
.submenu {
list-style-type: none;
}
.submenu-title {
cursor: pointer;
color: #fff4f4;
.menu{
padding-top: 5px;
padding-bottom: 5px;
}
.logo {
font-size: 20px;
padding: 7.5px 10px 7.5px 0;
.menu .logo{
margin-right: 80px;
}
/* .submenu-title {
cursor: pointer;
} */

.item {
padding: 10px;
}
.item.button {
.button1{
height: 20px;
margin-left: 30px;
margin-right: -12px;
}
.button1 a{
color: black;
padding: 9px 5px;
border-radius: 8px;
}
.item:not(.button) a:hover,
.item a:hover::after {
color: #ccc;
color: #ed0cb5;
text-shadow: 0 0 5px #ed0cb5, 0 0 10px #ed0cb5, 0 0 15px #ed0cb5,
0 0 20px #ed0cb5, 0 0 25px #0073e6, 0 0 30px #0073e6, 0 0 35px #0073e6;
.button1 a:hover{
color: white;
font-size: 20px;
}
.links{
/* margin: 0 3px 0 30px; */
display: flex;
justify-content: space-between;
}
.searched{
left: 20px;
}
.menu input{
border-radius: 8px;
border: 1px black solid;
}


/* Mobile menu */
.menu {
display: flex;
Expand All @@ -78,9 +99,7 @@ a {
display: block;
padding: 15px 5px;
}
.menu li.subitem a {
padding: 15px;
}

.toggle {
order: 1;
font-size: 20px;
Expand Down Expand Up @@ -119,13 +138,8 @@ a {
font-weight: 900;
content: "\f078";
color: white;
padding-left: 5px;
}
.subitem a {
padding: 10px 15px;
}
.submenu-active {
background-color: #111;
border-radius: 3px;
}

Expand All @@ -149,7 +163,7 @@ a {
}
/* Button up from tablet screen */
.menu li.button a {
padding: 10px 15px;
padding: 7px 10px;
margin: 5px 0;
}
.button a {
Expand All @@ -166,10 +180,6 @@ a {
.button a:hover {
text-decoration: none;
}
.button:not(.secondary) a:hover {
background: royalblue;
border-color: darkblue;
}
}

/* Desktop menu */
Expand All @@ -196,7 +206,15 @@ a {
position: absolute;
left: 0;
top: 68px;
background: #111;
width: auto;
}

.subitem a{
color: white;
background-image: linear-gradient(to right, #8360c3, #2ebf91);;
text-align: center;
margin-bottom: 0;
font-size: 20px;
}
.toggle {
display: none;
Expand Down