-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ba51b3
commit e4eaa69
Showing
3 changed files
with
204 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<style> | ||
.navbar { | ||
overflow: hidden; | ||
background-color: #333; | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
|
||
.navbar a { | ||
float: left; | ||
font-size: 16px; | ||
color: white; | ||
text-align: center; | ||
padding: 14px 16px; | ||
text-decoration: none; | ||
} | ||
|
||
.dropdown { | ||
float:right; | ||
overflow: hidden; | ||
} | ||
|
||
.dropdown .dropbtn { | ||
cursor: pointer; | ||
font-size: 16px; | ||
border: none; | ||
outline: none; | ||
color: white; | ||
padding: 14px 16px; | ||
background-color: inherit; | ||
font-family: inherit; | ||
margin: 0; | ||
} | ||
|
||
.navbar a:hover, .dropdown:hover .dropbtn, .dropbtn:focus { | ||
background-color: red; | ||
} | ||
|
||
.dropdown-content { | ||
display: none; | ||
position: absolute; | ||
background-color: #f9f9f9; | ||
min-width: 160px; | ||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
z-index: 1; | ||
} | ||
|
||
.dropdown-content a { | ||
float: none; | ||
color: black; | ||
padding: 12px 16px; | ||
text-decoration: none; | ||
display: block; | ||
text-align: left; | ||
} | ||
|
||
.dropdown-content a:hover { | ||
background-color: #ddd; | ||
} | ||
|
||
.show { | ||
display: block; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div class="navbar"> | ||
<a href="#home">Qbank</a> | ||
<a href="file:///C:/Users/aaa/Desktop/About.html">About</a> | ||
<a href="#contact">Contact</a> | ||
<div class="dropdown"> | ||
<button class="dropbtn" onclick="myFunction()"><i class="fa fa-fw fa-user"></i> | ||
<i class="fa fa-caret-down"></i> | ||
</button> | ||
<div class="dropdown-content" id="myDropdown"> | ||
<a href="#">Dashboard</a> | ||
<a href="#">Settings</a> | ||
<a href="#">Logout</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
function myFunction() { | ||
document.getElementById("myDropdown").classList.toggle("show"); | ||
} | ||
|
||
// Close the dropdown if the user clicks outside of it | ||
window.onclick = function(e) { | ||
if (!e.target.matches('.dropbtn')) { | ||
var myDropdown = document.getElementById("myDropdown"); | ||
if (myDropdown.classList.contains('show')) { | ||
myDropdown.classList.remove('show'); | ||
} | ||
} | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
body | ||
{ | ||
background-color:lightgray; | ||
margin: 0; | ||
margin-top: 50px; | ||
} | ||
header | ||
{ | ||
font-family:"Sans Serif","Times New Roman"; | ||
font-size:40px; | ||
color:RGB(60,60,60); | ||
display:flex; | ||
position:fixed; | ||
align-items:center; | ||
text-align:center; | ||
top:0; | ||
left:0; | ||
right:0; | ||
height:100px; | ||
line-height:100px; | ||
background-color:powderblue; | ||
border-style:outset; | ||
border-color:teal; | ||
} | ||
h1 | ||
{ | ||
margin: 5px 480px 5px; | ||
} | ||
input[type=text], input[type=password] | ||
{ | ||
|
||
padding: 12px 20px; | ||
margin: 8px 0; | ||
display: inline-block; | ||
border: 1px solid #ccc; | ||
box-sizing: border-box; | ||
} | ||
button | ||
{ | ||
background-color: #4CAF50; | ||
color: white; | ||
padding: 14px 20px; | ||
margin: 8px 0; | ||
border: none; | ||
cursor: pointer; | ||
} | ||
button:hover | ||
{ | ||
opacity: 0.8; | ||
} | ||
label | ||
{ | ||
font-size:15px; | ||
} | ||
form | ||
{ | ||
font-family:"Sans Serif","Times New Roman"; | ||
font-size:25px; | ||
line-height:1.8; | ||
margin-top:200px; | ||
justify-content: center; | ||
align-items:center; | ||
text-align:center; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>New Site</title> | ||
<link rel="stylesheet" href="MyStyle.css"> | ||
</head> | ||
<body> | ||
|
||
<header> | ||
<h1><b>SHIKSHA</b></h1> | ||
</header> | ||
|
||
<main> | ||
<section id="login"> | ||
<form> | ||
Login:<br> | ||
Username:<br> | ||
<input type="text" name="username" placeholder="Enter Username" required><br> | ||
Password:<br> | ||
<input type="password" name="password" placeholder="Enter Password" required><br> | ||
<button type="submit">Login</button><br> | ||
<label> | ||
<input type="checkbox" checked="checked" name="remember"> Remember me | ||
</label> | ||
</form> | ||
|
||
</section> | ||
<section id="about"> | ||
|
||
</section> | ||
<section id="contact"> | ||
|
||
</section> | ||
</body> | ||
</html> |