From db6a1c733d031757a04faef77f0f10f0bc539315 Mon Sep 17 00:00:00 2001 From: Vidir Valberg Gudmundsson Date: Sat, 26 Aug 2017 03:48:02 +0200 Subject: [PATCH] Initial bar app. --- src/bornhack/settings.py | 1 + src/bornhack/urls.py | 7 +++++++ src/static_src/css/bornhack.css | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/src/bornhack/settings.py b/src/bornhack/settings.py index 1ea67e0d..699b7956 100644 --- a/src/bornhack/settings.py +++ b/src/bornhack/settings.py @@ -43,6 +43,7 @@ INSTALLED_APPS = [ 'teams', 'people', 'tickets', + 'bar', 'allauth', 'allauth.account', diff --git a/src/bornhack/urls.py b/src/bornhack/urls.py index 0c09a5b6..6178d8b8 100644 --- a/src/bornhack/urls.py +++ b/src/bornhack/urls.py @@ -13,6 +13,7 @@ from sponsors.views import * from teams.views import * from people.views import * from tickets.views import ShopTicketListView +from bar.views import MenuView urlpatterns = [ url( @@ -263,6 +264,12 @@ urlpatterns = [ name='sponsors' ), + url( + r'^bar/menu$', + MenuView.as_view(), + name='menu' + ), + url( r'^villages/', include([ url( diff --git a/src/static_src/css/bornhack.css b/src/static_src/css/bornhack.css index 84b3c188..c4d50766 100644 --- a/src/static_src/css/bornhack.css +++ b/src/static_src/css/bornhack.css @@ -274,3 +274,25 @@ footer { .sponsor .caption { text-align: center; } + +.bar-row { + -moz-column-width: 300px; + -webkit-column-width: 300px; + column-width: 300px; +} + +.bar-product { + display: flex; + justify-content: flex-start; + border-bottom: 1px solid lightgrey; +} + +.bar-product .name { + width: 900px; +} + +.bar-product .price { + width: 300px; +} + +