From b11997b9d107050d7bdcc22306a8f5910b303f6b Mon Sep 17 00:00:00 2001 From: Hemant <147234335+nasahackathonnoida@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:28:51 +0530 Subject: [PATCH] added product page --- index.html | 4 ++- page1.html | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ script.js | 4 +-- 3 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 page1.html diff --git a/index.html b/index.html index d6cf8ee..3dd3009 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@

Welcome to Your Product

Transform Your Digital Experience

Join thousands of users who trust us with their digital journey.

- +
@@ -42,5 +42,7 @@

Feature Three

© 2024 Your Company. All Rights Reserved.

+ + diff --git a/page1.html b/page1.html new file mode 100644 index 0000000..4c69a10 --- /dev/null +++ b/page1.html @@ -0,0 +1,87 @@ + + + + + + iPhone Product Page + + + + +
+

iPhone

+
+ +
+
+

Experience the Future

+

The best iPhone yet.

+
+
+ +
+
+

Stunning Display

+

Enjoy the best display ever on an iPhone.

+
+
+

Advanced Camera

+

Capture your moments with the highest quality.

+
+
+

Powerful Performance

+

Experience unmatched performance and speed.

+
+
+ + + + + \ No newline at end of file diff --git a/script.js b/script.js index 21e1957..7630a06 100644 --- a/script.js +++ b/script.js @@ -1,9 +1,9 @@ -// Alert on Button Click in Hero Section +// Redirect to another page after button click in hero section document.addEventListener('DOMContentLoaded', () => { const startButton = document.querySelector('.btn'); startButton.addEventListener('click', () => { - alert('Welcome! Thanks for getting started with us.'); + window.location.href = 'page1.html'; }); });