Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Midhat/sponsoring #11

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added pyconbalkan/cfp/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions pyconbalkan/cfp/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
Empty file added pyconbalkan/cfp/api_urls.py
Empty file.
5 changes: 5 additions & 0 deletions pyconbalkan/cfp/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class CfpConfig(AppConfig):
name = 'cfp'
Empty file.
3 changes: 3 additions & 0 deletions pyconbalkan/cfp/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
11 changes: 11 additions & 0 deletions pyconbalkan/cfp/templates/cfp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "base.html" %}

{% block main_content %}

<!-- Main Content -->



<!-- END of Main Content -->

{% endblock %}
3 changes: 3 additions & 0 deletions pyconbalkan/cfp/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
3 changes: 3 additions & 0 deletions pyconbalkan/cfp/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.shortcuts import render

# Create your views here.
215 changes: 213 additions & 2 deletions pyconbalkan/core/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ body {
font-weight: 900;
}

.font400 {
font-family: 'Montserrat', sans-serif;
font-weight: 400;
}

.one {
margin-bottom: -12px;
font-size: 4.5rem;
Expand Down Expand Up @@ -99,13 +104,25 @@ hr {
}

.font-yellow {
color: #F3D66C;
color: #FFD54F;
}

.font-blue {
color: #22A4D9;
}

.font-white {
color: white;
}

.font-grey {
color: darkgrey;
}

.font-small {
font-size: 0.8em;
}

.fa-calendar-alt, .fa-users, .fa-globe{
color: #22A4D9;
display: inline-block;
Expand Down Expand Up @@ -185,7 +202,7 @@ ul.countdown li div {
}

.moveDown {
margin-top: 50px;
margin-top: 30px;
}

#btnBuyNow {
Expand Down Expand Up @@ -259,4 +276,198 @@ ul.countdown li div {
color: #FFFFFF;
font-size: 32px;
font-weight: bold;
}

table.ticket {
border-collapse: separate;
}

.input_border {
width: 100%;
box-sizing:border-box;
border: none;
border-radius: 30px;
-moz-border-radius: 30px;
-webkit-border-radius: 30px;
-moz-box-shadow: 0px 0px 0px #FFF;
-webkit-box-shadow: 0px 0px 0px #FFF;
box-shadow: 0px 0px 0px #FFF;
outline: 0;
padding: 4px 20px;
-webkit-appearance: none;
line-height: 2.2;
background-color: #FFF;
}


select, option {
margin: 0;
display: inline-block;
cursor: pointer;
}

.b-select-wrap {
width: 100%;
overflow: hidden;
position: relative;
}

.b-select-wrap:after {
content: "⌄";
padding: 0%;
position: absolute;
top: 25%;
right: 15px;
z-index: 1;
text-align: center;
width: 20px;
height: 50%;
pointer-events: none;
color: #FFF;
font-size: 12px;
border-radius: 30px;
background-color: #0080C6;
font-weight: bolder;
}

.b-input-date-wrap {
width: 100%;
overflow: hidden;
position: relative;
}

.b-input-date-wrap:after {
content: "📅";
padding: 1% 0% 0% 0%;
position: absolute;
top: 25%;
right: 15px;
z-index: 1;
text-align: center;
width: 20px;
height: 50%;
pointer-events: none;
color: #FFF;
font-size: 12px;
border-radius: 30px;
background-color: #0080C6;
font-weight: bolder;
}

.b-input-time-wrap {
width: 100%;
overflow: hidden;
position: relative;
}

.b-input-time-wrap:after {
content: "🕒";
padding: 1% 0% 0% 0%;
position: absolute;
top: 25%;
right: 15px;
z-index: 1;
text-align: center;
width: 20px;
height: 50%;
pointer-events: none;
color: #FFF;
font-size: 12px;
border-radius: 30px;
background-color: #0080C6;
font-weight: bolder;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-outer-spin-button,
input[type="time"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-outer-spin-button,
input[type="time"]::-webkit-clear-button {
display: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0;
}

input[type="date"]::-webkit-datetime-edit{
color: transparent;
}

input[type="date"]:focus::-webkit-datetime-edit{
color: #000;
}

.button-style {
width: 100%;
border: 3px solid #FFD54F;
border-radius: 30px;
-moz-border-radius: 30px;
-webkit-border-radius: 30px;
-moz-box-shadow: 0px 0px 0px #FFF;
-webkit-box-shadow: 0px 0px 0px #FFF;
box-shadow: 0px 0px 0px #FFF;
outline: 0;
padding: 4px 20px;
-webkit-appearance: none;
}
button {
background-color: #333B3D;
}

input[type="button"]{
background-color: #FFD54F;
}

input[type="checkbox"]
{
border: 5px #FFF;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-moz-box-shadow: 0px 0px 0px #FFF;
-webkit-box-shadow: 0px 0px 0px #FFF;
box-shadow: 0px 0px 0px #FFF;
outline: 0;
padding: 10px 10px;
-webkit-appearance: none;
line-height: 1.5;
background-color: #FFF;
width: 15px;
height: 10px;
margin-bottom: 0px;
}

input[type="checkbox"]:checked {
background-color: #0080C6;
}


.left {
float: left;
color: #FFD54F;
}

.right {
float: right;
color: #FFF;
}

.yellow-table {
border-collapse: separate;
width: 100%;
height: 100%;
box-sizing: border-box;
box-shadow: #FFF 0px 0px 0px;
-webkit-appearance: none;
line-height: 2.2;
background: #FFD54F;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
-moz-box-shadow: 0px 0px 0px #FFF;
-webkit-box-shadow: 0px 0px 0px #FFF;
border-image: initial;
border-radius: 20px;
outline: 0px;
padding: 4px 20px;
}
13 changes: 13 additions & 0 deletions pyconbalkan/core/static/js/level.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function radio() {
var content = document.querySelector('input[name="level"]:checked');
var label = document.getElementById('label_name');
label.innerText = content.value + ":";


$(content).each(function() {
var idVal = $(this).attr("id");
var level_value = $("label[id='"+idVal+"_value']");
var label_value = document.getElementById('total');
label_value.innerText = level_value.text();
});
}
10 changes: 5 additions & 5 deletions pyconbalkan/core/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@
</div>
<ul class="nav navbar-nav ml-auto w-100 justify-content-end mb-5 pb-3">
<li><a class="btn btn-light btn-sm round" href="/#" role="button">Home</a></li>
<li><a class="btn btn-light btn-sm round" href="/cfp" role="button">CFP</a></li>
<li><a class="btn btn-light btn-sm round" href="/sponsors" role="button">Sponsors</a></li>
<li><a class="btn btn-light btn-sm round" href="/organizers" role="button">Organizers</a></li>
<li><a class="btn btn-light btn-sm round" href="/coc" role="button">CoC</a></li>
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">About</a></li>#}
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">News</a></li>#}
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">CFP</a></li>#}
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">Sponsoring</a></li>#}
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">Timetable</a></li>#}
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">Travel</a></li>#}
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">Tickets</a></li>#}
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">Events</a></li>#}
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">FAQ</a></li>#}
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">About</a></li>#}
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">Contact</a></li>#}
<li><a class="btn btn-light btn-sm round" href="/organizers" role="button">Organizers</a></li>
<li><a class="btn btn-light btn-sm round" href="/coc" role="button">CoC</a></li>
</ul>
</nav>
</div>
Expand Down
33 changes: 23 additions & 10 deletions pyconbalkan/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,38 @@
from pyconbalkan.speaker.models import Speaker


def home(request):
def get_conference_context(context):
conference = Conference.objects.filter(active=True)
if conference:
context['conference'] = conference.first()
return context

def home(request):
count_down = CountDown.objects.filter(active=True)
speakers = Speaker.objects.filter(active=True)
context = {
'speakers': speakers,
'conference': conference.first() if conference else None,
'speakers': Speaker.objects.filter(active=True),
'count_down': count_down.first() if count_down else None,
}
get_conference_context(context)
return render(request, 'home.html', context)


def organizers(request):
volunteers = Volunteer.objects.filter(type=Volunteer.VOLUNTEER, active=True)
organizers = Volunteer.objects.filter(type=Volunteer.ORGANIZER, active=True)
conference = Conference.objects.filter(active=True)
context = {
'volunteers': volunteers,
'organizers': organizers,
'conference': conference.first() if conference else None,
'volunteers': Volunteer.objects.filter(type=Volunteer.VOLUNTEER, active=True),
'organizers': Volunteer.objects.filter(type=Volunteer.ORGANIZER, active=True),
}
get_conference_context(context)
return render(request, 'organizers.html', context)


def sponsors(request):
context = {}
get_conference_context(context)
return render(request, 'sponsors.html', context)


def cfp(request):
context = {}
get_conference_context(context)
return render(request, 'cfp.html', context)
2 changes: 2 additions & 0 deletions pyconbalkan/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
'pyconbalkan.conference',
'pyconbalkan.speaker',
'pyconbalkan.organizers',
'pyconbalkan.cfp',
'pyconbalkan.sponsors',
# others
'rest_framework',
'django_countries',
Expand Down
Empty file.
3 changes: 3 additions & 0 deletions pyconbalkan/sponsors/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
3 changes: 3 additions & 0 deletions pyconbalkan/sponsors/api_urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from rest_framework import routers

router = routers.DefaultRouter()
5 changes: 5 additions & 0 deletions pyconbalkan/sponsors/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class SponsorsConfig(AppConfig):
name = 'sponsors'
Empty file.
3 changes: 3 additions & 0 deletions pyconbalkan/sponsors/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
Loading