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

Improved the navbar look and the home page #720

Closed
wants to merge 2 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
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<ul class="nav-menu">
<li class="nav-item">
<a href="#home" class="nav-link" style="color: red;"><i class="fa-solid fa-house"></i> Home</a>
<a href="#home" class="nav-link"><i class="fa-solid fa-house"></i> Home</a>
</li>
<li class="nav-item">
<a href="./assets/html_files/about.html" class="nav-link"><i class="fa-solid fa-circle-info"></i> About</a>
Expand Down Expand Up @@ -62,7 +62,7 @@
<img src="./assets/images/logo.png" alt="Logo">
</div>
<h1 class="heading">Beautiify</h1>
<h3 class="sub-head">Every component, on the right place!!</h3>
<h3 class="sub-head">Every component, in the right place!!</h3>
<p class="paragraph">
Beautiify comprises a curated selection of beautifully designed components and animations that can be seamlessly incorporated into any website, elevating its overall UI experience.
</p>
Expand Down Expand Up @@ -272,4 +272,4 @@ <h2>Transfer Lists</h2>

</body>

</html>
</html>
181 changes: 180 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -920,4 +920,183 @@ footer p a {
width: 280px !important;
margin: 15px !important;
}
}
}
/* Navbar background color and text color */
.navbar {
background-color: #2c3e50; /* Dark background color */
color: #fff; /* White text color */
padding: 20px; /* Padding around navbar items */
display: flex; /* Make navbar items flex */
justify-content: space-between; /* Space between navbar items */
align-items: center; /* Center vertically */
}

/* Navbar logo */
.logo {
font-size: 24px; /* Increase font size */
}

/* Navbar links */
.nav-menu {
list-style: none; /* Remove bullet points */
display: flex; /* Make navbar items flex */
}

.nav-item {
margin-right: 20px; /* Spacing between navbar items */
}

.nav-link {
text-decoration: none;
color: #fff; /* White text color */
padding: 10px; /* Padding around navbar links */
transition: color 0.3s ease; /* Smooth color transition */
}

.nav-link:hover {
color: #f39c12; /* Change text color on hover */
}

/* Hamburger menu icon */
.hamburger {
display: none; /* Hide initially for larger screens */
cursor: pointer;
}

/* Dark mode toggle button */
#dark-mode-toggle {
background-color: transparent;
border: none;
color: #fff; /* White text color */
cursor: pointer;
font-size: 20px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
.nav-menu {
display: none; /* Hide navbar items on small screens */
}

.hamburger {
display: block; /* Show hamburger menu icon on small screens */
}

.nav-menu.active {
display: flex; /* Show navbar items when active (for mobile menu) */
flex-direction: column; /* Stack items vertically */
background-color: #34495e; /* Dark background color */
position: absolute; /* Position absolutely */
top: 100%; /* Place below navbar */
left: 0; /* Align to left */
width: 100%; /* Full width */
z-index: 999; /* Ensure it's above other content */
}

.nav-item {
margin: 10px 0; /* Spacing between stacked navbar items */
}
}
/* style.css */

/* Header */
.header1 {
background-color: #34495e; /* Dark background color */
color: #fff; /* White text color */
padding: 20px; /* Padding around header content */
}

/* Logo and Heading */
.logo img {
width: 50px; /* Adjust logo width */
height: 50px; /* Adjust logo height */
margin-bottom: 20px; /* Spacing below logo */
}

.heading {
font-size: 36px; /* Increase heading font size */
margin-bottom: 10px; /* Spacing below heading */
}

.sub-head {
font-size: 24px; /* Increase sub-heading font size */
margin-bottom: 20px; /* Spacing below sub-heading */
}

.paragraph {
font-size: 18px; /* Increase paragraph font size */
margin-bottom: 30px; /* Spacing below paragraph */
}

/* Call-to-Action Button */
.started {
background-color: #f39c12; /* Orange background color */
color: #fff; /* White text color */
padding: 10px 20px; /* Padding around button */
border: none; /* Remove button border */
border-radius: 5px; /* Rounded button corners */
font-size: 20px; /* Increase button font size */
text-decoration: none; /* Remove default link underline */
transition: background-color 0.3s ease; /* Smooth background color transition */
}

.started:hover {
background-color: #e67e22; /* Darker orange on hover */
}
/* Navbar logo */
.logo {
font-size: 24px;
color: #f39c12;
font-weight: bold; /* Increase font weight */
}

/* Header */
.header1 {
background-color: #34495e;
color: #fff;
padding: 20px;
}

/* Logo and Heading */
.logo img {
width: 50px;
height: 50px;
margin-bottom: 20px;
}

.heading {
font-size: 36px;
margin-bottom: 10px;
color: #f39c12;
font-weight: bold; /* Increase font weight */
}

.sub-head {
font-size: 24px;
margin-bottom: 20px;
color: #f39c12;
font-weight: bold; /* Increase font weight */
}

.paragraph {
font-size: 18px;
margin-bottom: 30px;
color: #555;
}

/* Call-to-Action Button */
.started {
background-color: #f39c12;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 20px;
font-weight: bold; /* Increase font weight */
text-decoration: none;
transition: background-color 0.3s ease;
}

.started:hover {
background-color: #e67e22;
}