-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
469 additions
and
56 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Style inputs with type="text", select elements and textareas */ | ||
input[type=text], select, textarea { | ||
width: 100%; /* Full width */ | ||
padding: 12px; /* Some padding */ | ||
border: 1px solid #ccc; /* Gray border */ | ||
border-radius: 4px; /* Rounded borders */ | ||
box-sizing: border-box; /* Make sure that padding and width stays in place */ | ||
margin-top: 6px; /* Add a top margin */ | ||
margin-bottom: 16px; /* Bottom margin */ | ||
resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */ | ||
} | ||
|
||
/* Style the submit button with a specific background color etc */ | ||
input[type=submit] { | ||
background-color: #04AA6D; | ||
color: white; | ||
padding: 12px 20px; | ||
border: none; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
} | ||
|
||
/* When moving the mouse over the submit button, add a darker green color */ | ||
input[type=submit]:hover { | ||
background-color: #45a049; | ||
} | ||
|
||
/* Add a background color and some padding around the form */ | ||
.container { | ||
border-radius: 5px; | ||
background-color: #f2f2f2; | ||
padding: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import emailjs from 'emailjs-com'; | ||
import { Form, Input, Button, Typography, DatePicker, Upload } from 'antd'; | ||
|
||
import './contact.css'; | ||
|
||
|
||
export default function ContactUs() { | ||
|
||
|
||
function sendEmail(e) { | ||
e.preventDefault(); | ||
|
||
emailjs.sendForm('gmail', 'template_tld', e.target, 'user_4pQL25dW7YNzoZmVCML9j') | ||
.then((result) => { | ||
console.log(result.text); | ||
}, (error) => { | ||
console.log(error.text); | ||
}); | ||
} | ||
|
||
return ( | ||
<form className="contact-form" onSubmit={sendEmail}> | ||
<div style= {{ padding: '2% 20%' }} > | ||
<h1>Contact Us!!</h1> | ||
<h2>Any question? Just fill the form!</h2> | ||
</div> | ||
<input type="hidden" name="contact_number" /> | ||
<label>Name</label> | ||
<input type="text" name="user_name" /> | ||
<label>Email</label> | ||
<input type="email" name="user_email" /> | ||
<label>Message</label> | ||
<textarea name="message" /> | ||
<input type="submit" value="Send" /> | ||
</form> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters