-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
210 lines (181 loc) · 9.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Signature Generator</title>
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom Styles -->
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
* {
margin: 0;
padding: 0;
font-family: 'Montserrat', sans-serif;
}
::selection {
background-color: transparent;
}
.name-section {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 1rem;
}
.copy-btn {
border: none;
background: none;
cursor: pointer;
color: #836f6f;
font-size: 1rem;
}
.copy-btn:hover {
color: rgb(90, 78, 78);
}
.copy-btn:active {
color: rgb(37, 17, 17);
}
</style>
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-6">
<div class="card mt-5">
<div class="card-body">
<h5 class="card-title text-center">Signature Generator</h5>
<form id="addTextForm">
<div class="mb-3">
<label for="name" class="form-label">Name:</label>
<input type="text" class="form-control" id="name" name="name">
</div>
<div class="mb-3">
<label for="role" class="form-label">Role:</label>
<input type="text" class="form-control" id="role" name="role">
</div>
<div class="mb-3">
<label for="contact" class="form-label">Contact Number:</label>
<input type="text" class="form-control" id="contact" name="contact">
</div>
<div class="d-grid gap-2">
<button type="button" class="btn btn-primary" onclick="addText()">Generate Signature</button>
<strong> Learn to how to set the signature on Gmail using our </strong> <a href="https://naxa-developers.github.io/email-signature/help" target="_blank" style="color:#0055FF; font-weight: 500;">help guide ⤴</a>
</div>
</form>
</div>
</div>
</div>
</div>
<div id="templateContainer">
<div style="max-width: 560px; padding: 28px;">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<div class="name-section">
<strong id="dynamicName" style="font-size: 1rem; font-weight:700; line-height: 1.25rem; color: #333132; margin-bottom: 4px; text-transform: capitalize; white-space: nowrap;">Nishon Tandukar</strong>
<div class="id">
<button id="copy" type="button" class="copy-btn" >
<i class="bi bi-clipboard-check"></i>
<p>Copy</p>
</button>
</div>
</div>
<div style="margin-bottom: 18px;">
<strong id="dynamicRole" style="font-size: 0.75rem; line-height: 0.9375rem; text-transform: uppercase; white-space: nowrap; color: #F98A07; font-weight: 600; letter-spacing: 0.15em;">Chief Operating Officer</strong>
</div>
<div>
<div>
<div style="display: inline-block; padding-right: 20px; margin-right: 20px; border-right: solid 1px #D7D7D7;">
<div style="display: inline-block; vertical-align:middle; padding-right: 8px;">
<img src="https://naxa-developers.github.io/email-signature/assets/phone.png" style="height: 20px; width: 20px;" alt="phone">
</div>
<div style="display: inline-block; vertical-align:middle; padding-bottom: 6px;">
<span id="dynamicContact" style="font-size: 0.8125rem; line-height: 1rem; color: #333132;">9802300064</span>
</div>
</div>
<div style="display: inline-block; vertical-align: top; padding-top: 4px;">
<a href="https://www.linkedin.com/company/naxa-pvt.-ltd./mycompany/" target="_blank" style="margin-right: 16px;"><img style="height: 18px; width: 18px;" src="https://naxa-developers.github.io/email-signature/assets/linked-in.png" alt="linked-in"></a>
<a href="https://github.com/naxa-developers" target="_blank"><img style="height: 18px; width: 18px;" src="https://naxa-developers.github.io/email-signature/assets/github.png" alt="github"></a>
</div>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div style="margin-top: 30px; margin-bottom: 20px;">
<div class="info-section" style="display: inline-block; padding-right: 28px; margin-right: 28px; border-right: solid 1px #D7D7D7;">
<div style="margin-bottom: 20px;">
<img width="112px" height="33px" src="https://naxa-developers.github.io/email-signature/assets/NAXA-logo.png" alt="NAXA-logo">
</div>
<div>
<a href="https://www.facebook.com/naxa.np/" target="_blank"><img style="height: 18px; width: 18px; margin-right: 10px;" src="https://naxa-developers.github.io/email-signature/assets/facebook-logo-button 1.png" alt="facebook-logo"></a>
<a href="https://www.instagram.com/naxanp/?hl=en" target="_blank"><img style="height: 18px; width: 18px; margin-right: 10px" src="https://naxa-developers.github.io/email-signature/assets/instagram 1.png" alt="instagram"></a>
<a href="https://twitter.com/naxanp" target="_blank"><img style="height: 18px; width: 18px; margin-right: 10px" src="https://naxa-developers.github.io/email-signature/assets/twitter.png" alt="twitter"></a>
<a href="https://www.linkedin.com/company/naxa-pvt.-ltd./mycompany/" target="_blank"><img style="height: 18px; width: 18px;" src="https://naxa-developers.github.io/email-signature/assets/linked-in.png" alt="linked-in"></a>
</div>
</div>
<div style="display: inline-block; margin: 0; vertical-align: top; padding-top: 10px;">
<div style="font-size: 0.8125rem; line-height: 1rem; color:#333132; margin-bottom: 8px;">
<div style="display:inline-block; padding-right: 4px;">
<span>Do Cha Marg, Maharajgunj-3,</span><br>
<span> Kathmandu, Nepal</span>
</div>
<div style="display: inline-block; vertical-align: top;"><a href="https://goo.gl/maps/63ugzTqcftnJNVUH9" target="_blank">
<img src="https://naxa-developers.github.io/email-signature/assets/directions.png" alt="" style="height:'20px'; width: 20px;">
</a></div><a href="https://goo.gl/maps/63ugzTqcftnJNVUH9" target="_blank">
</a>
</div>
<div><a href="https://www.naxa.com.np" target="_blank" style="text-decoration: none;"><span style="color:#0055FF; font-size: 0.8125rem; line-height: 1rem; font-weight: 600;">www.naxa.com.np</span></a>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<div style="border-bottom: solid 1px #D7D7D7;"></div>
<div style="font-size: 0.75rem; font-weight: 400; line-height: 1rem; color: #757575; margin-top: 20px;">
NAXA, founded in 2014, excels in Geo-ICT consulting, using geospatial tech to tackle low-income community challenges. With expertise in digital mapping and data applications, we've completed 200+ projects across Climate Change, Disaster Risk Reduction, and Urban Planning. Our impact has garnered awards from NASA, AUVSI, IBM, World Bank, and the Asian Disaster Preparedness Center.</div>
</div>
</div>
</div>
<script>
function addText() {
var name = document.getElementById("name").value;
var role = document.getElementById("role").value;
var contact = document.getElementById("contact").value;
// Update name
document.getElementById("dynamicName").textContent = name;
// Update role
document.getElementById("dynamicRole").textContent = role;
// Update contact number
document.getElementById("dynamicContact").textContent = contact;
// Display the generated signature
document.getElementById("templateContainer").style.display = "block";
}
function selectText(node) {
node = document.getElementById(node);
if (document.body.createTextRange) {
const range = document.body.createTextRange();
range.moveToElementText(node);
range.select();
} else if (window.getSelection) {
const selection = window.getSelection();
const range = document.createRange();
range.selectNodeContents(node);
selection.removeAllRanges();
selection.addRange(range);
} else {
console.warn("could not select");
}
}
const copyButton = document.querySelector('.copy-btn');
copyButton.addEventListener('click', () => { selectText('templateContainer'); document.execCommand("copy"); alert("copied to clipboard");});
</script>
</body>
</html>