Skip to content

Commit

Permalink
improve footer and header, closes KiranAminPanjwani#102
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtausifiqbal committed Oct 17, 2023
1 parent ab5f554 commit 424df57
Show file tree
Hide file tree
Showing 8 changed files with 127 additions and 199 deletions.
20 changes: 9 additions & 11 deletions contactUs.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,22 @@

<body>
<!-- NavBar -->
<nav id="navbar" class="navbar navbar-expand-lg navbar-dark fixed-top">
<nav id="navbar" class="navbar navbar-expand-lg navbar-dark sticky-top">
<a class="navbar-brand mb-1 nav-heading" href="/index.html" style="font-size: 28px">
<!-- <img src="./medicalLogo.png" /> -->
<i class="fa fa-stethoscope" style="font-size: 30px; color: white"></i>
<img src="./images/logo-color.jpeg" alt="" width="130px" />
</a>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="/index.html">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="contactUs.html">Contact Us</a></li>
<li><a href="login.html" style="color: white; text-decoration: none">Logout</a></li>
<li><a href="login.html">Login</a></li>
</ul>
</nav>

<div class="contact-form">
<h1>Contact us</h1>
<main class="main">
<div class="container">
<div class="main">
<div class="contact-form">
<div class="content">
<h2>Contact Us</h2>
<form action="#" method="post">
Expand All @@ -64,12 +62,12 @@ <h2>Contact Us</h2>
</div>
</div>
</div>
</div>
</main>

<footer>
<p>
Made by Kiran Amin Panjwani <br />
This Project is participating in Hacktoberfest. Copyright © <span id="current-year"></span>.
<span>Made by Kiran Amin Panjwani | Copyright © <span id="current-year"></span></span>
<span class="text-secondary">This Project is participating in Hacktoberfest.</span>
</p>
<script>
const currentYear = new Date().getFullYear();
Expand Down
48 changes: 45 additions & 3 deletions css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ body {
scrollbar-color: #b40c57 #bf3370;
overflow-x: hidden;
color: var(--color-black);
min-height: 100vh;
display: flex;
flex-direction: column;
}

body::-webkit-scrollbar {
Expand All @@ -58,8 +61,6 @@ body::-webkit-scrollbar-thumb:hover {
background-image: var(--color-gradient);
display: flex;
justify-content: space-between;
margin: 24px;
border-radius: 12px;
}

#navbar a {
Expand Down Expand Up @@ -100,11 +101,51 @@ body::-webkit-scrollbar-thumb:hover {
border-radius: 50px;
transition: all 0.2s ease;
}

#navbar ul li:hover::before {
left: -10%;
width: 120%;
}

.main {
flex: 1;
}

.main .container {
padding: 1rem;
}

.main .page-title {
color: var(--darkPurple);
font-weight: bold;
font-size: 30px;
text-align: center;
padding: 1rem 0;
text-transform: uppercase;
letter-spacing: 3px;
}

.form-container {
width: 100%;
max-width: 700px; /* Adjust the maximum width to your preference */
margin: 0 auto; /* Center the container horizontally */
padding: 30px;
border: 1px solid #ccc;
border-radius: 10px;
background-color: #f8f8f8;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn-action {
background-color: #b40c57;
transition: transform 0.5s ease;
}

/* Hovering effetc on buttons */
.btn-action:hover {
transform: scale(1.025);
}

/* Back to Top Button styles */
#backToTopBtn {
display: none;
Expand Down Expand Up @@ -180,9 +221,10 @@ footer p {
margin: 0;
line-height: 1.5;
display: flex;
flex-direction: column;
font-size: 18px;
font: medium;
text-align: center;
align-items: flex-end;
align-items: center;
justify-content: center;
}
18 changes: 3 additions & 15 deletions css/contactus.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
.contact-form {
position: relative;
min-height: 100vh;
z-index: 0;
background: white;
padding: 30px;
display: flex;
justify-content: center;
display: grid;
grid-template-rows: 1fr auto 1fr;
align-items: center;
align-items: stretch;
}

.container {
max-width: 800px;
height: 500px;
margin-top: 0 auto;
padding: 30px;
}

.contact-form h1 {
Expand All @@ -32,12 +26,6 @@
text-align: center;
}

.contact-form .main {
position: relative;
display: flex;
margin: 30px 0;
}

.content {
flex-basis: 50%;
padding: 3em 3em;
Expand Down
41 changes: 0 additions & 41 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,10 @@ input {
border-color: var(--cyan);
}

h2 {
color: var(--color-gray);
font-size: var(--font-size-small);
line-height: 1.5;
font-weight: 400;
text-transform: uppercase;
letter-spacing: 3px;
}

section {
margin-bottom: 2rem;
}

/* Applied text shadow to beautify the website */
#subHead1 {
color: var(--darkPurple);
font: bold;
font-size: 30px;
}

/* Applied text shadow */
#med {
color: rgb(0, 0, 0);
Expand All @@ -35,18 +19,6 @@ section {
font-size: 18px;
}

#add-record-btn {
/* border: 2px solid grey; */
transition: transform 0.5s ease;
}

/* Hovering effetc on buttons */
#add-record-btn:hover {
background-color: black;
color: black;
transform: scale(1.025);
}

.progress-bar {
display: flex !important;
flex-direction: row !important;
Expand Down Expand Up @@ -263,7 +235,6 @@ section {
flex-wrap: wrap;
justify-content: space-around;
padding: 20px;
background-color: #f8f9fa;
}

.record {
Expand Down Expand Up @@ -385,18 +356,6 @@ button img {
}
}

.form-container {
max-width: 500px; /* Adjust the maximum width to your preference */
margin: 0 auto; /* Center the container horizontally */
height: 220px;
padding: 30px;
border: 1px solid #ccc;
border-radius: 10px;
background-color: #f8f8f8;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-top: 50px;
}

a button {
text-decoration: none;
}
Expand Down
57 changes: 0 additions & 57 deletions css/sign up.css
Original file line number Diff line number Diff line change
@@ -1,60 +1,3 @@
#navbar {
height: 70px;
width: 100vw;
display: flex;
align-items: center;
justify-content: space-between;
}
#navbar::before {
content: " ";
position: absolute;
background-image: linear-gradient(to right, #b40c57, #bf3370);
left: 0px;
top: 0px;
z-index: -1;
height: 70px;
width: 100vw;
}
.navbar-brand {
margin-left: 22px;
}
.container {
top: 23px;
}
#subHead1 {
color: black;
text-shadow: 2px 2px 4px #888585;
font-size: 30px;
}
.text-center {
color: #f7000c;
text-align: center !important;
}
#sign::before {
content: " ";
position: absolute;
/* background-image: linear-gradient(to right, #b40c57, #bf3370); */
left: 0px;
/* top: 0px; */
z-index: -1;
height: 100vh;
width: 100vw;
}
#sign {
height: 100vh;
}
.form-container {
max-width: 40vw; /* Adjust the maximum width to your preference */
margin: 0 auto; /* Center the container horizontally */
/* height: 45vh; */
padding: 30px;
border: 1px solid #ccc;
border-radius: 10px;
background-color: #f8f8f8;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-top: 50px;
}

.form-container p {
text-align: center;
margin-top: 22px;
Expand Down
Loading

0 comments on commit 424df57

Please sign in to comment.