diff --git a/datacenterlight/locale/de/LC_MESSAGES/django.mo b/datacenterlight/locale/de/LC_MESSAGES/django.mo new file mode 100644 index 00000000..2e17da56 Binary files /dev/null and b/datacenterlight/locale/de/LC_MESSAGES/django.mo differ diff --git a/datacenterlight/locale/de/LC_MESSAGES/django.po b/datacenterlight/locale/de/LC_MESSAGES/django.po new file mode 100644 index 00000000..e17785cf --- /dev/null +++ b/datacenterlight/locale/de/LC_MESSAGES/django.po @@ -0,0 +1,55 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-29 10:50-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: templates/datacenterlight/index.html:55 +msgid "What is it" +msgstr "" + +#: templates/datacenterlight/index.html:58 +msgid "Scale out" +msgstr "" + +#: templates/datacenterlight/index.html:61 +msgid "Our promise" +msgstr "" + +#: templates/datacenterlight/index.html:64 +msgid "Buy VM" +msgstr "" + +#: templates/datacenterlight/index.html:67 +msgid "Contact" +msgstr "kontak" + +#: templates/datacenterlight/index.html:91 +msgid "What is it?" +msgstr "" + +#: templates/datacenterlight/index.html:94 +msgid "I want it!" +msgstr "" + +#: templates/datacenterlight/index.html:117 +msgid "How it works :" +msgstr "" + +#: templates/datacenterlight/index.html:119 +msgid "Reuse existing factory halls intead of building an expensive building." +msgstr "" diff --git a/datacenterlight/static/datacenterlight/css/landing-page.css b/datacenterlight/static/datacenterlight/css/landing-page.css index 9eaf7a52..cb2044b3 100755 --- a/datacenterlight/static/datacenterlight/css/landing-page.css +++ b/datacenterlight/static/datacenterlight/css/landing-page.css @@ -195,6 +195,10 @@ a#forgotpassword { } +.selectpicker { + margin-top: 8px !important; +} + .content-404 h1 { margin: 0 0 15px; font-size: 200px; diff --git a/datacenterlight/static/datacenterlight/img/datacenterlight.png b/datacenterlight/static/datacenterlight/img/datacenterlight.png new file mode 100644 index 00000000..1ae6ff53 Binary files /dev/null and b/datacenterlight/static/datacenterlight/img/datacenterlight.png differ diff --git a/datacenterlight/static/datacenterlight/img/favicon.ico b/datacenterlight/static/datacenterlight/img/favicon.ico index 9cd0fe78..f1c5a80c 100644 Binary files a/datacenterlight/static/datacenterlight/img/favicon.ico and b/datacenterlight/static/datacenterlight/img/favicon.ico differ diff --git a/datacenterlight/templates/datacenterlight/emails/request_access_confirmation.html b/datacenterlight/templates/datacenterlight/emails/request_access_confirmation.html new file mode 100644 index 00000000..4fee1677 --- /dev/null +++ b/datacenterlight/templates/datacenterlight/emails/request_access_confirmation.html @@ -0,0 +1,128 @@ +{% load static from staticfiles %} + + + + + + +Oxygen Invoice + + + + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+ logo + +
+
+ +
+
+
+
+ + + + + + + + + + +
+ Thank you for your request. +
+

You are one step away from being our beta tester!

+ Currently we are running our tests to make sure everything runs perfectly.
+ In the meantime, we would like to ask you a little patience
until our team contacts you with beta access.
+ Thank you!

 
+
+
+
+ + +
Your data center light team
+
+
+
+ + + diff --git a/datacenterlight/templates/datacenterlight/emails/request_access_confirmation.txt b/datacenterlight/templates/datacenterlight/emails/request_access_confirmation.txt new file mode 100644 index 00000000..4fee1677 --- /dev/null +++ b/datacenterlight/templates/datacenterlight/emails/request_access_confirmation.txt @@ -0,0 +1,128 @@ +{% load static from staticfiles %} + + + + + + +Oxygen Invoice + + + + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+ logo + +
+
+ +
+
+
+
+ + + + + + + + + + +
+ Thank you for your request. +
+

You are one step away from being our beta tester!

+ Currently we are running our tests to make sure everything runs perfectly.
+ In the meantime, we would like to ask you a little patience
until our team contacts you with beta access.
+ Thank you!

 
+
+
+
+ + +
Your data center light team
+
+
+
+ + + diff --git a/datacenterlight/templates/datacenterlight/emails/request_access_notification.html b/datacenterlight/templates/datacenterlight/emails/request_access_notification.html new file mode 100644 index 00000000..09531ba6 --- /dev/null +++ b/datacenterlight/templates/datacenterlight/emails/request_access_notification.html @@ -0,0 +1,125 @@ +{% load static from staticfiles %} + + + + + + +Oxygen Invoice + + + + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+ logo + +
+
+ +
+
+
+
+ + + + + + + + + + +
+ An user requested a beta access +
+

User {{email}} requested beta access

 
+
+
+
+ + +
Your data center light team
+
+
+
+ + + diff --git a/datacenterlight/templates/datacenterlight/emails/request_access_notification.txt b/datacenterlight/templates/datacenterlight/emails/request_access_notification.txt new file mode 100644 index 00000000..09531ba6 --- /dev/null +++ b/datacenterlight/templates/datacenterlight/emails/request_access_notification.txt @@ -0,0 +1,125 @@ +{% load static from staticfiles %} + + + + + + +Oxygen Invoice + + + + + + + + + + + + + +
+
+ + +
+ +
+ + + +
+ logo + +
+
+ +
+
+
+
+ + + + + + + + + + +
+ An user requested a beta access +
+

