-
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.
- Loading branch information
Showing
3 changed files
with
119 additions
and
65 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,20 @@ | ||
<?php | ||
if ($_SERVER["REQUEST_METHOD"] == "POST") { | ||
$name = htmlspecialchars($_POST['name']); | ||
$email = htmlspecialchars($_POST['email']); | ||
$message = htmlspecialchars($_POST['message']); | ||
|
||
$to = "[email protected]"; // Replace with your email address | ||
$subject = "New Contact Form Submission"; | ||
$body = "Name: $name\nEmail: $email\n\nMessage:\n$message"; | ||
$headers = "From: $email"; | ||
|
||
if (mail($to, $subject, $body, $headers)) { | ||
echo "Message successfully sent."; | ||
} else { | ||
echo "Message delivery failed."; | ||
} | ||
} else { | ||
echo "Invalid request method."; | ||
} | ||
?> |
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,77 @@ | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
background-color: #f4f4f4; | ||
} | ||
|
||
h2 { | ||
font-weight: bold; | ||
} | ||
|
||
header { | ||
background-color: #333; | ||
color: #fff; | ||
padding: 10px 0; | ||
text-align: center; | ||
} | ||
|
||
nav { | ||
display: flex; | ||
justify-content: center; | ||
background-color: #444; | ||
} | ||
|
||
nav a { | ||
color: #fff; | ||
padding: 14px 20px; | ||
text-decoration: none; | ||
text-align: center; | ||
} | ||
|
||
nav a:hover { | ||
background-color: #555; | ||
} | ||
|
||
.container { | ||
padding: 20px 100px; | ||
} | ||
|
||
.gallery img { | ||
width: 100%; | ||
height: auto; | ||
} | ||
|
||
.gallery { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | ||
gap: 10px; | ||
} | ||
|
||
.custom-submit-button { | ||
background-color: #4CAF50; | ||
color: white; | ||
padding: 1em; | ||
border: none; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
font-size: 1em; | ||
transition: background-color 0.3s ease; | ||
} | ||
|
||
.custom-submit-button:hover { | ||
background-color: #45a049; | ||
} | ||
|
||
.custom-submit-button:active { | ||
background-color: #3e8e41; | ||
} | ||
|
||
footer { | ||
background-color: #333; | ||
color: #fff; | ||
text-align: center; | ||
padding: 10px 0; | ||
bottom: 0; | ||
width: 100%; | ||
} |
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