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

fix donate.html dark theme #1764

Closed
wants to merge 1 commit 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
31 changes: 22 additions & 9 deletions donate.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,17 @@
margin-left: 0.2rem;
}

.donate-section input::placeholder{
color: rgba(0, 0, 0, 0.481);
}

#submit_button {

display: flex;
margin-left: auto;
margin-right: auto;
color: white;
background-color: #90400E;
background-color: #5a2809;
border: none;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
Expand All @@ -96,7 +100,7 @@
}

#submit_button:hover {
background-color: #c15a1b;
background-color: #080300;

}
</style>
Expand Down Expand Up @@ -186,14 +190,14 @@ <h1 class="text-4xl text_2 text-center md:text-left md:ml-12 uppercase font-ser
</nav>
</header>

<section class="text-gray-600 body-font relative bg-[url('Assets/Images/pet-don.jpg')] bg-center bg-no-repeat
<section class="text-gray-600 body-font relative bg-[url('Assets/Images/pet-don.jpg')] bg-center bg-no-repeat bg-dog
bg-cover donate-section">
<div class="container px-5 py-24 mx-auto card backdrop-blur-sm">
<div class="container px-5 py-24 bg-donate bg-opacity-80 mx-auto card backdrop-blur-sm">
<div class="flex flex-col text-center w-full mb-12">
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 text-gray-900" style="padding-top: 15px;">
<h1 class="sm:text-3xl text-2xl donate-h1 font-medium title-font mb-4 text-amber-900" style="padding-top: 15px;">
Donate Animals
</h1>
<p class="sm:text-3xl text-2xl font-medium title-font mb-4 text-gray-90">
<p class="sm:text-3xl text-2xl donate-h2 font-medium title-font mb-4 text-amber-900">
Fill up the form below and donate your pets.
</p>
</div>
Expand Down Expand Up @@ -265,7 +269,7 @@ <h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 text-gray-900" style
<div class="p-2 w-1/2">
<div class="relative">
<label for="number" class="leading-7 text-sm text-gray-900">Contact Number</label>
<input type="text" id="contact" name="contact" autocomplete="off" placeholder="+91 0123456789"
<input type="text" id="contact" name="contact" autocomplete="off" placeholder="+91 01234 56789"
onchange="displayErrorMsg(this.name)"
class="w-full bg-gray-100 bg-opacity-50 rounded border border-gray-300 focus:border-indigo-500 focus:bg-white focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"
oninput="this.value = this.value.replace(/[^0-9\+\.]/g, '').replace(/(\..*)\./g, '$1');" required />
Expand Down Expand Up @@ -295,7 +299,7 @@ <h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 text-gray-900" style
<label for="petcolor" class="leading-7 text-sm text-gray-900">Pet Color</label>
<input type="text" id="petcolor" name="petcolor" placeholder="Yellow" autocomplete="off"
onchange="displayErrorMsg(this.name)"
class="w-full bg-gray-100 bg-opacity-50 rounded border border-gray-300 focus:border-indigo-500 focus:bg-white focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"
class="w-full bg-gray-100 bg-opacity-50 rounded border border-gray-300 focus:border-indigo-500 focus:bg-white focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-900 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"
required />
<p id="petcolor-helper" class="help">Enter valid pet color</p>
</div>
Expand Down Expand Up @@ -334,7 +338,7 @@ <h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 text-gray-900" style
</div>
<div class="p-2 w-full">
<input type="checkbox" name="check" id="check" required>
<span class="p-1 font-medium text-gray-900">
<span class="leading-7 p-1 font-medium text-gray-900">
I've read and agree to the Terms and Conditions of PetMe.
</span>
</div>
Expand Down Expand Up @@ -416,6 +420,15 @@ <h3 class="text-2xl">Subscribe to our newsletter</h3>
</svg>
</a>
</div>
<div class="hover:scale-110 transition-all">
<a href="https://www.linkedin.com/in/akshita-gupta-a4a895187/?originalSubdomain=in" target="_blank" class="w-10 ml-3 mr-3">
<!-- Linkedin icon -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="30" height="30" class="fill-white" viewBox="0 0 20 20">
<path fill="#FFFFFF" d="M21,21H17V14.25C17,13.19 15.81,12.31 14.75,12.31C13.69,12.31 13,13.19 13,14.25V21H9V9H13V11C13.66,9.93 15.36,9.24 16.5,9.24C19,9.24 21,11.28 21,13.75V21M7,21H3V9H7V21M5,3A2,2 0 0,1 7,5A2,2 0 0,1 5,7A2,2 0 0,1 3,5A2,2 0 0,1 5,3Z" />
</svg>

</a>
</div>
</div>
</div>
<!-- Social icons end -->
Expand Down
11 changes: 10 additions & 1 deletion light-dark-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ let t3 = new element(
);
let t4 = new element(["text_4"], "text-choco", "text-white");

let t5 = new element(
[
"donate-h1","donate-h2","leading-7"
],
["text-amber","text-gray-900"],
"text-white"
);

// let b1 = new element("bg_1", "bg-slate-50", "bg-slate-400");
let b1 = new element(
["bg-header-offwhite", "main-card", "b_1"],
Expand All @@ -70,7 +78,7 @@ let b2 = new element(
);
let b3 = new element(["bg_3"], "bg-blue-600", "bg-blue-200");

let b4 = new element(["bg-blog"], "bg-white-200","bg-amber-700");
let b4 = new element(["bg-blog","bg-donate"], "bg-white-200","bg-amber-700");


let mission1 = new element(["mission-1"], "mission-dark", "mission-light");
Expand All @@ -90,6 +98,7 @@ toggler.addEventListener("click", () => {
t2.toggle();
t3.toggle();
t4.toggle();
t5.toggle();
b1.toggle();
b2.toggle();
b3.toggle();
Expand Down