-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
152 lines (115 loc) · 5.52 KB
/
contact.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Siddharth Patel</title>
<link rel="shortcut icon" type="image/x-icon" href=".\images\website_Logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1" />
<link href="https://fonts.googleapis.com/css2?family=Russo+One&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@500&family=Russo+One&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="default.css">
<link id="theme-style" rel="stylesheet" type="text/css" href="">
<link rel="stylesheet" type="text/css" href="prism.css">
</head>
<body>
<section class="s1">
<div class="main-container">
<div class="greeting-wrapper">
<h1>Get In Touch</h1>
</div>
<div class="intro-wrapper">
<div class="nav-wrapper">
<!-- Link around dots-wrapper added after tutorial video -->
<a href="index.html">
<div class="dots-wrapper">
<div id="dot-1" class="browser-dot"></div>
<div id="dot-2" class="browser-dot"></div>
<div id="dot-3" class="browser-dot"></div>
</div>
</a>
<ul id="navigation">
<li><a href="index.html#contact">Back</a></li>
</ul>
</div>
<div class="main-container">
<div class="main-container">
<a href=""></a>
<!--<h3 style="text-align: center;">Get In Touch</h3>-->
<form method="post">
<a name="contact"></a>
<label>Name</label>
<input id="name" class="input-field" type="text" name="name">
<label>Subject</label>
<input id="subject" class="input-field" type="text" name="subject">
<label>Email</label>
<input id="email" class="input-field" type="text" name="email">
<label>Message</label>
<textarea id="message" class="input-field" name="message"></textarea>
<input id="submit-btn" type="submit" value="Send">
</form>
</div>
<h5 style="text-align: center;line-height: 0;">Personalize Theme</h5>
<div id="theme-options-wrapper">
<div data-mode="light" id="light-mode" class="theme-dot"></div>
<div data-mode="blue" id="blue-mode" class="theme-dot"></div>
<div data-mode="green" id="green-mode" class="theme-dot"></div>
<div data-mode="purple" id="purple-mode" class="theme-dot"></div>
</div>
<p id="settings-note">*Theme settings will be saved for<br>your next vist</p>
</div>
<div class="right-column">
</div>
</div>
</div>
</section>
<section class="s2">
<h3 style="text-align: center;">Share my website</h3>
<div class="post-wrapper">
<div>
<button class="button" data-sharer="email" data-title="Siddharth's Portfolio: " data-url="https://siddharthpatelde.github.io/Portfolio/" data-subject="Sharing Siddharth's Portfolio" data-to="someone@xyz.com">Share via Email</button>
</div>
<div>
<button class="button" data-sharer="whatsapp" data-title="Checkout Siddharths Portfolio" data-url="https://siddharthpatelde.github.io/Portfolio/">Share on Whatsapp</button>
</div>
<div>
<button class="button" data-sharer="linkedin" data-url="https://ellisonleao.github.io/sharer.js/">Share on Linkedin</button>
</div>
</div>
</section>
<script src="https://cdn.jsdelivr.net/npm/sharer.js@latest/sharer.min.js"></script>
<script src="https://smtpjs.com/v3/smtp.js">
</script>
<script>
var submit = document.getElementById('submit-btn')
submit.addEventListener('click',function(e) {
e.preventDefault()
var name = document.getElementById('name').value;
var email = document.getElementById('email').value;
var subject = document.getElementById('subject').value;
var message = document.getElementById('message').value;
var body = 'name: ' +name + '<br/> email: ' + email +'<br/> subject: ' + subject +'<br/> message: ' + message;
Email.send({
Host : "smtp.elasticemail.com",
Username : "website.inquiry.not.spam@gmail.com",
Password : "EDC6FEFBB8859093FA241A94A3C90A828FF1",
To : 'siddharthanghan@gmail.com',
From :'website.inquiry.not.spam@gmail.com',
Subject : subject,
Body : body
}).then(
message => alert(message)
);
})
</script>
<script type="text/javascript" src="script.js"></script>
</body>
</html>
<!--Host : "smtp.gmail.com",
Username : "siddharthanghan@gmail.com",
Password : "nfenppthhzfgoqbv",
To : 'siddharthanghan@gmail.com',
From : email,
Subject : subject,
Body : body
website@gmail 5E11F5637FE8192484871488F30B62A05488
siddharth@gmail
-->