summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--website/static/css/freelancer.css4
-rw-r--r--website/static/img/ajith.pngbin51505 -> 55077 bytes
-rw-r--r--website/static/img/andreas.pngbin101333 -> 122718 bytes
-rw-r--r--website/static/img/jarrod.pngbin95520 -> 195971 bytes
-rw-r--r--website/templates/base.html4
-rw-r--r--website/templates/down.html4
-rw-r--r--website/urls.py5
-rw-r--r--website/views.py7
8 files changed, 16 insertions, 8 deletions
diff --git a/website/static/css/freelancer.css b/website/static/css/freelancer.css
index b130cdc..10b7b7b 100644
--- a/website/static/css/freelancer.css
+++ b/website/static/css/freelancer.css
@@ -192,7 +192,9 @@ header .intro-text .skills {
}
section {
- padding: 100px 0;
+ padding: 150px 0;
+ margin-top: 5%;
+ margin-bottom: -20%;
}
section h2 {
diff --git a/website/static/img/ajith.png b/website/static/img/ajith.png
index 9c7e216..aa7da9f 100644
--- a/website/static/img/ajith.png
+++ b/website/static/img/ajith.png
Binary files differ
diff --git a/website/static/img/andreas.png b/website/static/img/andreas.png
index a412cf3..5741470 100644
--- a/website/static/img/andreas.png
+++ b/website/static/img/andreas.png
Binary files differ
diff --git a/website/static/img/jarrod.png b/website/static/img/jarrod.png
index f9b93c4..655dbaf 100644
--- a/website/static/img/jarrod.png
+++ b/website/static/img/jarrod.png
Binary files differ
diff --git a/website/templates/base.html b/website/templates/base.html
index 3197190..a9c75bc 100644
--- a/website/templates/base.html
+++ b/website/templates/base.html
@@ -155,9 +155,7 @@
</div>
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
- <!-- To configure the contact form email address, go to mail/contact_me.php and update the email address in the PHP file on line 19. -->
- <!-- The form should work on most web servers, but if the form is not working you may need to configure your web server differently. -->
- <form name="sentMessage" id="contactForm" novalidate>
+ <form action="{% url 'website:contact' %}" method="POST" name="sentMessage" id="contactForm">
<div class="row control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
<label>Name</label>
diff --git a/website/templates/down.html b/website/templates/down.html
new file mode 100644
index 0000000..c382393
--- /dev/null
+++ b/website/templates/down.html
@@ -0,0 +1,4 @@
+<center>
+<p>We are making some changes to the website.</p>
+<p>We will be back soon. Stay tuned !</p>
+</center>
diff --git a/website/urls.py b/website/urls.py
index d0488a6..fcc3156 100644
--- a/website/urls.py
+++ b/website/urls.py
@@ -3,8 +3,5 @@ from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^$', 'website.views.home', name='home'),
-
- # ajax urls
- # url(r'^ajax/matching-books/$', 'tbc.views.ajax_matching_books', name='AjaxMatchingBooks'),
-
+ url(r'^contact/', 'website.views.contact', name='contact'),
)
diff --git a/website/views.py b/website/views.py
index 1d5d17b..d36e186 100644
--- a/website/views.py
+++ b/website/views.py
@@ -8,14 +8,19 @@ from django.core.context_processors import csrf
from django.contrib.auth import authenticate, login, logout
from django.contrib.admin.models import CHANGE
from django.contrib.auth.decorators import login_required
+from django.core.mail import send_mail
def home(request):
+ return render_to_response('down.html')
+ if request.method == "POST":
+ return HttpResponse("Working")
return render_to_response('base.html')
def contact(request):
context = {}
+ return HttpResponse("Reached Here")
if request.method == "POST":
sender_name = request.POST['name']
sender_email = request.POST['email']
@@ -26,3 +31,5 @@ def contact(request):
send_mail(subject, message, sender_email, to, fail_silently=True)
context['mailsent'] = True
return render(request, 'base.html', context)
+ else:
+ return HttpResponseRedirect('/')