User {{email}} requested beta access

 
+
+
+
+ + +
Your data center light team
+
+
+
+ + + diff --git a/datacenterlight/templates/datacenterlight/index.html b/datacenterlight/templates/datacenterlight/index.html index f61b6b17..c245e65f 100755 --- a/datacenterlight/templates/datacenterlight/index.html +++ b/datacenterlight/templates/datacenterlight/index.html @@ -1,4 +1,5 @@ -{% load staticfiles %} +{% load staticfiles i18n%} +{% get_current_language as LANGUAGE_CODE %} @@ -17,12 +18,14 @@ + + @@ -52,21 +55,38 @@ @@ -84,14 +104,14 @@

datacenterlight.ch

-

Finally, an affordable VM hosting in Switzerland!

+

{% trans "Finally, an affordable VM hosting in Switzerland!" %}


@@ -114,9 +134,9 @@

-

How it works :

    +

    {% trans "How it works :" %}

    • -

      Reuse existing factory halls intead of building an expensive building.

      +

      {% trans "Reuse existing factory halls intead of building an expensive building." %}

    • Being creative, using modern and alternative design for a datacenter.

    • @@ -207,7 +227,7 @@

      Based in Switzerland

      1 core,

      2 GiB RAM,

      -

      15 GiB storage(SSD) (10 CHF)

      +

      15 GiB storage(SSD)

      Buy Now! More Info

@@ -334,6 +354,17 @@ + + + + diff --git a/datacenterlight/views.py b/datacenterlight/views.py index a70e75d5..5de74ebb 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -3,6 +3,7 @@ from .forms import BetaAccessForm from .models import BetaAccess from django.contrib import messages from django.core.urlresolvers import reverse_lazy, reverse +from utils.mailer import BaseEmail class IndexView(CreateView): @@ -18,5 +19,34 @@ class IndexView(CreateView): return success_url def form_valid(self, form): + + context = { + 'base_url': "{0}://{1}".format(self.request.scheme, self.request.get_host()) + } + + email_data = { + 'subject': 'DatacenterLight Beta Access Request', + 'to': form.cleaned_data.get('email'), + 'context': context, + 'template_name': 'request_access_confirmation', + 'template_path': 'datacenterlight/emails/' + } + email = BaseEmail(**email_data) + email.send() + + context.update({ + 'email': form.cleaned_data.get('email') + }) + + email_data = { + 'subject': 'DatacenterLight Beta Access Request', + 'to': 'info@ungleich.ch', + 'context': context, + 'template_name': 'request_access_notification', + 'template_path': 'datacenterlight/emails/' + } + email = BaseEmail(**email_data) + email.send() + messages.add_message(self.request, messages.SUCCESS, self.success_message) return super(IndexView, self).form_valid(form) diff --git a/digitalglarus/locale/de/LC_MESSAGES/django.mo b/digitalglarus/locale/de/LC_MESSAGES/django.mo index 0313fcfd..3200410e 100644 Binary files a/digitalglarus/locale/de/LC_MESSAGES/django.mo and b/digitalglarus/locale/de/LC_MESSAGES/django.mo differ diff --git a/digitalglarus/templates/digitalglarus/supportus.html b/digitalglarus/templates/digitalglarus/supportus.html index f7445447..3b333443 100644 --- a/digitalglarus/templates/digitalglarus/supportus.html +++ b/digitalglarus/templates/digitalglarus/supportus.html @@ -33,6 +33,15 @@ margin-top: 0px; } + + @media only screen and (max-width: 450px) { + + /*body { font-size: 2em; }*/ + .intro-headline-big {font-size: 1.8em !important;} + + + } + {% endblock %} diff --git a/dynamicweb/urls.py b/dynamicweb/urls.py index e2f78903..8999bff7 100644 --- a/dynamicweb/urls.py +++ b/dynamicweb/urls.py @@ -17,7 +17,6 @@ urlpatterns = [ url(r'^index.html$', LandingView.as_view()), url(r'^nodehosting/', NodeJSHostingView.as_view(), name="node.hosting"), url(r'^djangohosting/', DjangoHostingView.as_view(), name="django.hosting"), url(r'^nosystemd/', include('nosystemd.urls', namespace="nosystemd")), - url(r'^datacenterlight', include('datacenterlight.urls', namespace="datacenterlight")), url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')), url(r'^jsi18n/(?P\S+?)/$', 'django.views.i18n.javascript_catalog'), @@ -27,6 +26,7 @@ urlpatterns = [ url(r'^index.html$', LandingView.as_view()), urlpatterns += i18n_patterns('', url(r'^/?$', LandingView.as_view()), url(r'^admin/', include(admin.site.urls)), + url(r'^datacenterlight', include('datacenterlight.urls', namespace="datacenterlight")), url(r'^membership/', include(membership_urls)), url(r'^digitalglarus/', include('digitalglarus.urls', namespace="digitalglarus")), diff --git a/hosting/locale/de/LC_MESSAGES/django.mo b/hosting/locale/de/LC_MESSAGES/django.mo new file mode 100644 index 00000000..11ba904f Binary files /dev/null and b/hosting/locale/de/LC_MESSAGES/django.mo differ