-
Notifications
You must be signed in to change notification settings - Fork 0
/
want-freelancer.html
82 lines (81 loc) · 2.66 KB
/
want-freelancer.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GIG Registration Form</title>
<link rel="stylesheet" href="want-freelancer.css">
</head>
<body>
<header>
<a href="index.html">
<h1 style="color: white; text-decoration: none;">Urgig</h1>
</a>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
<li class="nav-buttons">
<a href="#">Login</a>
<a href="#">Register</a>
</li>
</ul>
</nav>
</header>
<main>
<h2>Freelancer Registration Form</h2>
<form>
<div class="form-control">
<label for="name">Company/Individual Name : </label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-control">
<label for="email">Project Title:</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-control">
<label for="password">Explain your project description:</label>
<input type="text" id="password" name="password" required>
</div>
<div class="form-control">
<label for="tech-domain">Tech domain required : </label>
<select id="cars">
<option value="Web_Dev(Full Stack)">Web Dev(Full Stack)</option>
<option value="backend">backend</option>
<option value="frontend">frontend</option>
<option value="audio/video">Audio/Video</option>
<option value="Writing_and_Translation">Writing and Translation</option>
<option value="Design_Creative">Design & Creative</option>
<option value="Sales_Marketing">Sales and Marketing</option>
</select>
</div>
<div class="btn-container">
<button onclick="loginWithMetaMask()" class="btn-primary">Submit</button>
<button class="btn-secondary">Cancel</button>
</div>
</form>
</main>
<footer>
<p>© 2023 Urgig. All rights reserved.</p>
</footer>
<script>
async function loginWithMetaMask() {
// Check if Metamask is installed and enabled
if (window.ethereum) {
try {
// Request user to connect their Metamask wallet
const accounts = await window.ethereum.request({ method: 'eth_requestAccounts' });
const userWalletAddress = accounts[0];
// Perform any action after successful login, e.g. redirect to dashboard page
console.log(`Logged in with address: ${userWalletAddress}`);
} catch (error) {
console.error(error);
}
} else {
console.error('Metamask is not installed');
}
}
</script>
</body>
</html>