Skip to content
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
197 changes: 197 additions & 0 deletions assets/create1poll.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,300;1,200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

body {
background: linear-gradient(360deg, #2f2e41 10%, #f50057 80%);
margin: 0;
font-family: 'Mulish', sans-serif;

}

.navbar {
padding: 0;
}

.navbar-brand {
font-family: 'Lobster', cursive;
font-size: 30px;


}

.container-fluid {
font-family: 'Mulish', sans-serif;
font-size: 20px;

background-color: #2f2e41;
}

.collapse {
text-align: right;
font-weight: lighter;

}

.btn {
color: white;
border: 2px solid #f50057;
margin-right: 40px;

}

.btn:hover {
background-color: #f50057;
border: 2px solid white;
}


.container {
background-color: white;
max-width: 900px;
border: 2px solid red;
margin: auto;
margin-top: 20px;


}

h1 {
text-align: center;
font-family: 'Lobster', cursive;
margin: 30px;
color: #3487f7;
}

label {
margin-left: 10px;
color: #2f2e41;
font-size: 20px;
}

.field {
margin: 10px;
padding: 2px;

}

.input {
display: block;
border: 2px solid rgb(114, 114, 114);
border-radius: 4px;
padding: 4px;
margin: 0px;
margin-top: 4px;
font-size: 15px;
width: 99.1%;
height: 30px;
}

button {
margin-top: 4px;
width: 150px;
border: 2px solid #3487f7;
border-radius: 4px;
color: #3487f7;
}

button:hover {
background-color: #f50057;
border: 2px solid white;
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
color: #fff;
}

.features {
display: flex;
flex-wrap: wrap;
background-color: #2f2e41;
padding-top: 120PX;

justify-content: center;
}


.box {
text-align: center;
background-color: white;
margin: 10px;
width: 300px;
height: 400px;
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
transition: all .4s;
}

.box:hover {
width: 320px;
height: 420px;

}

.icon {
height: 100px;
margin: 40px;
}
.description{
margin: 20px;
padding: 10px;
}

.h{
font-family: 'Lobster', cursive;
font-size: 20px;
color: #3487f7;

}


#footer {
font-family: 'Mulish', sans-serif;
text-align: center;
line-height: 30px;
background-color: #2f2e41;
color: white;
padding-top: 100PX;
}

#contact {
font-family: 'Lobster', cursive;
letter-spacing: 2px;
margin: auto;
background-color: #2f2e41;
padding: 30px;
}

.cont {
background-color: #2f2e41;
color: white;
text-decoration: none;
margin-left: 30px;
padding: 20px;
font-size: 20px;
transition: all .4s;



}

.cont:hover {
font-size: 25px;
text-shadow: 0px 1px 5px black;
text-shadow: 0 0 20px #fff, 0 0 10px #f50057, 0 0 20px #f50057, 0 0 30px #ff4da6;
}


.aa {
padding: 10px;

}

a:hover {
color: white;
}
@media screen and (max-width: 800px) {
.cont{
display: block;
}
}
Binary file modified db.sqlite3
Binary file not shown.
Binary file modified polling/__pycache__/forms.cpython-39.pyc
Binary file not shown.
Binary file modified polling/__pycache__/models.cpython-39.pyc
Binary file not shown.
Binary file modified polling/__pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file modified polling/__pycache__/views.cpython-39.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion polling/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Meta:
fields = ["Title","o1","o2","o3","o4","on1","on2","on3","on4","one_1","two_1","three_1","four_1"]
class Meta:
model = OpenPoll
fields = ["Title","o1","o2","o3","o4","on1","on2","on3","on4"]
fields = ["title","o1","o2","o3","o4","on1","on2","on3","on4"]



38 changes: 38 additions & 0 deletions polling/migrations/0013_auto_20210401_2048.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated by Django 3.1.7 on 2021-04-01 15:18

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('polling', '0012_creatpoll_votes'),
]

operations = [
migrations.RenameField(
model_name='openpoll',
old_name='Title',
new_name='title',
),
migrations.AlterField(
model_name='openpoll',
name='o1',
field=models.TextField(),
),
migrations.AlterField(
model_name='openpoll',
name='o2',
field=models.TextField(),
),
migrations.AlterField(
model_name='openpoll',
name='o3',
field=models.TextField(),
),
migrations.AlterField(
model_name='openpoll',
name='o4',
field=models.TextField(),
),
]
18 changes: 18 additions & 0 deletions polling/migrations/0014_openpoll_votes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.7 on 2021-04-03 09:06

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('polling', '0013_auto_20210401_2048'),
]

operations = [
migrations.AddField(
model_name='openpoll',
name='votes',
field=models.IntegerField(default=0),
),
]
Binary file not shown.
Binary file not shown.
11 changes: 6 additions & 5 deletions polling/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ class CreatPoll(models.Model):


class OpenPoll(models.Model):
Title = models.TextField()
o1 = models.CharField( max_length=50)
o2 = models.CharField( max_length=50)
o3 = models.CharField( max_length=50)
o4 = models.CharField( max_length=50)
title = models.TextField()
o1 = models.TextField()
o2 = models.TextField()
o3 = models.TextField()
o4 = models.TextField()
on1= models.IntegerField(default=0)
on2= models.IntegerField(default=0)
on3= models.IntegerField(default=0)
on4= models.IntegerField(default=0)
votes=models.IntegerField(default=0)

3 changes: 2 additions & 1 deletion polling/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
path('pollResult/<poll_id>/',views.pollResult,name='result'),
path('Tpolls',views.Tpolls,name='Tpolls'),
path('Teams',views.Teams,name="Team"),
path('Openpoll/<poll_id>/',views.OpenPoll,name='open')
path('Openpoll/<poll_id>/',views.OpePoll,name='open'),
path('openResult/<poll_id>/',views.OpenResult,name='openResult')
]
Loading