Skip to content

Commit

Permalink
WWW app
Browse files Browse the repository at this point in the history
  • Loading branch information
diegocmsantos committed Jul 26, 2011
1 parent 8609c76 commit add8c34
Show file tree
Hide file tree
Showing 93 changed files with 3,163 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions settings.py
Expand Up @@ -117,6 +117,7 @@
# 'django.contrib.admindocs',

# project
'www',
'order',
'uni_form',
'south',
Expand Down
Binary file modified settings.pyc
Binary file not shown.
4 changes: 3 additions & 1 deletion urls.py
Expand Up @@ -8,11 +8,13 @@
admin.autodiscover()

urlpatterns = patterns('views',
('^$', 'index'),
('^office/$', 'office'),
('^$', 'www'),
url('^about/$', 'about', name='about'),
url(r'^login/$', 'make_login', name='login'),
url(r'^logout/$', logout, name='logout'),

url(r'^order/', include('personalcar.order.urls')),
url(r'^/', include('personalcar.www.urls')),
url(r'^admin/', include(admin.site.urls)),
)
Binary file modified urls.pyc
Binary file not shown.
7 changes: 6 additions & 1 deletion views.py
Expand Up @@ -16,10 +16,15 @@
from django.contrib.auth import authenticate, login

@login_required
def index(request, template="index.html"):
def office(request, template="index.html"):
return render_to_response(template,
{},
context_instance=RequestContext(request))

def www(request, template="index_accordion.html"):
return render_to_response(template,
{},
context_instance=RequestContext(request))

def make_login(request):
if request.method == 'POST':
Expand Down
Binary file modified views.pyc
Binary file not shown.
Empty file added www/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions www/models.py
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
89 changes: 89 additions & 0 deletions www/static/css/kriframework.css
@@ -0,0 +1,89 @@
/*Small reset*/
body, ul, ol, h1,h2,h3,h4,h5,h6,form,li,p,input,select,legend,textarea,fieldset{ margin:0; padding:0;}
ul{list-style-type: none; list-style-position: outside}
ol{list-style-position: outside}

body{font-size: 13px; line-height: 1.8em;}
.wrap_fullwidth{width:100%; position: relative; float:left; clear:both; }
.center{width:940px; position: relative; margin:0 auto; clear: both; padding:20px; overflow: auto;}
.wrap_content{width:100%; position: relative; clear: both; float: left; }

/*Generic rules*/
.content_one_half,
.content_one_fourth,
.content_three_fourth,
.content_two_third,
.content_one_third,
.content_fullwidth
{margin: 0 0 10px 50px; float:left; position: relative;}

/* First child elements */
#top .content_one_half:first-child,
#top .content_one_fourth:first-child,
#top .content_three_fourth:first-child,
#top .content_two_third:first-child,
#top .content_one_third:first-child,
#top .content_fullwidth:first-child,
#top .js_add_firstchild,
#top .firstchild
{margin:0 0 10px 0;
}

/*************************** Basic sets ****************************/
/*Basic 50px set*/
#top .wrap_fullwidth .content_fullwidth{width:940px; margin:0 auto 10px auto;clear:both;}
.content_one_third{width:280px;}
.content_one_half{width:445px;}
.content_one_fourth{width:197.5px;}
.content_three_fourth{width:692.5px;}
.content_two_third{width:610px;}

/*Basic 20px set*/
.small_margin .content_one_half,
.small_margin .content_one_fourth,
.small_margin .content_three_fourth,
.small_margin .content_two_third,
.small_margin .content_one_third,
.small_margin .content_fullwidth
{margin: 0 0 10px 20px; float:left;}

.small_margin .content_fullwidth{width:100%;}
.small_margin .content_one_third{width:300px;}
.small_margin .content_one_half{width:460px;}
.small_margin .content_one_fourth{width:220px;}
.small_margin .content_three_fourth{width:700px;}
.small_margin .content_two_third{width:620px;}


/*************************** Boxed sets ****************************/
/*Boxed 50px set*/
.boxed .content_one_half,
.boxed .content_one_fourth,
.boxed .content_three_fourth,
.boxed .content_two_third,
.boxed .content_one_third,
.boxed .content_fullwidth
{margin: 0 0 10px 50px; float:left; height:50px; border-width: 1px; border-style: solid; padding: 20px;}

#top .wrap_fullwidth .boxed .content_fullwidth{width:898px;}
.boxed .content_one_third{width:238px;}
.boxed .content_one_half{width:403px;}
.boxed .content_one_fourth{width:155.5px;}
.boxed .content_three_fourth{width:650.5px;}
.boxed .content_two_third{width:568px;}

/*Boxed 20px set*/
.boxed .small_margin .content_one_half,
.boxed .small_margin .content_one_fourth,
.boxed .small_margin .content_three_fourth,
.boxed .small_margin .content_two_third,
.boxed .small_margin .content_one_third,
.boxed .small_margin .content_fullwidth
{margin: 0 0 10px 20px; float:left; padding:20px;}

.boxed .small_margin .content_fullwidth{width:898px;}
.boxed .small_margin .content_one_third{width:258px;}
.boxed .small_margin .content_one_half{width:418px;}
.boxed .small_margin .content_one_fourth{width:178px;}
.boxed .small_margin .content_three_fourth{width:658px;}
.boxed .small_margin .content_two_third{width:578px;}

0 comments on commit add8c34

Please sign in to comment.