Skip to content

Commit

Permalink
develop login form
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilan032 committed Jun 20, 2024
1 parent cc21c4b commit 0700d09
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
5 changes: 5 additions & 0 deletions css/home.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
body{
background-color: rgba(214, 214, 214, 0.26);
}
a{
text-decoration: none;
}
.bg-shadow{
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}
Expand All @@ -13,3 +16,5 @@ body{
.cose-category-bg:hover{
transform: scale(1.1);
}


27 changes: 27 additions & 0 deletions include/loginForm.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Admin Login</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="recipient-name" class="col-form-label">User Name</label>
<input type="text" class="form-control">
</div>
<div class="mb-3">
<label for="message-text" class="col-form-label">Password</label>
<input type="password" class="form-control">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Login</button>
</div>
</div>
</div>
</div>
7 changes: 5 additions & 2 deletions include/navBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
</a>
<span class="navbar-text me-5">
<a href="#" class="d-flex">
<a href="#" class="d-flex" data-bs-toggle="modal" data-bs-target="#exampleModal">
<img src="images/profile.png" alt="Logo" width="42" class="d-inline-block align-text-top">
<h5 class="mt-2 ms-2">Login</h5>
</a>
</span>
</div>
</nav>
</nav>
<!-- <button type="button" class="btn btn-primary" data-bs-toggle="modal"
data-bs-target="#exampleModal" data-bs-whatever="@mdo">Open modal for @mdo</button> -->
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<body>
<?php include 'include/head.php'; ?>
<?php include 'include/navBar.php'; ?>
<?php include 'include/loginForm.php'; ?>


<!-- main image -->
Expand Down

0 comments on commit 0700d09

Please sign in to comment.