Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayaz1997 authored Sep 6, 2018
1 parent e0a1b8b commit 9281cbf
Show file tree
Hide file tree
Showing 7 changed files with 1,327 additions and 468 deletions.
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
getemisha.tech
getemisha.tech
42 changes: 21 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) 2018 Sourav Kumar Nanda

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
MIT License
Copyright (c) 2018 Sourav Kumar Nanda
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
58 changes: 52 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@

<li><a href="#mu-register">Register</a></li>
<li><a href="#mu-sponsors">Sponsors</a></li>
<li><a href="#mu-contact">Contact</a></li>
<li><a href="#mu-contact">Contact</a></li>
<li><a href="webrage.html">Past Events</a></li>

</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
Expand All @@ -94,10 +96,10 @@



<a class="" href="#"><img src="assets/images/web.png" alt="logo img"></a>
<a class="" href="#"><img src="assets/images/web.png" alt="emisha event logo"></a>

<h2>Web Development Bootcamp</h2>
<p class="mu-event-date-line">22nd July 2018. Bhubaneswar, Odisha</p>
<h2>Odisha's Biggest Hackathon</h2>
<p class="mu-event-date-line">14th October 2018. Bhubaneswar, Odisha</p>

<div class="mu-event-counter-area">
<div id="mu-event-counter">
Expand Down Expand Up @@ -694,16 +696,60 @@ <h2 class="mu-title">Our Sponsors</h2>
<img src="assets/images/sponsor-logo-3.png" alt="Brand Logo">
</div>
</div>
<div class="col-md-2 col-sm-4 col-xs-4">
<div class="col-md-2 col-sm-4 col-xs-4">
<div class="mu-sponsors-single">
<img src="assets/images/sponsor-logo-4.png" alt="Brand Logo">
</div>
</div>


<div class="col-md-2 col-sm-4 col-xs-4">
<div class="mu-sponsors-single">
<img src="assets/images/bugsee.png" alt="Brand Logo">
</div>
</div>

<div class="col-md-2 col-sm-4 col-xs-4">
<div class="mu-sponsors-single">
<img src="assets/images/invision.png" alt="Brand Logo">
</div>
</div>
</div>
</div>

<div class="mu-sponsors-content">
<div class="row">

<div class="col-md-2 col-sm-4 col-xs-4">
<div class="mu-sponsors-single">
<img src="assets/images/acm-logo-long.png" alt="Brand Logo">
</div>
</div>

<div class="col-md-2 col-sm-4 col-xs-4">
<div class="mu-sponsors-single">
<img src="assets/images/sketch-1-logo-png-transparent.png" alt="Brand Logo">
</div>
</div>

<div class="col-md-2 col-sm-4 col-xs-4">
<div class="mu-sponsors-single">
<img src="assets/images/mozilla-campusclub.svg" alt="Brand Logo">
</div>
</div>

<div class="col-md-2 col-sm-4 col-xs-4">
<div class="mu-sponsors-single">
<img src="assets/images/challengerocketnew.jpg" alt="Brand Logo">
</div>
</div>

<div class="col-md-2 col-sm-4 col-xs-4">
<div class="mu-sponsors-single">
<img src="assets/images/hack-society.png" alt="Brand Logo">
</div>
</div>


<!-- End spnonsors brand logo -->

</div>
Expand Down
112 changes: 56 additions & 56 deletions mailer.php
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
<?php
// My modifications to mailer script from:
// http://blog.teamtreehouse.com/create-ajax-contact-form
// Added input sanitizing to prevent injection

// Only process POST reqeusts.
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Get the form fields and remove whitespace.
$name = strip_tags(trim($_POST["name"]));
$name = str_replace(array("\r","\n"),array(" "," "),$name);
$email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL);
// $cont_subject = trim($_POST["subject"]);
$message = trim($_POST["message"]);

// Check that data was sent to the mailer.
if ( empty($name) OR empty($message) OR !filter_var($email, FILTER_VALIDATE_EMAIL)) {
// Set a 400 (bad request) response code and exit.
http_response_code(400);
echo "Oops! There was a problem with your submission. Please complete the form and try again.";
exit;
}

// Set the recipient email address.
// FIXME: Update this to your desired email address.
$recipient = "[email protected]";

// Set the email subject.
$subject = "New contact from $name";

// Build the email content.
$email_content = "Name: $name\n";
$email_content .= "Email: $email\n\n";
// $email_content .= "Subject: $cont_subject\n";
$email_content .= "Message:\n$message\n";

// Build the email headers.
$email_headers = "From: $name <$email>";

// Send the email.
if (mail($recipient, $subject, $email_content, $email_headers)) {
// Set a 200 (okay) response code.
http_response_code(200);
echo "Thank You! Your message has been sent.";
} else {
// Set a 500 (internal server error) response code.
http_response_code(500);
echo "Oops! Something went wrong and we couldn't send your message.";
}

} else {
// Not a POST request, set a 403 (forbidden) response code.
http_response_code(403);
echo "There was a problem with your submission, please try again.";
}

?>
<?php
// My modifications to mailer script from:
// http://blog.teamtreehouse.com/create-ajax-contact-form
// Added input sanitizing to prevent injection

// Only process POST reqeusts.
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Get the form fields and remove whitespace.
$name = strip_tags(trim($_POST["name"]));
$name = str_replace(array("\r","\n"),array(" "," "),$name);
$email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL);
// $cont_subject = trim($_POST["subject"]);
$message = trim($_POST["message"]);

// Check that data was sent to the mailer.
if ( empty($name) OR empty($message) OR !filter_var($email, FILTER_VALIDATE_EMAIL)) {
// Set a 400 (bad request) response code and exit.
http_response_code(400);
echo "Oops! There was a problem with your submission. Please complete the form and try again.";
exit;
}

// Set the recipient email address.
// FIXME: Update this to your desired email address.
$recipient = "[email protected]";

// Set the email subject.
$subject = "New contact from $name";

// Build the email content.
$email_content = "Name: $name\n";
$email_content .= "Email: $email\n\n";
// $email_content .= "Subject: $cont_subject\n";
$email_content .= "Message:\n$message\n";

// Build the email headers.
$email_headers = "From: $name <$email>";

// Send the email.
if (mail($recipient, $subject, $email_content, $email_headers)) {
// Set a 200 (okay) response code.
http_response_code(200);
echo "Thank You! Your message has been sent.";
} else {
// Set a 500 (internal server error) response code.
http_response_code(500);
echo "Oops! Something went wrong and we couldn't send your message.";
}

} else {
// Not a POST request, set a 403 (forbidden) response code.
http_response_code(403);
echo "There was a problem with your submission, please try again.";
}

?>
6 changes: 3 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ button:focus {
/*--------------------*/

#mu-hero {
background-image: url("assets/images/head-featured-bg.jpg");
background-image: url("assets/images/head-featured-bg.png");
display: inline;
float: left;
width: 100%;
Expand Down Expand Up @@ -425,7 +425,7 @@ button:focus {


#mu-video {
background-image: url("assets/images/about-video-bg.jpg");
background-image: url("assets/images/about-video-bg2.jpg");
background-attachment: fixed;
background-position: center center;
-webkit-background-size: cover;
Expand Down Expand Up @@ -861,7 +861,7 @@ button:focus {
/*--------------------*/

#mu-register {
background-image: url("assets/images/register-bg.jpg");
background-image: url("assets/images/register-bg.png");
background-position: center center;
background-size: cover;
background-attachment: fixed;
Expand Down
Loading

0 comments on commit 9281cbf

Please sign in to comment.