-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (94 loc) · 3.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Print2Door</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Login Page -->
<div id="login" class="container">
<h1>Login</h1>
<input type="email" placeholder="Email/Username" id="loginEmail">
<input type="password" placeholder="Password" id="loginPassword">
<button class="button" onclick="validateAndRedirect('home')">Login</button>
<span class="link" onclick="redirect('signup')">Sign Up</span>
</div>
<!-- Signup Page -->
<div id="signup" class="container" style="display: none;">
<h1>Sign Up</h1>
<input type="text" placeholder="Full Name" id="signupName">
<input type="email" placeholder="Email" id="signupEmail">
<input type="password" placeholder="Password" id="signupPassword">
<input type="password" placeholder="Confirm Password" id="signupConfirmPassword">
<button class="button" onclick="redirect('home')">Sign Up</button>
<span class="link" onclick="smoothScroll('#login')">Login</span>
</div>
<!-- Home Page -->
<div id="home" class="container" style="display: none;">
<h1>Welcome to Print2Door</h1>
<button class="button" onclick="redirect('upload')">Upload Document</button>
</div>
<!-- Upload Page -->
<div id="upload" class="container" style="display: none;">
<h1>Upload Document</h1>
<input type="file" id="fileInput" accept=".pdf,.docx">
<button class="button" onclick="redirect('fileDetails')">Upload</button>
</div>
<!-- File Details Page -->
<div id="fileDetails" class="container" style="display: none;">
<h1>File Details</h1>
<p>File Name: <span id="fileName">example.pdf</span></p>
<p>Number of Pages: <input type="text" id="pageCount" placeholder="Enter number of pages"></p>
<label for="printQuality">Print Quality:</label>
<select id="printQuality">
<option value="draft">Draft</option>
<option value="standard">Standard</option>
<option value="high-quality">High Quality</option>
</select>
<label for="paperThickness">Paper Thickness:</label>
<select id="paperThickness">
<option value="standard">Standard</option>
<option value="premium">Premium</option>
</select>
<label for="cover">Cover:</label>
<select id="cover">
<option value="no">No</option>
<option value="yes">Yes</option>
</select>
<label for="binding">Binding Type:</label>
<select id="binding">
<option value="none">None</option>
<option value="spiral">Spiral</option>
<option value="stapler">Stapler</option>
</select>
<p>Total Cost: ₹<span id="totalCost">0</span></p>
<button class="button" onclick="calculateCost()">Calculate Cost</button>
<button class="button" onclick="reviewBeforePayment()">Proceed to Payment</button>
</div>
<!-- Payment Page -->
<div id="payment" class="container" style="display: none;">
<h1>Payment</h1>
<!-- Payment Ratio Options -->
<p>Select Payment Method</p>
<label for="paymentMethod">Cash on Delivery</label>
<input type="radio" id="cod" name="paymentMethod" value="cash-on-delivery">
<label for="paymentMethod">Online Payment</label>
<input type="radio" id="onlinePayment" name="paymentMethod" value="online-payment">
<br><br>
<!-- Address Field (changed from textarea to input text) -->
<label for="address">Delivery Address:</label>
<input type="text" id="address" placeholder="Enter your delivery address here">
<br><br>
<button class="button" onclick="redirect('thankYou')">Proceed to Payment</button>
</div>
<!-- Thank You Page -->
<div id="thankYou" class="container" style="display: none;">
<h1>Thank You!</h1>
<p>Your order has been placed successfully!</p>
<span class="link" onclick="redirect('home')">Go to Home</span>
</div>
<script src="script.js"></script>
</body>
</html>