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

Resolved issue #6 navbar added and improper alignment of the sections resolved #66

Closed
wants to merge 3 commits into from
Closed
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
95 changes: 87 additions & 8 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ label.logo img{
margin-top:-5px;
border-radius: 450px;
}

nav ul{
float: right;
margin-right: 20px;
Expand All @@ -56,9 +57,8 @@ nav ul li{
}

nav ul li a {
color: rgb(252, 250, 250);
font-size: 15px;
padding: 10px 10px 10px 28px;
color: black;
padding: 5px 5px 5px 30px;
border-radius: 3px;
padding-right: 50px;
text-transform: uppercase;
Expand Down Expand Up @@ -160,7 +160,6 @@ nav ul li a:hover{
text-decoration: none;
}
.navbar nav ul li a{
font-size: 20px;
text-decoration: none;
}

Expand Down Expand Up @@ -506,8 +505,25 @@ body {
cursor:url('/CURSOR1.png'), auto;
}

html,
body {
.ubuntu-regular {
font-family: "Ubuntu", sans-serif;
font-weight: 400;
font-style: normal;
}

*{
font-family: 'Ubuntu';
font-weight: 400;
}

body
{
background: #ffffff;
font-family: 'Rajdhani', sans-serif;
font-weight: 400;
}

html,body {
width: 100%;
overflow-x: hidden;

Expand Down Expand Up @@ -621,6 +637,71 @@ strong {
.col-md-4:hover{
transform:scale(1.05);
}
nav {
background-color: #FFDD55;
color: #000000;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
width: 100%;
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
}
li {
margin-right: 20px;
}
a {
color: #000000;
text-decoration: none;
transition: color 0.3s ease;
font-size: 20px;
font-weight: bolder;
}

a:hover {
text-decoration: none;
color: #f1c11a;;
}

.logo {
font-weight: bold;
color: #FFDD55;
background-color: #FFDD55;
margin-left: 0px;
}


.logo {
display: inline-block;
width: 200px;
height: 80px;
overflow: hidden;
}
.logo img {
width: 100%;
height: 100%;
object-fit: cover;

}

@media (max-width: 768px) {
.logo {
width: 120px;
height: 50px;
}
}


#about,
#services,
Expand Down Expand Up @@ -1512,7 +1593,6 @@ h3{
color: black;
}


.popup{
position:absolute;
display: block;
Expand All @@ -1532,7 +1612,6 @@ h3{
transition: top 0ms ease-in-out 200ms,
opacity 200ms ease-in-out 0ms,
transform 200ms ease-in-out 0ms;

}

.popup-active{
Expand Down
25 changes: 9 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,20 @@

<body>

<!--navbar-->
<div class="navbar">
<div class="container">
<nav>
<input type="checkbox" id="check">
<label for="check" class="checkbut">
<i class="fas fa-bars"></i>
</label>
<label class="logo" style="margin-left:5px;"><img src="images/fav.png" alt="logo">
<span class="logo-text" style="margin-left: 0;">Open Source Village</span>
</label>
<span class="logo"><img src="fav.png" alt="logo png"></span>
<ul>
<li><i class="fa-solid fa-house" style="filter:invert(1)"></i><a class="active" href="#home">Home</a></li>
<li><i class="fa-solid fa-circle-info" style="filter:invert(1)"></i><a href="#about">About</a></li>
<li><i class="fa-solid fa-list" style="filter:invert(1)"></i><a href="#services">Services</a></li>
<li><i class="fa-solid fa-user"style="filter:invert(1)"></i><a href="#testimonials">Reviews</a></li>
<li><i class="fa-solid fa-at" style="filter:invert(1)"></i><a href="#contact">Contact Us</a></li>
<li><i class="fa-solid fa-message" style="filter:invert(1)"></i><a href="#feedback">Feedback</a></li>

<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#faqq">FAQ</a></li>
</ul>
</nav>

</div>


<div class="popup" id="popup">
<div class="close-btn" onclick="closepop()">&times;</div>
Expand Down Expand Up @@ -277,6 +269,7 @@ <h4>Emily Johnson</h4>
</section>

<section class="faqq">


<div class="containerr">

Expand Down