Commit df23cbb1 authored by Rafal's avatar Rafal

One page init

parent 2ba7eb49
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
/*!
* Start Bootstrap - Business Frontpage HTML Template (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
body {
padding-top: 75px; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */
}
/* Header Image Background - Change the URL below to your image path (example: ../images/background.jpg) */
.business-header {
height: 400px;
background-image:url('/static/img/page/logo_v1.png');
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 20%;
}
footer {
margin: 50px 0;
}
.navbar .navbar-nav {
background-color: white;
float: none;
display: flex;
justify-content: space-between;
align-items: center;
}
li {
position: absolute;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html>
<html lang="en">
{% load staticfiles %}
<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="">
<meta name="author" content="">
<title>Kawowy Dzienniczek</title>
<!-- Bootstrap Core CSS -->
<link href="/static/css/bootstrap.min.css " rel="stylesheet">
<!-- Custom CSS -->
<link href="/static/css/business-frontpage.css" rel="stylesheet">
<!-- 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]-->
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav" >
<li>
<a href="#" class=""><img src="/static/img/page/kd_logo.png"></a>
</li>
<li>
<a href="#">Main Page</a>
</li>
<li>
<a href="#">Services</a>
</li>
<li>
<a href="#">Kontakt</a>
</li>
<li>
<a href="#">O nas</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- Image Background Page Header -->
<!-- Note: The background image is set within the business-casual.css file. -->
<header class="business-header">
</header>
<!-- Page Content -->
<div class="container">
<div class="row">
<div class="col-sm-12 text-center">
<h2>KAWOWY DZIENNICZEK</h2>
<p>Zbuduj swoją własną sieć lojalnościową</p>
</div>
</div>
<!-- /.row -->
<header class="business-header">
</header>
<hr>
<div class="row">
<div class="col-sm-12 text-center">
<h2>Dzięki nam</h2>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<img class="img-circle img-responsive img-center" src="http://placehold.it/300x300" alt="">
<h2>Wierny klient</h2>
<p>These marketing boxes are a great place to put some information. These can contain summaries of what the company does, promotional information, or anything else that is relevant to the company. These will usually be below-the-fold.</p>
</div>
<div class="col-sm-4">
<img class="img-circle img-responsive img-center" src="http://placehold.it/300x300" alt="">
<h2>Automatycznie</h2>
<p>The images are set to be circular and responsive. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
<div class="col-sm-4">
<img class="img-circle img-responsive img-center" src="http://placehold.it/300x300" alt="">
<h2>Unikalny sposób reklamy</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
<!-- /.row -->
<hr>
<!-- Footer -->
<footer>
<div class="row">
<div class="col-lg-12">
<p>Copyright &copy; Your Website 2014</p>
</div>
</div>
<!-- /.row -->
</footer>
</div>
<!-- /.container -->
<!-- jQuery -->
<script src="/static/js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="/static/js/bootstrap.min.js"></script>
</body>
</html>
...@@ -2,4 +2,7 @@ from django.shortcuts import render ...@@ -2,4 +2,7 @@ from django.shortcuts import render
# Create your views here. # Create your views here.
def coming_soon_page(request): def coming_soon_page(request):
return render(request, 'page/index.html', {}) return render(request, 'page/index.html', {})
\ No newline at end of file
def main_page(request):
return render(request, 'main_page/index.html', {})
\ No newline at end of file
...@@ -18,7 +18,7 @@ from django.conf.urls.static import static ...@@ -18,7 +18,7 @@ from django.conf.urls.static import static
from django.contrib import admin from django.contrib import admin
from rest_framework import routers from rest_framework import routers
from App.page.views import coming_soon_page from App.page.views import coming_soon_page, main_page
from App.user import views as user_views from App.user import views as user_views
from App.loyaltyMe import views as loyalty_views from App.loyaltyMe import views as loyalty_views
...@@ -39,4 +39,5 @@ urlpatterns = [ ...@@ -39,4 +39,5 @@ urlpatterns = [
url(r'^api-token-auth/', user_views.obtain_auth_token), url(r'^api-token-auth/', user_views.obtain_auth_token),
url(r'^admin/', include(admin.site.urls)), url(r'^admin/', include(admin.site.urls)),
url(r'^$', coming_soon_page, name='post_list'), url(r'^$', coming_soon_page, name='post_list'),
url(r'^main/$', main_page, name='post_list'),
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment