-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
225 lines (214 loc) · 9.52 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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Green Energy Trading Platform</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<div class="container">
<img src="Resources/logo.jpg" alt="Company Logo" class="logo">
<nav>
<div class="menu-icon" id="menu-icon">
<div></div>
<div></div>
<div></div>
</div>
<ul id="nav-links">
<li><a href="#home">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="#how-it-works">How It Works</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
<button id="connectButton" onclick="final()">Connect Metamask</button>
</ul>
</nav>
</div>
</header>
<!-- Seller Form Modal -->
<div id="sellerModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2>Seller Form</ h2>
<form action="D:/XAMPP/htdocs/phpForm.php" method="post" id="sellerForm">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone" required>
<label for="address">Address:</label>
<textarea id="address" name="address" required></textarea>
<label for="energyType">Type of Energy:</label>
<select id="energyType" name="energyType" required>
<option value="solar">Solar</option>
<option value="wind">Wind</option>
<option value="hydro">Hydro</option>
</select>
<label for="energyAmount">Amount of Energy (kWh):</label>
<input type="number" id="energyAmount" name="energyAmount" required>
<button type="submit">Submit</button>
</form>
</div>
</div>
<!-- Modal for buyer listings -->
<div id="listingsModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2>Sellers Listings</h2>
<table>
<thead>
<tr>
<th>S.no</th>
<th>Seller ID</th>
<th>Distance</th>
<th>Available Time</th>
<th>Total Unit</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td class="serial-number">1</td>
<td class="seller-id">ABC123</td>
<td class="distance">5 km</td>
<td class="time-slot">9 AM - 12 PM</td>
<td class="total-unit">100 kWh</td>
<td class="price">$50</td>
<td><button class="select-button">Select</button></td>
</tr>
<!-- Add more rows as needed -->
</tbody>
</table>
</div>
</div>
<div class="shared-background">
<section id="hero">
<div class="hero-overlay"></div>
<div class="container">
<h1>Welcome to Green Energy Trading Platform</h1>
<p>Transforming the future of energy trading.</p>
<button id="sellerButton">Seller</button>
<button class="view-listings-button">Buy </button>
</div>
</section>
<section id="our-idea">
<div class="hero-overlay"></div>
<div class="container">
<h2>Our Vision</h2>
<div class="content">
<div class="text">
<p>We aim to create a blockchain-based energy trading platform that allows residents of areas
like Pratapnagar sector XYZ to trade surplus solar energy. By addressing the mismatch
between energy production and peak demand, we enable efficient energy use and promote green
energy consumption.</p>
<p>Our tokenized system facilitates electricity trading, incentivizing producers to minimize
waste and consumers to prioritize green energy. Users earn green energy points for
sustainable practices, redeemable for eco-friendly products.</p>
<p>We also explore collaborations with local businesses and institutions to enhance energy
production and use. Our vision is to foster a sustainable energy ecosystem benefiting the
entire community.</p>
</div>
</div>
</div>
</section>
</div>
<div class="shared-background1">
<section id="green-energy-vs-carbon-credits">
<div class="Diff-overlay"></div>
<div class="container">
<h2>Green Energy Points vs. Carbon Credits</h2>
<div class="comparison">
<div class="comparison-item">
<h3>Green Energy Points</h3>
<ul>
<li>Earned by producing and consuming renewable energy.</li>
<li>Can be traded or redeemed for sustainable products and services.</li>
<li>Incentivizes local, immediate green energy usage.</li>
</ul>
</div>
<div class="comparison-item">
<h3>Carbon Credits</h3>
<ul>
<li>Allowances for emitting a certain amount of CO2.</li>
<li>Can be traded in a carbon market.</li>
<li>Aimed at reducing overall carbon footprint globally.</li>
</ul>
</div>
</div>
</div>
</section>
<section id="facts">
<div class="Diff-overlay"></div>
<div class="container">
<h2>Why Green Energy Matters</h2>
<div class="facts">
<div class="fact-item">
<h3>Positive Impact</h3>
<ul>
<li>Solar energy is the most abundant energy resource on Earth – 173,000 terawatts of solar
energy strike the Earth continuously, which is more than 10,000 times the world's total
energy use.</li>
<li>Wind power could provide 35% of the world’s electricity by 2050, reducing carbon
emissions by up to 5.6 gigatons annually.</li>
</ul>
</div>
<div class="fact-item">
<h3>Scary Facts</h3>
<ul>
<li>The world is on track to warm by 3°C by 2100, which could lead to catastrophic climate
impacts.</li>
<li>Over 1 million species are at risk of extinction due to climate change.</li>
</ul>
</div>
</div>
</div>
</section>
</div>
<section id="how-it-works">
<div class="container">
<h2>How Our Platform Works</h2>
<div class="steps">
<div class="step">
<h3>1. Generate surplus solar energy.</h3>
</div>
<div class="step">
<h3>2. Trade your surplus energy on our platform.</h3>
</div>
<div class="step">
<h3><B>3. Earn Green Energy Points.</B></h3>
</div>
<div class="step">
<h3>4. Redeem points for sustainable rewards.</h3>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="footer-links">
<a href="#privacy">Privacy Policy</a>
<a href="#terms">Terms of Service</a>
</div>
<div class="contact-info">
<p>Email: [email protected]</p>
<p>Phone: +123 456 7890</p>
<div class="social-media">
<a href="#facebook"><img src="Resources/facebookicon.png" alt="Facebook"></a>
<a href="#twitter"><img src="Resources/twittericon.png" alt="Twitter"></a>
<a href="#linkedin"><img src="Resources/linkedin.png" alt="LinkedIn"></a>
</div>
</div>
<div class="newsletter">
<input type="email" placeholder="Subscribe to our newsletter">
<button>Subscribe</button>
</div>
</div>
</footer>
<script src="scripts.js"></script>
<script src="https://cdn.jsdelivr.net/npm/web3/dist/web3.min.js"></script>
<script src="app.js"></script>
</body>
</html>