-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
141 lines (129 loc) · 5.75 KB
/
index.html
File metadata and controls
141 lines (129 loc) · 5.75 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dynamic Pricing Calculator</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div class="calculator-container">
<div class="calculator-header">
<h1>Dynamic Pricing Calculator</h1>
<p>Calculate your total price with volume discounts and special offers</p>
</div>
<div class="calculator-main">
<!-- Product Selection -->
<div class="product-selection">
<h2>Select Your Package</h2>
<div class="product-cards">
<div class="product-card" data-product="basic">
<div class="product-icon">
<i class="fa-solid fa-box"></i>
</div>
<h3>Basic</h3>
<div class="product-price">$29.99</div>
<p class="product-description">Perfect for small businesses</p>
</div>
<div class="product-card" data-product="pro">
<div class="product-icon">
<i class="fa-solid fa-rocket"></i>
</div>
<h3>Pro</h3>
<div class="product-price">$49.99</div>
<p class="product-description">Ideal for growing companies</p>
</div>
<div class="product-card" data-product="enterprise">
<div class="product-icon">
<i class="fa-solid fa-building"></i>
</div>
<h3>Enterprise</h3>
<div class="product-price">$99.99</div>
<p class="product-description">For large organizations</p>
</div>
</div>
</div>
<!-- Calculator Controls -->
<div class="calculator-controls">
<div class="quantity-control">
<h3>Quantity</h3>
<div class="quantity-input">
<button type="button" class="quantity-btn" data-action="decrease">-</button>
<input type="number" id="quantity" value="1" min="1" max="100">
<button type="button" class="quantity-btn" data-action="increase">+</button>
</div>
</div>
<div class="discount-control">
<h3>Discount Code</h3>
<div class="discount-input">
<input type="text" id="discountCode" placeholder="Enter code">
<button type="button" class="apply-btn">Apply</button>
</div>
</div>
</div>
<!-- Price Breakdown -->
<div class="price-breakdown">
<h2>Price Breakdown</h2>
<div class="breakdown-items">
<div class="breakdown-item">
<span>Base Price</span>
<span class="base-price">$29.99</span>
</div>
<div class="breakdown-item">
<span>Volume Discount</span>
<span class="volume-discount">-$0.00 (0%)</span>
</div>
<div class="breakdown-item">
<span>Code Discount</span>
<span class="code-discount">-$0.00 (0%)</span>
</div>
<div class="breakdown-item total">
<span>Total Price</span>
<span class="total-price">$29.99</span>
</div>
</div>
</div>
<!-- Savings Summary -->
<div class="savings-summary">
<div class="savings-card">
<i class="fa-solid fa-piggy-bank"></i>
<div class="savings-info">
<h3>Total Savings</h3>
<p class="total-savings">$0.00</p>
</div>
</div>
<div class="savings-card">
<i class="fa-solid fa-percent"></i>
<div class="savings-info">
<h3>Discount Rate</h3>
<p class="discount-rate">0%</p>
</div>
</div>
</div>
<!-- Price Comparison Chart -->
<div class="price-comparison">
<h2>Price Comparison</h2>
<div class="chart-container"></div>
</div>
<!-- Special Offer -->
<div class="special-offer">
<div class="offer-content">
<i class="fa-solid fa-gift"></i>
<div class="offer-text">
<h3>Special Offer!</h3>
<p>Get an additional 5% off when you order 10 or more units!</p>
</div>
</div>
</div>
</div>
<footer>
<div class="footer-content">
Created by <a href="https://dogushanbalci.com" target="_blank">Doğuşhan BALCI</a>
</div>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>