-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #435 from shreeyanshi123/feature-branch
completed Contact us form
- Loading branch information
Showing
5 changed files
with
184 additions
and
0 deletions.
There are no files selected for viewing
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,28 @@ | ||
{ | ||
"tasks": [ | ||
{ | ||
"type": "cppbuild", | ||
"label": "C/C++: g++.exe build active file", | ||
"command": "C:\\MinGW\\bin\\g++.exe", | ||
"args": [ | ||
"-fdiagnostics-color=always", | ||
"-g", | ||
"${file}", | ||
"-o", | ||
"${fileDirname}\\${fileBasenameNoExtension}.exe" | ||
], | ||
"options": { | ||
"cwd": "${fileDirname}" | ||
}, | ||
"problemMatcher": [ | ||
"$gcc" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"detail": "Task generated by Debugger." | ||
} | ||
], | ||
"version": "2.0.0" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
* { | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #f3f4f6; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
|
||
.login-container { | ||
background-color: #fff; | ||
padding: 30px; | ||
border-radius: 10px; | ||
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); | ||
width: 100%; | ||
max-width: 400px; | ||
text-align: center; | ||
} | ||
|
||
.form-group { | ||
margin-bottom: 15px; | ||
text-align: left; | ||
} | ||
|
||
.form-group label { | ||
font-size: 14px; | ||
color: #666; | ||
} | ||
|
||
.form-group input { | ||
padding: 10px; | ||
width: 100%; | ||
font-size: 16px; | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
margin-top: 5px; | ||
} | ||
|
||
.form-group input:focus { | ||
outline: none; | ||
border-color: #007bff; | ||
} | ||
|
||
.login-btn { | ||
padding: 12px; | ||
background-color: #007bff; | ||
color: #fff; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
} | ||
|
||
|
||
|
||
.form-group2 input { | ||
padding: 10px; | ||
width: 100%; | ||
font-size: 16px; | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
margin-top: 5px; | ||
} | ||
|
||
.form-group2 input:focus { | ||
outline: none; | ||
border-color: #007bff; | ||
} | ||
.form-group2 label { | ||
font-size: 14px; | ||
color: #666; | ||
} | ||
.form-group2 input{ | ||
width: 100%; | ||
height: 150px; | ||
} | ||
|
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,59 @@ | ||
import React from 'react' | ||
import './Contact.css' | ||
import { useNavigate } from 'react-router-dom' | ||
|
||
|
||
const Contact = () => { | ||
const navigate = useNavigate(); | ||
|
||
const handleSubmit = (e) => { | ||
e.preventDefault(); | ||
|
||
navigate('/'); | ||
}; | ||
return ( | ||
|
||
<div className="login-container"> | ||
|
||
<h2>Contact Us</h2> | ||
<form className='login-form' onSubmit={handleSubmit}> | ||
<div className='form-group'> | ||
<label htmlFor='email'>Email</label> | ||
<input | ||
type="email" | ||
name="email" | ||
className='' | ||
placeholder="Enter your email" | ||
/> | ||
</div> | ||
<div className="form-group"> | ||
<label htmlFor="name">Name:</label> | ||
<input | ||
type="text" | ||
name="name" | ||
|
||
className='' | ||
placeholder="Enter your name" | ||
/> | ||
|
||
</div> | ||
<div className="form-group2"> | ||
<label htmlFor="msg">Message:</label> | ||
<input | ||
type="text-box" | ||
name="msg" | ||
|
||
className='' | ||
placeholder="Enter your msg" | ||
/> | ||
|
||
</div> | ||
<button type="submit" className="login-btn">Send</button> | ||
</form> | ||
|
||
|
||
</div > | ||
) | ||
} | ||
|
||
export default Contact |
cbeefb5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployment failed with the following error: