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

NavBar Added #226

Merged
merged 3 commits into from
May 21, 2024
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
28 changes: 14 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
<title>Maa-Vimala</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>



<body id="body">
<div class="container">
<div class="image">
<img src="MAA-VIMALAlogo.png">
</div>
<div class="text">
<h1>Maa-Vimala</h1>
</div>
</div>
<div>

<header>
<nav class="navbar">
<h1 id="logoName">Maa-Vimala</h1>
<ul class="nav-links">
<li><i class="fa-solid fa-house"></i><a href="#home"> Home </a></li>
<li><i class="fa-solid fa-info-circle"></i><a href="#about"> About Us </a></li>
<li><i class="fa-solid fa-concierge-bell"></i><a href="#services"> Services </a></li>
<li><i class="fa-solid fa-star"></i><a href="#reviews"> Reviews </a></li>
<li><i class="fa-solid fa-envelope"></i><a href="#contact"> Contact Us </a></li>
</ul>
</nav>
</header>
<!-- <div>
<div class="nav-info">
<p id="time">22 : 33 AM</p>
<div class="nav-info-ele">
Expand All @@ -35,7 +35,7 @@ <h1>Maa-Vimala</h1>
<span id="wind">Wind : 17.65</span>
</div>
</div>
</div>
</div> -->
</div>
<div>
<div>
Expand Down
272 changes: 272 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,278 @@ button {
/* text-decoration: none; */
color: #1b1c6d;

}

@media screen and (max-width: 600px){
body{
background-image: url('https://images.pexels.com/photos/1368382/pexels-photo-1368382.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
color: #ddd;
background-repeat: no-repeat;
background-size:100vh;
background-color: #fcfcfc;
padding: 10px;
}
.search-bar {
position: absolute;
font-size: 1.5rem;
top: 10rem;
right: -5rem;
color: white;
border-bottom: 2px solid white;
}
.search-icon {
visibility: hidden;
}
.search-container{
border-bottom: 2px solid rgb(196, 196, 196);
}
}

.fa-magnifying-glass:before, .fa-search:before {
content: "\f002";
margin-left: 90px;
}
body {
background-image: url('https://images.pexels.com/photos/36717/amazing-animal-beautiful-beautifull.jpg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
color: #ddd;
background-repeat: no-repeat;
background-size: cover;
background-color: #333;
padding: 15px;
border-radius: 5px;
font-family: "Poppins", sans-serif;
margin:0;
}
/* Navbar Styling */
nav {
background-color: rgba(0, 0, 0, 0.8);
width: 100%;
padding: 1rem 0;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
}

.navbar {
list-style: none;
display: flex;
justify-content: space-around;
align-items:center;
margin: 0;
padding: 15px;
}
.navbar h1 {
color: #fff;
font-size: 1.5rem;
font-weight: 600;
margin: 0;
}

.nav-links {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}

.nav-links li {
margin: 0 10px;
}

.nav-links a {
text-decoration: none;
color: #fff;
font-size: 1.2rem;
transition: color 0.3s ease;
}
.navbar .nav-links li i {
color: #fff;

}

.nav-links a:hover {
color: #ffcc00; /* Highlight color on hover */
}

/* Responsive Navbar for Mobile */
@media screen and (max-width: 600px) {
.navbar {
flex-direction: column;
align-items: flex-start;
}

.nav-links {
flex-direction: column;
width: 100%;
}

.nav-links li {
margin: 10px 0;
}
}

/* Other existing styles */


#logoName{
font-size: 2rem;
font-weight: 600;
margin:0;
}

#search-txt{
font-size: 2rem;
font-weight: 300;
}

body div{
display: flex;
flex-direction: column;
justify-content: center;
margin: 40px auto;
}

input {
width: 60vw;
height: 60px;
padding: 9px;
text-align: center;
/* padding: 8px; */
border: none;
border-radius: 3px;
font-size: 16px;
/* margin-bottom: 10px; */
background-color: #ddd;
color: #333;
font-size: 30px;
outline: none;
caret-color: palevioletred;

}
button {
width: 85px;
height: 77px;
/* display: inline;
justify-items: center; */
background-color: #ddd;
margin: 0;
}

#input_text{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 0 auto;
/* border: 1px solid black; */

}

.search-icon {
width: 65px;
font-size: 50px;
color: #666;
cursor: pointer;
border: 1px solid black;
margin-top: 5px;
}
.child{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 0 auto;
width: 100%;
list-style: none;
/* border: 1px solid black; */
}
.wiki-result{
list-style: none;
font-size: 20px;
padding: 10px;
margin: 10px;
}
.wiki-result a{
color: rgb(0, 255, 0);
text-decoration: none;
}
#content li{
width: 55rem;
margin: 10px;
padding: 10px;
border: 1px solid black;
border-radius: 5px;
background-color: #ddd;
color: #333;
font-size: 20px;
}

.loader {
border: 8px solid #f3f3f3;
border-top: 8px solid #3498db;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.search-container {
position: relative;
border-bottom: 2px solid rgb(196, 196, 196);
color: #3498db;
}

.search-bar {
background-color: transparent;
color: white;
width: 4.5vw;
padding: 10px;
border: none;
border-radius: 25px;
font-size: 2rem;
outline: none;
}

.search-icon {
position: absolute;
top: 50%;
right: 15px;
transform: translateY(-50%);
cursor: pointer;
border: none;
color: rgb(255, 255, 255);
}
.nav-info {
display: flex;
flex-direction: column;
align-items: flex-end;
color: #ddd;
}

#time, #date, #whether, #wind {
margin: 0;
font-size: 1rem;
}
#nav-extra{
display: flex;
margin-top: -1px;
}
#link{
float: right;
font-size: 1.5rem;
position: absolute;
bottom: 0;
}
#link a{
/* text-decoration: none; */
color: #1b1c6d;

}

@media screen and (max-width: 600px){
Expand Down