Skip to content

Commit

Permalink
buy ticket button works well
Browse files Browse the repository at this point in the history
  • Loading branch information
Razib2019 committed Jun 3, 2024
1 parent 0813454 commit efb93b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
class="flex justify-center items-center lg:mt-8 mt-6 font-raleway"
>
<button
id="go-to-buy-ticket"
class="btn lg:text-xl font-bold text-[#030712] hover:text-[#1DD100] bg-[#1DD100] hover:bg-black border-none lg:px-6"
>
Buy Tickets
Expand Down Expand Up @@ -234,6 +235,7 @@ <h1 class="xl:text-3xl lg:text-2xl text-xl font-bold">
<!-- Best Offer For You Section End Here -->
<!-- After Best Offer Fot You And Before Footer Section Start From Here -->
<section
id="buy-ticket"
class="bg-[#F7F8F8] rounded-t-[100px] border-t-4 border-[#1DD100] lg:pb-32 md:pb-16 pb-10"
>
<div class="container mx-auto lg:px-24 px-4 mt-8">
Expand Down Expand Up @@ -793,7 +795,7 @@ <h1>BDT <span>1100</span></h1>
Phone Number
</span>
<input
type="text"
type="number"
placeholder="Enter your phone number"
class="input w-full text-sm font-normal border-slate-300 placeholder-slate-400 p-6"
/>
Expand Down
8 changes: 7 additions & 1 deletion scripts/app.js
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@

document
.getElementById("go-to-buy-ticket")
.addEventListener("click", function () {
document
.getElementById("buy-ticket")
.scrollIntoView({ behavior: "smooth" });
});

0 comments on commit efb93b6

Please sign in to comment.