diff options
Diffstat (limited to 'scripts/contact.js')
| -rw-r--r-- | scripts/contact.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/contact.js b/scripts/contact.js new file mode 100644 index 0000000..e33ac78 --- /dev/null +++ b/scripts/contact.js @@ -0,0 +1,25 @@ +class Contact { + constructor() {} + + Main() { + const data = { + contact: ` + <section id='contact'> + <h1>Contact</h1> + <div class='form'> + <p>Full Name:</p> + <input type='text' name='fullname'/> + <p>Email:</p> + <input type='email' name='email'/> + <p>Message:</p> + <textarea name='message'></textarea><br> + <button id='contact-submit'>Submit</button> + </div> + </section> + ` + } + return data.contact + } +} + +module.exports = () => {return new Contact()} |
