All major DCL plugins added
This commit is contained in:
parent
0d4af5758d
commit
d85e1c671b
25 changed files with 1052 additions and 304 deletions
104
datacenterlight/cms_models.py
Normal file
104
datacenterlight/cms_models.py
Normal file
|
@ -0,0 +1,104 @@
|
||||||
|
from djangocms_text_ckeditor.fields import HTMLField
|
||||||
|
from cms.models.pluginmodel import CMSPlugin
|
||||||
|
from django.db import models
|
||||||
|
from django.utils.safestring import mark_safe
|
||||||
|
from filer.fields.image import FilerImageField
|
||||||
|
|
||||||
|
# Models for CMS Plugins
|
||||||
|
|
||||||
|
|
||||||
|
class DCLSectionPluginModel(CMSPlugin):
|
||||||
|
heading = models.CharField(
|
||||||
|
blank=True, null=True, max_length=100,
|
||||||
|
help_text='An optional heading for the Section',
|
||||||
|
)
|
||||||
|
content = HTMLField()
|
||||||
|
TEXT_DIRECTIONS = (
|
||||||
|
('left', 'Left'),
|
||||||
|
('right', 'Right')
|
||||||
|
)
|
||||||
|
text_direction = models.CharField(
|
||||||
|
choices=TEXT_DIRECTIONS, max_length=10, default=True,
|
||||||
|
help_text='The alignment of text in the section'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class DCLLinkPluginModel(CMSPlugin):
|
||||||
|
target = models.CharField(
|
||||||
|
max_length=100,
|
||||||
|
help_text='Url or #id to navigate to'
|
||||||
|
)
|
||||||
|
text = models.CharField(
|
||||||
|
max_length=50,
|
||||||
|
help_text='Text for the menu item'
|
||||||
|
)
|
||||||
|
title = models.CharField(
|
||||||
|
blank=True, null=True, max_length=100,
|
||||||
|
help_text=(
|
||||||
|
'Optional title text, that will be shown when a user '
|
||||||
|
'hovers over the link'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
separator = models.BooleanField(
|
||||||
|
default=False,
|
||||||
|
help_text='Select to include a separator after the previous link'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class DCLNavbarDropdownPluginModel(CMSPlugin):
|
||||||
|
target = models.URLField(
|
||||||
|
blank=True, null=True, max_length=100,
|
||||||
|
help_text='Optional Url or #id to navigate on click'
|
||||||
|
)
|
||||||
|
text = models.CharField(
|
||||||
|
max_length=50,
|
||||||
|
help_text='Text for the dropdown toggle'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class DCLContactPluginModel(CMSPlugin):
|
||||||
|
heading = models.CharField(max_length=100, default="Contact", blank=True)
|
||||||
|
organization_name = models.CharField(
|
||||||
|
max_length=100, default="ungleich GmbH", blank=True
|
||||||
|
)
|
||||||
|
email = models.EmailField(max_length=200, default="info@ungleich.ch")
|
||||||
|
address = models.CharField(
|
||||||
|
max_length=100, default="In der Au 7, Schwanden 8762", blank=True
|
||||||
|
)
|
||||||
|
country = models.CharField(
|
||||||
|
max_length=100, default="Switzerland", blank=True
|
||||||
|
)
|
||||||
|
form_header = models.CharField(
|
||||||
|
max_length=100, default="Send us a message.", blank=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class DCLFooterPluginModel(CMSPlugin):
|
||||||
|
copyright_label = models.CharField(
|
||||||
|
max_length=100, default='ungleich GmbH', blank=True,
|
||||||
|
help_text='Name of the company alongside the copyright year'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class DCLSectionIconPluginModel(CMSPlugin):
|
||||||
|
fontawesome_icon_name = models.CharField(
|
||||||
|
max_length=30,
|
||||||
|
help_text=mark_safe(
|
||||||
|
'Name of the fontawesome icon to use. '
|
||||||
|
'<a href="https://fontawesome.com/v4.7.0/icons/">Refer docs.</a>'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class DCLSectionImagePluginModel(CMSPlugin):
|
||||||
|
image = FilerImageField(
|
||||||
|
on_delete=models.CASCADE,
|
||||||
|
help_text=(
|
||||||
|
'Image file to be used in section. Add multiple plugins '
|
||||||
|
'to add more than one image'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
caption = models.CharField(
|
||||||
|
max_length=100, null=True, blank=True,
|
||||||
|
help_text='Optional caption for the image.'
|
||||||
|
)
|
95
datacenterlight/cms_plugins.py
Normal file
95
datacenterlight/cms_plugins.py
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
from cms.plugin_base import CMSPluginBase
|
||||||
|
from cms.plugin_pool import plugin_pool
|
||||||
|
from cms.models.pluginmodel import CMSPlugin
|
||||||
|
|
||||||
|
from .cms_models import (
|
||||||
|
DCLSectionPluginModel, DCLLinkPluginModel,
|
||||||
|
DCLNavbarDropdownPluginModel, DCLContactPluginModel,
|
||||||
|
DCLFooterPluginModel, DCLSectionIconPluginModel,
|
||||||
|
DCLSectionImagePluginModel
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@plugin_pool.register_plugin
|
||||||
|
class DCLCalculatorPlugin(CMSPluginBase):
|
||||||
|
module = "Datacenterlight"
|
||||||
|
model = DCLSectionPluginModel
|
||||||
|
render_template = "datacenterlight/cms/calculator.html"
|
||||||
|
cache = False
|
||||||
|
|
||||||
|
|
||||||
|
@plugin_pool.register_plugin
|
||||||
|
class DCLSectionPlugin(CMSPluginBase):
|
||||||
|
module = "Datacenterlight"
|
||||||
|
model = DCLSectionPluginModel
|
||||||
|
render_template = "datacenterlight/cms/section.html"
|
||||||
|
cache = False
|
||||||
|
allow_children = True
|
||||||
|
child_classes = ['DCLSectionIconPlugin', 'DCLSectionImagePlugin']
|
||||||
|
|
||||||
|
|
||||||
|
@plugin_pool.register_plugin
|
||||||
|
class DCLNavbarPlugin(CMSPluginBase):
|
||||||
|
module = "Datacenterlight"
|
||||||
|
model = CMSPlugin
|
||||||
|
render_template = "datacenterlight/cms/navbar.html"
|
||||||
|
cache = False
|
||||||
|
allow_children = True
|
||||||
|
child_classes = ['DCLLinkPlugin', 'DCLNavbarDropdownPlugin']
|
||||||
|
|
||||||
|
|
||||||
|
@plugin_pool.register_plugin
|
||||||
|
class DCLLinkPlugin(CMSPluginBase):
|
||||||
|
module = "Datacenterlight"
|
||||||
|
model = DCLLinkPluginModel
|
||||||
|
render_template = "datacenterlight/cms/link.html"
|
||||||
|
cache = False
|
||||||
|
require_parent = True
|
||||||
|
|
||||||
|
|
||||||
|
@plugin_pool.register_plugin
|
||||||
|
class DCLNavbarDropdownPlugin(CMSPluginBase):
|
||||||
|
module = "Datacenterlight"
|
||||||
|
model = DCLNavbarDropdownPluginModel
|
||||||
|
render_template = "datacenterlight/cms/navbar_dropdown.html"
|
||||||
|
cache = False
|
||||||
|
allow_children = True
|
||||||
|
child_classes = ['DCLLinkPlugin']
|
||||||
|
require_parent = True
|
||||||
|
parent_classes = ['DCLNavbarPlugin']
|
||||||
|
|
||||||
|
|
||||||
|
@plugin_pool.register_plugin
|
||||||
|
class DCLContactPlugin(CMSPluginBase):
|
||||||
|
module = "Datacenterlight"
|
||||||
|
model = DCLContactPluginModel
|
||||||
|
render_template = "datacenterlight/cms/contact.html"
|
||||||
|
cache = False
|
||||||
|
|
||||||
|
|
||||||
|
@plugin_pool.register_plugin
|
||||||
|
class DCLFooterPlugin(CMSPluginBase):
|
||||||
|
module = "Datacenterlight"
|
||||||
|
model = DCLFooterPluginModel
|
||||||
|
render_template = "datacenterlight/cms/footer.html"
|
||||||
|
cache = False
|
||||||
|
allow_children = True
|
||||||
|
child_classes = ['DCLLinkPlugin']
|
||||||
|
|
||||||
|
|
||||||
|
@plugin_pool.register_plugin
|
||||||
|
class DCLSectionIconPlugin(CMSPluginBase):
|
||||||
|
module = "Datacenterlight"
|
||||||
|
model = DCLSectionIconPluginModel
|
||||||
|
render_template = "datacenterlight/cms/section_icon.html"
|
||||||
|
cache = False
|
||||||
|
require_parent = True
|
||||||
|
|
||||||
|
|
||||||
|
@plugin_pool.register_plugin
|
||||||
|
class DCLSectionImagePlugin(CMSPluginBase):
|
||||||
|
module = "Datacenterlight"
|
||||||
|
model = DCLSectionImagePluginModel
|
||||||
|
render_template = "datacenterlight/cms/section_image.html"
|
||||||
|
cache = False
|
||||||
|
require_parent = True
|
134
datacenterlight/migrations/0012_dclcalculatorpluginmodel.py
Normal file
134
datacenterlight/migrations/0012_dclcalculatorpluginmodel.py
Normal file
|
@ -0,0 +1,134 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.9.4 on 2018-02-27 22:29
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
import djangocms_text_ckeditor.fields
|
||||||
|
import filer.fields.image
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('cms', '0014_auto_20160404_1908'),
|
||||||
|
('datacenterlight', '0011_auto_20180220_1423'),
|
||||||
|
('filer', '0005_auto_20171219_1856'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='DCLSectionPluginModel',
|
||||||
|
fields=[
|
||||||
|
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
|
||||||
|
('heading', models.CharField(
|
||||||
|
blank=True, help_text='An optional heading for the Section', max_length=100, null=True)),
|
||||||
|
('content', djangocms_text_ckeditor.fields.HTMLField()),
|
||||||
|
('text_direction', models.CharField(choices=[
|
||||||
|
('left', 'Left'), ('right', 'Right')], default=True, help_text='The alignment of text in the section', max_length=10)),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
|
bases=('cms.cmsplugin',),
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='DCLNavbarDropdownPluginModel',
|
||||||
|
fields=[
|
||||||
|
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
|
||||||
|
('text', models.CharField(
|
||||||
|
help_text='Text for the dropdown toggle', max_length=50)),
|
||||||
|
('target', models.URLField(
|
||||||
|
blank=True, help_text='Optional Url or #id to navigate on click', max_length=100, null=True)),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
|
bases=('cms.cmsplugin',),
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='DCLContactPluginModel',
|
||||||
|
fields=[
|
||||||
|
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
|
||||||
|
('heading', models.CharField(
|
||||||
|
blank=True, default='Contact', max_length=100)),
|
||||||
|
('organization_name', models.CharField(
|
||||||
|
blank=True, default='ungleich GmbH', max_length=100)),
|
||||||
|
('email', models.EmailField(
|
||||||
|
default='info@ungleich.ch', max_length=200)),
|
||||||
|
('address', models.CharField(blank=True,
|
||||||
|
default='In der Au 7, Schwanden 8762', max_length=100)),
|
||||||
|
('country', models.CharField(blank=True,
|
||||||
|
default='Switzerland', max_length=100)),
|
||||||
|
('form_header', models.CharField(blank=True,
|
||||||
|
default='Send us a message.', max_length=100)),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
|
bases=('cms.cmsplugin',),
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='DCLFooterPluginModel',
|
||||||
|
fields=[
|
||||||
|
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
|
||||||
|
('copyright_label', models.CharField(blank=True, default='ungleich GmbH',
|
||||||
|
help_text='Name of the company alongside the copyright year', max_length=100)),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
|
bases=('cms.cmsplugin',),
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='DCLLinkPluginModel',
|
||||||
|
fields=[
|
||||||
|
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
|
||||||
|
('target', models.CharField(
|
||||||
|
help_text='Url or #id to navigate to', max_length=100)),
|
||||||
|
('text', models.CharField(
|
||||||
|
help_text='Text for the menu item', max_length=50)),
|
||||||
|
('title', models.CharField(
|
||||||
|
blank=True, help_text='Optional title text, that will be shown when a user hovers over the link', max_length=100, null=True)),
|
||||||
|
('separator', models.BooleanField(default=False,
|
||||||
|
help_text='Select to include a separator after the previous link')),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
|
bases=('cms.cmsplugin',),
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='DCLSectionIconPluginModel',
|
||||||
|
fields=[
|
||||||
|
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
|
||||||
|
('fontawesome_icon_name', models.CharField(
|
||||||
|
help_text='Name of the fontawesome icon to use. <a href="https://fontawesome.com/v4.7.0/icons/">Refer docs.</a>', max_length=30)),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
|
bases=('cms.cmsplugin',),
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='DCLSectionImagePluginModel',
|
||||||
|
fields=[
|
||||||
|
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
|
||||||
|
('caption', models.CharField(
|
||||||
|
blank=True, help_text='Optional caption for the image.', max_length=100, null=True)),
|
||||||
|
('image', filer.fields.image.FilerImageField(help_text='Image file to be used in section. Add multiple plugins to add more than one image',
|
||||||
|
on_delete=django.db.models.deletion.CASCADE, to='filer.Image')),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
|
bases=('cms.cmsplugin',),
|
||||||
|
),
|
||||||
|
]
|
|
@ -29,3 +29,6 @@ class ContactUs(models.Model):
|
||||||
email = models.CharField(max_length=250)
|
email = models.CharField(max_length=250)
|
||||||
message = models.TextField()
|
message = models.TextField()
|
||||||
field = models.DateTimeField(auto_now_add=True)
|
field = models.DateTimeField(auto_now_add=True)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.name
|
||||||
|
|
164
datacenterlight/static/datacenterlight/css/header-slider.css
Normal file
164
datacenterlight/static/datacenterlight/css/header-slider.css
Normal file
|
@ -0,0 +1,164 @@
|
||||||
|
.header_slider > .carousel .carousel-inner {
|
||||||
|
min-height: 95vh;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider > .carousel .carousel-inner > .next,
|
||||||
|
.header_slider > .carousel .carousel-inner > .prev {
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider .carousel-indicators {
|
||||||
|
width: 100%;
|
||||||
|
left: 0;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider .carousel-indicators li {
|
||||||
|
margin-right: 25px;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider .carousel-indicators li.active {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider .carousel-control {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider .carousel-control .fa {
|
||||||
|
font-size: 2em;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
margin-top: -50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider > .carousel .item {
|
||||||
|
background: rgba(0,0,0,0.5);
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider > .carousel .item .container {
|
||||||
|
overflow: auto;
|
||||||
|
padding: 50px 20px 60px;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: flex-end;
|
||||||
|
/* background: rgba(0,0,0,0.5); */
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider .intro-cap {
|
||||||
|
margin: 0;
|
||||||
|
text-align: right;
|
||||||
|
line-height: 1.1;
|
||||||
|
font-size: 23px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider .btn-trans {
|
||||||
|
align-self: flex-end;
|
||||||
|
z-index: 2;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.header_slider .intro-cap {
|
||||||
|
font-size: 2.5em;
|
||||||
|
}
|
||||||
|
.header_slider .carousel-control {
|
||||||
|
width: 50px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.header_slider .carousel-control .fa-angle-left {
|
||||||
|
left: 25px;
|
||||||
|
}
|
||||||
|
.header_slider .carousel-control .fa-angle-right {
|
||||||
|
right: 25px;
|
||||||
|
}
|
||||||
|
.header_slider .carousel-control .fa {
|
||||||
|
font-size: 4em;
|
||||||
|
}
|
||||||
|
.header_slider > .carousel .item .container {
|
||||||
|
overflow: auto;
|
||||||
|
padding: 75px 50px;
|
||||||
|
}
|
||||||
|
.header_slider .btn-trans {
|
||||||
|
padding: 8px 15px;
|
||||||
|
min-width: 175px;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
font-size: 1.25em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 992px) {
|
||||||
|
.header_slider .intro-cap {
|
||||||
|
font-size: 3.25em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider .intro_lead {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 1.55em;
|
||||||
|
text-align: right;
|
||||||
|
line-height: 1.4;
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.header_slider .intro_lead {
|
||||||
|
font-size: 1.1em;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header_slider .carousel-indicators li {
|
||||||
|
margin: 1px 25px;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
.header_slider .carousel-indicators li.active {
|
||||||
|
margin: 0 25px;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg_img {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -1;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg_vid {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -1;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-aspect-ratio: 16/9) {
|
||||||
|
.bg_vid > video {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-aspect-ratio: 16/9) {
|
||||||
|
.bg_vid > video {
|
||||||
|
/* width: auto; */
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
|
@ -19,17 +19,6 @@ textarea {
|
||||||
* blue dark #29427A
|
* blue dark #29427A
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
.lead {
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.lead-right {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
|
box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
|
||||||
}
|
}
|
||||||
|
@ -102,14 +91,32 @@ textarea {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-transparent .navbar-nav>li>a {
|
.navbar-transparent .navbar-nav>li a {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-transparent .navbar-nav>li>a:focus,
|
.navbar-transparent .navbar-nav>li a:focus,
|
||||||
.navbar-transparent .navbar-nav>li>a:hover {
|
.navbar-transparent .navbar-nav>li a:active,
|
||||||
|
.navbar-transparent .navbar-nav>li a:hover {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .dcl-link {
|
||||||
|
display: block;
|
||||||
|
padding: 15px;
|
||||||
|
color: #777;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .dcl-link:focus,
|
||||||
|
.navbar .dcl-link:active,
|
||||||
|
.navbar .dcl-link:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .dropdown-menu .dcl-link {
|
||||||
|
padding: 1px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-transparent .navbar-nav>li>.on-hover-border {
|
.navbar-transparent .navbar-nav>li>.on-hover-border {
|
||||||
|
@ -195,8 +202,8 @@ textarea {
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu>li>a:focus,
|
.dropdown-menu>li a:focus,
|
||||||
.dropdown-menu>li>a:hover {
|
.dropdown-menu>li a:hover {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
text-decoration: underline !important;
|
text-decoration: underline !important;
|
||||||
}
|
}
|
||||||
|
@ -354,11 +361,6 @@ textarea {
|
||||||
font-weight: 300 !important;
|
font-weight: 300 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.new-lead {
|
|
||||||
font-weight: 300 !important;
|
|
||||||
font-size: 21px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.split-section .split-text .split-title {
|
.split-section .split-text .split-title {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
|
@ -394,46 +396,49 @@ textarea {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.split-section.right .split-text {
|
.split-section.right .split-text ul,
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.split-section.right .split-text ul {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.split-section.left .split-text {
|
.split-section.left .split-text {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.split-section.right .split-text .split-title h2 {
|
.split-section.right .split-text {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.split-section.left .split-text .split-title h2 {
|
.split-section .split-text .split-title::before {
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.split-section.right .split-text .split-title::before {
|
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background: #29427A;
|
background: #29427A;
|
||||||
height: 7px;
|
height: 7px;
|
||||||
width: 70px;
|
width: 70px;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.split-section.right .split-text .split-title::before {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.split-section.left .split-text .split-title::before {
|
.split-section.left .split-text .split-title::before {
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
background: #29427A;
|
|
||||||
height: 7px;
|
|
||||||
width: 70px;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section-figure {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-figure .cms-plugin {
|
||||||
|
padding: 10px;
|
||||||
|
flex-basis: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 420px) {
|
||||||
|
.section-figure .cms-plugin {
|
||||||
|
flex-basis: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.pricing-section {
|
.pricing-section {
|
||||||
padding: 80px 0 !important;
|
padding: 80px 0 !important;
|
||||||
background: -webkit-linear-gradient(top, #f0f4f7, #fff) no-repeat;
|
background: -webkit-linear-gradient(top, #f0f4f7, #fff) no-repeat;
|
||||||
|
@ -461,8 +466,6 @@ textarea {
|
||||||
padding: 15px 40px;
|
padding: 15px 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pricing-section .card .title h3 {}
|
|
||||||
|
|
||||||
.pricing-section .card .price {
|
.pricing-section .card .price {
|
||||||
background: #5A74AF;
|
background: #5A74AF;
|
||||||
padding: 22px;
|
padding: 22px;
|
||||||
|
@ -792,43 +795,11 @@ tech-sub-sec h2 {
|
||||||
/*Pricing page*/
|
/*Pricing page*/
|
||||||
|
|
||||||
.price-calc-section {
|
.price-calc-section {
|
||||||
padding: 80px 40px !important;
|
|
||||||
background: -webkit-linear-gradient(top, #f0f4f7, #fff) no-repeat;
|
|
||||||
background: linear-gradient(to bottom, #f0f4f7, #fff) no-repeat;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.price-calc-section .text {
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price-calc-section .text .section-heading {
|
|
||||||
font-size: 48px;
|
|
||||||
line-height: 48px;
|
|
||||||
padding-bottom: 27px;
|
|
||||||
color: #3a3a3a;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
position: relative;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price-calc-section .text .description {
|
|
||||||
font-size: 20px;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price-calc-section .text .section-heading::before {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
background: #29427A;
|
|
||||||
height: 7px;
|
|
||||||
width: 70px;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price-calc-section .card {
|
.price-calc-section .card {
|
||||||
width: 50%;
|
width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
|
||||||
|
@ -839,21 +810,6 @@ tech-sub-sec h2 {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.price-calc-section .landing {
|
|
||||||
width: 100% !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-padding {
|
|
||||||
padding: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price-calc-section .card .img-beta {
|
|
||||||
position: absolute;
|
|
||||||
top: 5px;
|
|
||||||
width: 60px;
|
|
||||||
left: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.price-calc-section .card .title {
|
.price-calc-section .card .title {
|
||||||
padding: 15px 40px;
|
padding: 15px 40px;
|
||||||
}
|
}
|
||||||
|
@ -950,8 +906,6 @@ tech-sub-sec h2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*Changed class****.price-calc-section .card .description.input input*/
|
/*Changed class****.price-calc-section .card .description.input input*/
|
||||||
|
|
||||||
.price-calc-section .card .description input {
|
.price-calc-section .card .description input {
|
||||||
|
@ -1009,14 +963,17 @@ tech-sub-sec h2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(max-width:991px) {
|
@media(max-width:991px) {
|
||||||
.pricing-section .text {
|
.pricing-section .split-text {
|
||||||
text-align: center;
|
text-align: center !important;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
}
|
}
|
||||||
.pricing-section .text .section-heading::before {
|
.pricing-section .split-text .split-title::before {
|
||||||
left: 50%;
|
left: 50% !important;
|
||||||
transform: translate(-50%, 0);
|
transform: translate(-50%, 0);
|
||||||
}
|
}
|
||||||
|
.pricing-section .split-description {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(max-width:767px) {
|
@media(max-width:767px) {
|
||||||
|
@ -1139,7 +1096,7 @@ tech-sub-sec h2 {
|
||||||
}
|
}
|
||||||
.price-calc-section {
|
.price-calc-section {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 60px 10px !important;
|
/* padding: 60px 10px !important; */
|
||||||
}
|
}
|
||||||
.price-calc-section .card {
|
.price-calc-section .card {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
@ -1210,11 +1167,6 @@ tech-sub-sec h2 {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-section-a {
|
|
||||||
padding: 50px 0;
|
|
||||||
background-color: #f8f8f8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-heading {
|
.section-heading {
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
@ -1280,3 +1232,22 @@ footer {
|
||||||
/*Rotate the L 45 degrees to turn it into a checkmark*/
|
/*Rotate the L 45 degrees to turn it into a checkmark*/
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer .dcl-link-separator {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer .dcl-link-separator::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
display: inline-block;
|
||||||
|
top: 8px;
|
||||||
|
bottom: 0;
|
||||||
|
left: -3px;
|
||||||
|
right: 0;
|
||||||
|
width: 4px;
|
||||||
|
height: 4px;
|
||||||
|
border-radius: 100%;
|
||||||
|
background: #777;
|
||||||
|
}
|
|
@ -54,7 +54,7 @@
|
||||||
Nav panel classic
|
Nav panel classic
|
||||||
--------------------------------------------- */
|
--------------------------------------------- */
|
||||||
if (window.matchMedia("(min-width: 767px)").matches) {
|
if (window.matchMedia("(min-width: 767px)").matches) {
|
||||||
$('ul.nav li.dropdown').hover(function() {
|
$('ul.nav .dropdown').hover(function() {
|
||||||
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500);
|
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500);
|
||||||
}, function() {
|
}, function() {
|
||||||
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500);
|
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% load staticfiles i18n cms_tags sekizai_tags %}
|
{% load static i18n cms_tags sekizai_tags %}
|
||||||
{% get_current_language as LANGUAGE_CODE %}
|
{% get_current_language as LANGUAGE_CODE %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -22,6 +22,8 @@
|
||||||
<link href="{% static 'datacenterlight/css/landing-page.css' %}" rel="stylesheet">
|
<link href="{% static 'datacenterlight/css/landing-page.css' %}" rel="stylesheet">
|
||||||
{% block css_extra %}
|
{% block css_extra %}
|
||||||
{% endblock css_extra %}
|
{% endblock css_extra %}
|
||||||
|
{% render_block "css" postprocessor "compressor.contrib.sekizai.compress" %}
|
||||||
|
{% render_block "js" postprocessor "compressor.contrib.sekizai.compress" %}
|
||||||
|
|
||||||
<!-- External Fonts -->
|
<!-- External Fonts -->
|
||||||
<link href="//fonts.googleapis.com/css?family=Lato:300,400,600,700" rel="stylesheet" type="text/css">
|
<link href="//fonts.googleapis.com/css?family=Lato:300,400,600,700" rel="stylesheet" type="text/css">
|
||||||
|
|
75
datacenterlight/templates/datacenterlight/cms/base.html
Normal file
75
datacenterlight/templates/datacenterlight/cms/base.html
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
{% load static i18n cms_tags menu_tags sekizai_tags %}
|
||||||
|
{% get_current_language as LANGUAGE_CODE %}
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{LANGUAGE_CODE}}">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta name="description" content="Data Center Light by ungleich">
|
||||||
|
<meta name="author" content="ungleich GmbH">
|
||||||
|
<title>{% page_attribute page_title %}</title>
|
||||||
|
|
||||||
|
<!-- Vendor CSS -->
|
||||||
|
<!-- Bootstrap Core CSS -->
|
||||||
|
<link href="{% static 'datacenterlight/css/bootstrap-3.3.7.min.css' %}" rel="stylesheet">
|
||||||
|
<!-- Icon Fonts -->
|
||||||
|
<link href="{% static 'datacenterlight/font-awesome/css/font-awesome.min.css' %}" rel="stylesheet" type="text/css">
|
||||||
|
<!-- Custom CSS -->
|
||||||
|
<link href="{% static 'datacenterlight/css/common.css' %}" rel="stylesheet">
|
||||||
|
<link href="{% static 'datacenterlight/css/landing-page.css' %}" rel="stylesheet">
|
||||||
|
<link href="{% static 'datacenterlight/css/cms.css' %}" rel="stylesheet">
|
||||||
|
<link href="{% static 'datacenterlight/css/header-slider.css' %}" rel="stylesheet">
|
||||||
|
{% render_block "css" postprocessor "compressor.contrib.sekizai.compress" %}
|
||||||
|
{% render_block "js" postprocessor "compressor.contrib.sekizai.compress" %}
|
||||||
|
|
||||||
|
<!-- External Fonts -->
|
||||||
|
<link href="//fonts.googleapis.com/css?family=Lato:300,400,600,700" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
|
<link rel="shortcut icon" href="{% static 'datacenterlight/img/favicon.ico' %}" type="image/x-icon">
|
||||||
|
|
||||||
|
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Google analytics -->
|
||||||
|
{% include "google_analytics.html" %}
|
||||||
|
<!-- End Google Analytics -->
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
{% cms_toolbar %}
|
||||||
|
|
||||||
|
{% placeholder 'datacenterlight_navbar' %}
|
||||||
|
|
||||||
|
{% placeholder 'Datacenterlight Header' or %}
|
||||||
|
<div class="dcl-cms_page-header">
|
||||||
|
<div class="container">
|
||||||
|
<h1>{% page_attribute page_title %}</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endplaceholder %}
|
||||||
|
|
||||||
|
{% placeholder 'datacenterlight_calculator' %}
|
||||||
|
|
||||||
|
{% placeholder 'Datacenterlight Content' %}
|
||||||
|
|
||||||
|
{% placeholder 'datacenterlight_footer'%}
|
||||||
|
|
||||||
|
<!-- jQuery -->
|
||||||
|
<script src="{% static 'datacenterlight/js/jquery-2.2.4.min.js' %}"></script>
|
||||||
|
<!-- Bootstrap Core JavaScript -->
|
||||||
|
<script src="{% static 'datacenterlight/js/bootstrap-3.3.7.min.js' %}"></script>
|
||||||
|
<!-- Bootstrap Validator -->
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/1000hz-bootstrap-validator/0.11.9/validator.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Custom JS -->
|
||||||
|
<script src="{% static 'datacenterlight/js/main.js' %}"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,25 @@
|
||||||
|
<div class="split-section pricing-section {{ instance.text_direction }}" id="{{ instance.id }}">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 {% if instance.text_direction == 'right' %}col-md-push-6{% endif %}">
|
||||||
|
<div class="split-text">
|
||||||
|
<div class="split-title">
|
||||||
|
<h2>{{ instance.heading }}</h2>
|
||||||
|
</div>
|
||||||
|
<div class="split-description">
|
||||||
|
<div class="lead">
|
||||||
|
{{ instance.content }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 {% if instance.text_direction == 'right' %}col-md-pull-6{% endif %}">
|
||||||
|
<div class="price-calc-section">
|
||||||
|
<div class="landing card">
|
||||||
|
{% include "datacenterlight/includes/_calculator_form.html" %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
35
datacenterlight/templates/datacenterlight/cms/contact.html
Normal file
35
datacenterlight/templates/datacenterlight/cms/contact.html
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
<div id="{{ instance.id }}" class="full-contact-section">
|
||||||
|
<div class="intro-header-2 contact-section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="title">
|
||||||
|
<h2>{{ instance.contact_text }}</h2>
|
||||||
|
</div>
|
||||||
|
<div class="contact-details">
|
||||||
|
<div class="subtitle">
|
||||||
|
<h3>{{ instance.organization_name }}</h3>
|
||||||
|
</div>
|
||||||
|
<div class="description">
|
||||||
|
<p>{{ instance.email }}</p>
|
||||||
|
<p>{{ instance.address }}</p>
|
||||||
|
<p>{{ instance.country }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="social">
|
||||||
|
<a target="_blank" href="https://twitter.com/datacenterlight"><i class="fa fa-twitter fa-fw"></i></a>
|
||||||
|
<a target="_blank" href="https://github.com/ungleich"><i class="fa fa-github fa-fw"></i></a>
|
||||||
|
<a target="_blank" href="https://www.facebook.com/ungleich.ch/"><i class="fa fa-facebook"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div id="contact-form" class="contact-form">
|
||||||
|
{% include "datacenterlight/contact_form.html" with form_header=instance.form_header %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
15
datacenterlight/templates/datacenterlight/cms/footer.html
Normal file
15
datacenterlight/templates/datacenterlight/cms/footer.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{% load i18n cms_tags %}
|
||||||
|
<footer>
|
||||||
|
<div class="container">
|
||||||
|
<ul class="list-inline">
|
||||||
|
{% for plugin in instance.child_plugin_instances %}
|
||||||
|
<li>
|
||||||
|
{% render_plugin plugin %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
<p class="copyright text-muted small">
|
||||||
|
Copyright © {{ instance.copyright_label }} {% now "Y" %}. {% trans "All Rights Reserved" %}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
5
datacenterlight/templates/datacenterlight/cms/link.html
Normal file
5
datacenterlight/templates/datacenterlight/cms/link.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{% load cms_tags %}
|
||||||
|
|
||||||
|
<a class="dcl-link {% if instance.separator %}dcl-link-separator{% endif %}" href="{{ instance.target }}" {% if instance.title %}title="{{ instance.title }}"{% endif %}>
|
||||||
|
{{ instance.text }}
|
||||||
|
</a>
|
64
datacenterlight/templates/datacenterlight/cms/navbar.html
Normal file
64
datacenterlight/templates/datacenterlight/cms/navbar.html
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
{% load static i18n custom_tags cms_tags %}
|
||||||
|
{% get_current_language as LANGUAGE_CODE %}
|
||||||
|
|
||||||
|
<nav class="navbar navbar-default navbar-fixed-top topnav navbar-transparent">
|
||||||
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#dcl-topnav">
|
||||||
|
<span class="sr-only">{% trans "Toggle navigation" %}</span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
<a href="{% url 'datacenterlight:index' %}" id="logoBlack" class="navbar-brand topnav"><img src="{% static 'datacenterlight/img/logo_black.svg' %}"></a>
|
||||||
|
<a href="{% url 'datacenterlight:index' %}" id="logoWhite" class="navbar-brand topnav"><img src="{% static 'datacenterlight/img/logo_white.svg' %}"></a>
|
||||||
|
</div>
|
||||||
|
<div class="collapse navbar-collapse" id="dcl-topnav">
|
||||||
|
<!-- Start Navbar collapse-->
|
||||||
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
{% for plugin in instance.child_plugin_instances %}
|
||||||
|
<li>
|
||||||
|
{% render_plugin plugin %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
<li>
|
||||||
|
{% if LANGUAGE_CODE == 'en-us'%}
|
||||||
|
<a class="on-hover-border" href="{% change_lang 'de' %}">Deutsch <i class="fa fa-globe" aria-hidden="true"></i></a>
|
||||||
|
{% else %}
|
||||||
|
<a class="on-hover-border" href="{% change_lang 'en-us' %}">English <i class="fa fa-globe" aria-hidden="true"></i></a>
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
{% if not request.user.is_authenticated %}
|
||||||
|
<li>
|
||||||
|
<a href="{% url 'hosting:login' %}">{% trans "Login" %} <span class="fa fa-sign-in"></span></a>
|
||||||
|
</li>
|
||||||
|
{% else %}
|
||||||
|
<li>
|
||||||
|
<a href="{% url 'hosting:dashboard' %}">{% trans "Dashboard" %}</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
{% comment %}
|
||||||
|
<!-- to be used when more than one option for language -->
|
||||||
|
<li class="nav-language">
|
||||||
|
<div class="dropdown">
|
||||||
|
<div class="dropdown-toggle select-language" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||||
|
{% if LANGUAGE_CODE == 'en-us'%}
|
||||||
|
<span>English</span>
|
||||||
|
{% else %}
|
||||||
|
<span>Deutsch</span>
|
||||||
|
{% endif %}
|
||||||
|
<i class="fa fa-globe" aria-hidden="true"></i>
|
||||||
|
</div>
|
||||||
|
<ul class="dropdown-menu drop-language dropdown-menu-right">
|
||||||
|
{% if LANGUAGE_CODE == 'en-us'%}
|
||||||
|
<li><a class="url" href="{% change_lang 'de' %}">Deutsch</a></li>
|
||||||
|
{% else %}
|
||||||
|
<li><a class="url" href="{% change_lang 'en-us' %}">English</a></li>
|
||||||
|
{% endif %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{% endcomment %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</nav>
|
|
@ -0,0 +1,10 @@
|
||||||
|
{% load cms_tags %}
|
||||||
|
|
||||||
|
<div class="dropdown highlights-dropdown">
|
||||||
|
<a class="dropdown-toggle url-init nav-link" href="{{ instance.url }}" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ instance.text }} <span class="caret"></span></a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
{% for plugin in instance.child_plugin_instances %}
|
||||||
|
{% render_plugin plugin %}
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
27
datacenterlight/templates/datacenterlight/cms/section.html
Normal file
27
datacenterlight/templates/datacenterlight/cms/section.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{% load cms_tags %}
|
||||||
|
|
||||||
|
<div class="split-section {{ instance.text_direction }}" id="{{ instance.id }}">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6 {% if instance.text_direction == 'left' %}col-sm-push-6{% endif %}">
|
||||||
|
<div class="section-figure">
|
||||||
|
{% for plugin in instance.child_plugin_instances %}
|
||||||
|
{% render_plugin plugin %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6 {% if instance.text_direction == 'left' %}col-sm-pull-6{% endif %}">
|
||||||
|
<div class="split-text">
|
||||||
|
<div class="split-title">
|
||||||
|
<h2>{{ instance.heading }}</h2>
|
||||||
|
</div>
|
||||||
|
<div class="split-description">
|
||||||
|
<div class="lead">
|
||||||
|
{{ instance.content }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -0,0 +1,3 @@
|
||||||
|
<div class="icon-section">
|
||||||
|
<i class="fa fa-{{ instance.fontawesome_icon_name }}" aria-hidden="true"></i>
|
||||||
|
</div>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<div class="section-image">
|
||||||
|
<img class="img-responsive" src="{{ instance.image.url }}" alt="image">
|
||||||
|
{% if instance.caption %}
|
||||||
|
<div class="section-image-caption">{{ instance.caption }}</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
|
@ -13,7 +13,11 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-offset-2 col-sm-10">
|
<div class="col-sm-offset-2 col-sm-10">
|
||||||
<div class="subtitle">
|
<div class="subtitle">
|
||||||
|
{% if form_header %}
|
||||||
|
<h3>{{ form_header }}</h3>
|
||||||
|
{% else %}
|
||||||
<h3>{% trans "Get in touch with us!" %}</h3>
|
<h3>{% trans "Get in touch with us!" %}</h3>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -77,9 +77,6 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<!--<div class="description check-ip">
|
|
||||||
<input type="checkbox" name="ipv6"> Ipv6 Only<br>
|
|
||||||
</div>-->
|
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" class="btn btn-primary disabled" value="{% trans 'Continue' %}"></input>
|
<input type="submit" class="btn btn-primary disabled" value="{% trans 'Continue' %}"></input>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{% load staticfiles i18n%}
|
{% load staticfiles i18n%}
|
||||||
{% get_current_language as LANGUAGE_CODE %}
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
|
@ -6,10 +6,6 @@
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<div class="intro-header" id="home">
|
<div class="intro-header" id="home">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
|
|
||||||
<div class="intro-message">
|
<div class="intro-message">
|
||||||
<h1>Data Center Light</h1>
|
<h1>Data Center Light</h1>
|
||||||
<h3>{% trans "Finally, an affordable VM hosting in Switzerland!" %}</h3>
|
<h3>{% trans "Finally, an affordable VM hosting in Switzerland!" %}</h3>
|
||||||
|
@ -25,22 +21,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- /.container -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- /.intro-header -->
|
<!-- /.intro-header -->
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div class="split-section right" id="how">
|
<div class="split-section right" id="how">
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 icon-section">
|
<div class="col-sm-6 icon-section">
|
||||||
<i class="fa fa-cogs" aria-hidden="true"></i>
|
<i class="fa fa-cogs" aria-hidden="true"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6">
|
<div class="col-sm-6">
|
||||||
<div class="split-text">
|
<div class="split-text">
|
||||||
<div class="split-title">
|
<div class="split-title">
|
||||||
<h2>{% trans "Highlights" %}</h2>
|
<h2>{% trans "Highlights" %}</h2>
|
||||||
|
@ -65,90 +55,79 @@
|
||||||
<p class="lead">{% trans "Cuts down the costs for you by using FOSS (Free Open Source Software) exclusively, wherefore we can save money from paying licenses." %}</p>
|
<p class="lead">{% trans "Cuts down the costs for you by using FOSS (Free Open Source Software) exclusively, wherefore we can save money from paying licenses." %}</p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.container -->
|
|
||||||
<!-- /.option 1 -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="split-section left" id="your">
|
<div class="split-section left" id="your">
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6">
|
<div class="col-sm-6">
|
||||||
<div class="split-text">
|
<div class="split-text">
|
||||||
<div class="split-title">
|
<div class="split-title">
|
||||||
<h2>{% trans "Scale out" %}</h2>
|
<h2>{% trans "Scale out" %}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="split-description">
|
<div class="split-description">
|
||||||
<p class="lead">{% trans "We don't use special hardware. We use commodity hardware: we buy computers that you buy. Just many more and put them in a cozy home for computers called data center." %}</p>
|
<p class="lead">{% trans "We don't use special hardware. We use commodity hardware: we buy computers that you buy. Just many more and put them in a cozy home for computers called data center." %}</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 icon-section">
|
<div class="col-sm-6 icon-section">
|
||||||
<i class="fa fa-rocket" aria-hidden="true"></i>
|
<i class="fa fa-rocket" aria-hidden="true"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.container -->
|
|
||||||
<!-- /.option 1 -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="split-section right" id="our">
|
|
||||||
|
|
||||||
|
<div class="split-section right" id="our">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 icon-section">
|
<div class="col-sm-6 icon-section">
|
||||||
<i class="fa fa-handshake-o" aria-hidden="true"></i>
|
<i class="fa fa-handshake-o" aria-hidden="true"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6">
|
<div class="col-sm-6">
|
||||||
<div class="split-text">
|
<div class="split-text">
|
||||||
<div class="split-title">
|
<div class="split-title">
|
||||||
<h2>{% trans "Reliable and light" %}</h2>
|
<h2>{% trans "Reliable and light" %}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="split-description">
|
<div class="split-description">
|
||||||
<p class="lead">{% trans "Our VMs are located in Switzerland, with reliable power supply and fast internet connection. Our VM costs less thanks to our featherlight infrastructure." %}</p>
|
<p class="lead">{% trans "Our VMs are located in Switzerland, with reliable power supply and fast internet connection. Our VM costs less thanks to our featherlight infrastructure." %}</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.container -->
|
|
||||||
<!-- /.option 1 -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- /.content-section-b -->
|
<div class="split-section pricing-section" id="price">
|
||||||
<div class="content-section-a pricing-section" id="price">
|
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- Page Features -->
|
<div class="row">
|
||||||
<div class="row text-center">
|
<div class="col-md-6">
|
||||||
<div class="col-xs-12 col-md-6 text">
|
<div class="split-text">
|
||||||
<h2 class="section-heading">{% trans "Simple and affordable: Try our virtual machine with featherlight price." %}</h2>
|
<div class="split-title">
|
||||||
<p class="lead new-lead">{% blocktrans %}Ready in 30 seconds.<br/>Experience the unbeatable speed from Data Center Light.{% endblocktrans %}</p>
|
<h2>{% trans "Simple and affordable: Try our virtual machine with featherlight price." %}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="split-description">
|
||||||
<div class="col-xs-12 col-md-6 hero-feature">
|
<div class="lead">
|
||||||
<div class="price-calc-section no-padding">
|
<p>{% blocktrans %}Ready in 30 seconds.<br/>Experience the unbeatable speed from Data Center Light.{% endblocktrans %}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="price-calc-section">
|
||||||
<div class="landing card">
|
<div class="landing card">
|
||||||
<div class="caption">
|
|
||||||
{% include "datacenterlight/includes/_calculator_form.html" %}
|
{% include "datacenterlight/includes/_calculator_form.html" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- / contact section -->
|
|
||||||
<div class="full-contact-section">
|
<div class="full-contact-section">
|
||||||
<div class="intro-header-2 contact-section" id="contact">
|
<div class="intro-header-2 contact-section" id="contact">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -179,10 +158,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.banner -->
|
<!-- /.banner -->
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -6,21 +6,18 @@
|
||||||
<div class="full-whydcl-sec">
|
<div class="full-whydcl-sec">
|
||||||
<div class="whydcl-header whydcl-section" id="why_dcl">
|
<div class="whydcl-header whydcl-section" id="why_dcl">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12 col-md-12">
|
|
||||||
<div class="single-heading">
|
<div class="single-heading">
|
||||||
<h2>{% trans "Why Data Center Light?" %}</h2>
|
<h2>{% trans "Why Data Center Light?" %}</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="split-section left" id="tech_stack">
|
<div class="split-section left" id="tech_stack">
|
||||||
<div class="space">
|
<div class="space">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6">
|
<div class="col-sm-6">
|
||||||
<div class="split-text">
|
<div class="split-text">
|
||||||
<div class="split-title">
|
<div class="split-title">
|
||||||
<h2>{% trans "Tech Stack" %}</h2>
|
<h2>{% trans "Tech Stack" %}</h2>
|
||||||
|
@ -31,71 +28,74 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6">
|
<div class="col-sm-6">
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 col-md-6 logo-wrap">
|
<div class="col-sm-6 logo-wrap">
|
||||||
<img class="img-responsive btm-space" src="{% static 'datacenterlight/img/devuan.png' %}" alt="Devuan">
|
<img class="img-responsive btm-space" src="{% static 'datacenterlight/img/devuan.png' %}" alt="Devuan">
|
||||||
<span class="logo-caption">{% trans "Our services run on" %}</span>
|
<span class="logo-caption">{% trans "Our services run on" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 col-md-6 logo-wrap">
|
<div class="col-sm-6 logo-wrap">
|
||||||
<img class="img-responsive" src="{% static 'datacenterlight/img/prometheus.png' %}" alt="Prometheus">
|
<img class="img-responsive" src="{% static 'datacenterlight/img/prometheus.png' %}" alt="Prometheus">
|
||||||
<span class="logo-caption">{% trans "Our monitoring" %}</span>
|
<span class="logo-caption">{% trans "Our monitoring" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 col-md-6 logo-wrap">
|
<div class="col-sm-6 logo-wrap">
|
||||||
<img class="img-responsive btm-space" src="{% static 'datacenterlight/img/Ceph_Logo.png' %}" alt="Ceph">
|
<img class="img-responsive btm-space" src="{% static 'datacenterlight/img/Ceph_Logo.png' %}" alt="Ceph">
|
||||||
<span class="logo-caption">{% trans "Our storage layer" %}</span>
|
<span class="logo-caption">{% trans "Our storage layer" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 col-md-6 logo-wrap">
|
<div class="col-sm-6 logo-wrap">
|
||||||
<img class="img-responsive" src="{% static 'datacenterlight/img/django.png' %}" alt="Django">
|
<img class="img-responsive" src="{% static 'datacenterlight/img/django.png' %}" alt="Django">
|
||||||
<span class="logo-caption">{% trans "Our web frontend" %}</span>
|
<span class="logo-caption">{% trans "Our web frontend" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 col-md-6 logo-wrap">
|
<div class="col-sm-6 logo-wrap">
|
||||||
<img class="img-responsive btm-space" src="{% static 'datacenterlight/img/opennebula.png' %}" alt="Opennebula">
|
<img class="img-responsive btm-space" src="{% static 'datacenterlight/img/opennebula.png' %}" alt="Opennebula">
|
||||||
<span class="logo-caption">{% trans "Our cloud" %}</span>
|
<span class="logo-caption">{% trans "Our cloud" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 col-md-6 logo-wrap">
|
<div class="col-sm-6 logo-wrap">
|
||||||
<img class="img-responsive" src="{% static 'datacenterlight/img/cdistbyungleich.png' %}" alt="Cdist by ungleich">
|
<img class="img-responsive" src="{% static 'datacenterlight/img/cdistbyungleich.png' %}" alt="Cdist by ungleich">
|
||||||
<span class="logo-caption">{% trans "Our configuration management system" %}</span>
|
<span class="logo-caption">{% trans "Our configuration management system" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 col-md-6 logo-wrap">
|
<div class="col-sm-6 logo-wrap">
|
||||||
<img class="img-responsive" src="{% static 'datacenterlight/img/python-logo.png' %}" alt="Python">
|
<img class="img-responsive" src="{% static 'datacenterlight/img/python-logo.png' %}" alt="Python">
|
||||||
<span class="logo-caption">{% trans "Our awesome juice" %}</span>
|
<span class="logo-caption">{% trans "Our awesome juice" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6 col-md-6 col-md-6 logo-wrap">
|
<div class="col-sm-6 logo-wrap">
|
||||||
<img class="img-responsive btm-space-tayga" src="{% static 'datacenterlight/img/tayga.png' %}" alt="Tayga">
|
<img class="img-responsive btm-space-tayga" src="{% static 'datacenterlight/img/tayga.png' %}" alt="Tayga">
|
||||||
<span class="logo-caption">{% trans "Our NAT64 gateway" %}</span>
|
<span class="logo-caption">{% trans "Our NAT64 gateway" %}</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /.container -->
|
|
||||||
<hr class="thick-divider"/><!-- Divider -->
|
<hr class="thick-divider"/><!-- Divider -->
|
||||||
|
|
||||||
<div class="space">
|
<div class="space">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-sm-4 col-md-5 ">
|
<div class="col-sm-4 col-md-5">
|
||||||
<div class="col-xs-12 col-sm-12 col-md-6 col-md-6 logo-wrap-1">
|
<div class="row">
|
||||||
|
<div class="col-md-6 logo-wrap-1">
|
||||||
<img class="img-responsive" src="{% static 'datacenterlight/img/opennebula.png' %}" alt="Opennebula">
|
<img class="img-responsive" src="{% static 'datacenterlight/img/opennebula.png' %}" alt="Opennebula">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-12 col-md-6 col-md-6 logo-wrap-1">
|
<div class="col-md-6 logo-wrap-1">
|
||||||
<img class="img-responsive" src="{% static 'datacenterlight/img/cdistbyungleich.png' %}" alt="Cdist byu ngleich">
|
<img class="img-responsive" src="{% static 'datacenterlight/img/cdistbyungleich.png' %}" alt="Cdist byu ngleich">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-12 col-md-6 col-md-6 logo-wrap-1">
|
<div class="col-md-6 logo-wrap-1">
|
||||||
<img class="img-responsive" src="{% static 'datacenterlight/img/prometheus.png' %}" alt="Prometheus">
|
<img class="img-responsive" src="{% static 'datacenterlight/img/prometheus.png' %}" alt="Prometheus">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-8 col-md-7 text-right">
|
</div>
|
||||||
|
<div class="col-sm-8 col-md-7 text-right">
|
||||||
<div class="tech-sub-sec">
|
<div class="tech-sub-sec">
|
||||||
<h2>{% trans "We believe in giving back to the FOSS community." %}</h2>
|
<h2>{% trans "We believe in giving back to the FOSS community." %}</h2>
|
||||||
<p class="lead new-lead">{% blocktrans %}Data Center Light is the child of free and open source software (FOSS) movement. <br>We grew up with it, live by it, and believe in it.<br> The more we work on our data center,<br> the more we contribute back to the FOSS community.{% endblocktrans %}</p>
|
<p class="lead">{% blocktrans %}Data Center Light is the child of free and open source software (FOSS) movement. <br>We grew up with it, live by it, and believe in it.<br> The more we work on our data center,<br> the more we contribute back to the FOSS community.{% endblocktrans %}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.container -->
|
|
||||||
<hr class="thick-divider"/><!-- Divider -->
|
<hr class="thick-divider"/><!-- Divider -->
|
||||||
|
|
||||||
<div class="space">
|
<div class="space">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="tech-sub-sec">
|
<div class="tech-sub-sec">
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
100% <strong>IPv6</strong>
|
100% <strong>IPv6</strong>
|
||||||
</div>
|
</div>
|
||||||
<div class="desc-text padding-vertical">
|
<div class="desc-text padding-vertical">
|
||||||
<p class="lead new-lead">{% blocktrans %}Data Center Light uses the most modern technologies out there.<br>Your VM needs only IPv6. Data Center Light provides<br> transparent two-way IPv6/IPv4 translation.{% endblocktrans %}</p>
|
<p class="lead">{% blocktrans %}Data Center Light uses the most modern technologies out there.<br>Your VM needs only IPv6. Data Center Light provides<br> transparent two-way IPv6/IPv4 translation.{% endblocktrans %}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-row">
|
<div class="flex-row">
|
||||||
|
@ -114,38 +114,37 @@
|
||||||
<span class="space-middle"> 100% <strong>SSD</strong></span> <span class="ssdimg"><img class="img-responsive" src="{% static 'datacenterlight/img/ssd.jpg' %}" alt="SSD"></span>
|
<span class="space-middle"> 100% <strong>SSD</strong></span> <span class="ssdimg"><img class="img-responsive" src="{% static 'datacenterlight/img/ssd.jpg' %}" alt="SSD"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="desc-text padding-vertical w380">
|
<div class="desc-text padding-vertical w380">
|
||||||
<p class="lead new-lead lead-right">{% blocktrans %} No more spinning metal plates! Data Center Light uses only SSDs. We keep things faster and lighter. {% endblocktrans %}</p>
|
<p class="lead text-right">{% blocktrans %} No more spinning metal plates! Data Center Light uses only SSDs. We keep things faster and lighter. {% endblocktrans %}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.container -->
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.content-section-b -->
|
|
||||||
<div class="content-section-a pricing-section" id="price">
|
|
||||||
|
|
||||||
|
<div class="split-section pricing-section" id="price">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- Page Features -->
|
<div class="row">
|
||||||
<div class="row text-center">
|
<div class="col-md-6">
|
||||||
<div class="col-xs-12 col-md-6 text">
|
<div class="split-text">
|
||||||
<h2 class="section-heading">{% trans "Starting from only 15CHF per month. Try now." %}</h2>
|
<div class="split-title">
|
||||||
<p class="lead new-lead">{% trans "Actions speak louder than words. Let's do it, try our VM now." %}</p>
|
<h2>{% trans "Starting from only 15CHF per month. Try now." %}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="split-description">
|
||||||
<div class="col-xs-12 col-md-6 hero-feature">
|
<div class="lead">
|
||||||
<div class="price-calc-section no-padding">
|
<p>{% trans "Actions speak louder than words. Let's do it, try our VM now." %}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="price-calc-section">
|
||||||
<div class="landing card">
|
<div class="landing card">
|
||||||
<div class="caption">
|
|
||||||
{% include "datacenterlight/includes/_calculator_form.html" %}
|
{% include "datacenterlight/includes/_calculator_form.html" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- End Why Data Center Light? -->
|
<!-- End Why Data Center Light? -->
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -490,9 +490,11 @@ class OrderConfirmationView(DetailView):
|
||||||
|
|
||||||
response = {
|
response = {
|
||||||
'status': True,
|
'status': True,
|
||||||
'redirect': reverse(
|
'redirect': (
|
||||||
'hosting:virtual_machines') if request.user.is_authenticated() else reverse(
|
reverse('hosting:virtual_machines')
|
||||||
'datacenterlight:index'),
|
if request.user.is_authenticated()
|
||||||
|
else reverse('datacenterlight:index')
|
||||||
|
),
|
||||||
'msg_title': str(_('Thank you for the order.')),
|
'msg_title': str(_('Thank you for the order.')),
|
||||||
'msg_body': str(
|
'msg_body': str(
|
||||||
_('Your VM will be up and running in a few moments.'
|
_('Your VM will be up and running in a few moments.'
|
||||||
|
|
|
@ -227,7 +227,7 @@ CMS_TEMPLATES = (
|
||||||
('blog_ungleich.html', gettext('Blog')),
|
('blog_ungleich.html', gettext('Blog')),
|
||||||
('page.html', gettext('Page')),
|
('page.html', gettext('Page')),
|
||||||
# dcl
|
# dcl
|
||||||
('datacenterlight/cms_page.html', gettext('Data Center Light')),
|
('datacenterlight/cms/base.html', gettext('Data Center Light')),
|
||||||
('ungleich_page/glasfaser_cms_page.html', gettext('Glasfaser')),
|
('ungleich_page/glasfaser_cms_page.html', gettext('Glasfaser')),
|
||||||
('ungleich_page/ungleich_cms_page.html', gettext('ungleich')),
|
('ungleich_page/ungleich_cms_page.html', gettext('ungleich')),
|
||||||
)
|
)
|
||||||
|
@ -332,6 +332,38 @@ CMS_PLACEHOLDER_CONF = {
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
'datacenterlight_navbar': {
|
||||||
|
'name': _('Datacenterlight Navbar'),
|
||||||
|
'plugins': ['DCLNavbarPlugin'],
|
||||||
|
'default_plugins': [
|
||||||
|
{
|
||||||
|
'plugin_type': 'DCLNavbarPlugin',
|
||||||
|
'values': {},
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
'datacenterlight_footer': {
|
||||||
|
'name': _('Datacenterlight Footer'),
|
||||||
|
'plugins': ['DCLFooterPlugin'],
|
||||||
|
'default_plugins': [
|
||||||
|
{
|
||||||
|
'plugin_type': 'DCLFooterPlugin',
|
||||||
|
'values': {},
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
'datacenterlight_calculator': {
|
||||||
|
'name': _('Datacenterlight Calculator'),
|
||||||
|
'default_plugins': [
|
||||||
|
{
|
||||||
|
'plugin_type': 'DCLCalculatorPlugin',
|
||||||
|
'values': {
|
||||||
|
'heading': 'Heading',
|
||||||
|
'content': 'Text'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
CMS_PERMISSION = True
|
CMS_PERMISSION = True
|
||||||
|
|
Loading…
Reference in a new issue