Skip to content

Commit bb27dc6

Browse files
Initial commit
0 parents  commit bb27dc6

32 files changed

+583
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

BitcoinAnalytics/__init__.py

Whitespace-only changes.
Binary file not shown.
254 Bytes
Binary file not shown.
648 Bytes
Binary file not shown.
605 Bytes
Binary file not shown.
621 Bytes
Binary file not shown.
Binary file not shown.

BitcoinAnalytics/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

BitcoinAnalytics/apps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class BitcoinanalyticsConfig(AppConfig):
5+
name = 'BitcoinAnalytics'

BitcoinAnalytics/forms.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from django.forms import ModelForm
2+
from .models import Competitor
3+
4+
5+
class CompetitorForm(ModelForm):
6+
class Meta:
7+
model = Competitor
8+
fields = '__all__'
9+
10+
11+
# class CompetitorListForm(ModelForm):
12+
# class Meta:
13+
# model = CompetitorList
14+
# fields = '__all__'
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Generated by Django 2.2.5 on 2021-12-15 18:03
2+
3+
from django.db import migrations, models
4+
import django.db.models.manager
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
initial = True
10+
11+
dependencies = [
12+
]
13+
14+
operations = [
15+
migrations.CreateModel(
16+
name='Competitor',
17+
fields=[
18+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19+
('name', models.CharField(max_length=100)),
20+
('price', models.DecimalField(decimal_places=2, max_digits=15)),
21+
('linkedIn', models.CharField(max_length=100)),
22+
],
23+
managers=[
24+
('Accounts', django.db.models.manager.Manager()),
25+
],
26+
),
27+
]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Generated by Django 2.2.5 on 2021-12-15 21:47
2+
3+
from django.db import migrations
4+
import django.db.models.manager
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('BitcoinAnalytics', '0001_initial'),
11+
]
12+
13+
operations = [
14+
migrations.AlterModelManagers(
15+
name='competitor',
16+
managers=[
17+
('Competition', django.db.models.manager.Manager()),
18+
],
19+
),
20+
]

BitcoinAnalytics/migrations/__init__.py

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.

BitcoinAnalytics/models.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from django.db import models
2+
3+
4+
class Competitor(models.Model):
5+
name = models.CharField(max_length=100)
6+
price = models.DecimalField(max_digits=15, decimal_places=2)
7+
linkedIn = models.CharField(max_length=100)
8+
# competitor_entry = models.ForeignKey(Competitor, on_delete=models.CASCADE)
9+
10+
Competition = models.Manager()
11+
12+
# allows references to a specific competitor as the person's name, not the primary key
13+
# def __str__(self):
14+
# return self.name + ' as a test 1'
15+
16+
17+
# class CompetitorList(models.Model):
18+
# person = models.ForeignKey(Competitor, on_delete=models.CASCADE)
19+
# print(person)
20+
# CompetitorSingle = models.Manager()
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Menu section animation
2+
3+
.Menu {
4+
color: #f00;
5+
font: bold 12px/18px sans-serif;
6+
text-align: center;
7+
display: inline;
8+
margin: 0% auto;
9+
padding: 0;
10+
list-style: none;
11+
text-decoration: none;
12+
}
13+
14+
.Menu li {
15+
color: #000;
16+
background-color: rgba(255,255,255,1);
17+
display: inline-block;
18+
margin: 2px auto;
19+
position: relative;
20+
padding: 15px 4%;
21+
border: 1px solid #9D9FA2;
22+
box-shadow: 2px 2px 10px 0 rgba(0,0,0,.5);
23+
border-radius: 6px;
24+
/* background-color: #052136; */
25+
cursor: pointer;
26+
transition-property: background;
27+
transition-duration: .4s;
28+
transition-delay: 0s;
29+
transition-timing-function: ease-in-out;
30+
}
31+
32+
.Menu li:hover {
33+
color: #f00;
34+
background-color: rgba(100,65,0,.3);
35+
}
36+
Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
html, body {
2+
height: cover;
3+
width: cover;
4+
}
5+
6+
body {
7+
font-family: Lucida Sans Unicode;
8+
text-align: left;
9+
background-image: url("../../../static/BitcoinAnalytics/images/background.jpg");
10+
-webkit-background-size: cover;
11+
-moz-background-size: cover;
12+
-o-background-size: cover;
13+
background-size: cover;
14+
overflow: scroll;
15+
background-repeat: no-repeat;
16+
background-color: black;
17+
}
18+
19+
h1 {
20+
color: black;
21+
font-size: 36px;
22+
text-align: center;
23+
}
24+
25+
h2 {
26+
font-size: 20px;
27+
}
28+
29+
/*Container Styling */
30+
.intro-container{
31+
opacity: 0.90;
32+
/* position: relative;*/
33+
width: auto;
34+
height: auto;
35+
border-radius: 8px;
36+
border: 2px solid gray;
37+
box-shadow: 4px 3px darkslateblue;
38+
margin-left: auto;
39+
margin-right: auto;
40+
/* margin-top: 85px;*/
41+
background-color: lightsteelblue;
42+
}
43+
44+
45+
.Wrap {
46+
/* height: 100%;
47+
width: 100%;*/
48+
/* position: absolute;
49+
*//* This ensures that the images cannot render outside of their container without forcing any scrollbars*//*
50+
overflow: hidden;
51+
top: 0;
52+
left: 0;*/
53+
text-align: center;
54+
/* background-color: green;*/
55+
}
56+
57+
.MenuContainer {
58+
max-height: 340px;
59+
margin: 0% auto;
60+
/* content: " ";*/
61+
/* top: 0%;
62+
left: 0;
63+
position: absolute; /* to the top edge of the screen */
64+
width: 100%;
65+
/* position: fixed;*/
66+
/* z-index: 100;*/
67+
/* background-color: rgba(255, 255, 255, 0.5); */
68+
}
69+
70+
#Home {
71+
width: 100%;
72+
display: block;
73+
height: auto;
74+
padding-top: 10px; /* This is the spacer before the main title logo */
75+
padding-bottom: 10px; /* This is the spacer after the main title logo */
76+
color: black;
77+
}
78+
79+
.Container {
80+
padding-right: 30px;
81+
padding-left: 30px;
82+
margin-right: auto;
83+
margin-left: auto;
84+
}
85+
86+
.TextCenter {
87+
text-align: center;
88+
}
89+
90+
.HeadMain {
91+
text-shadow: 2px 4px 5px rgba(0,0,0,0.9);
92+
font-variant: small-caps;
93+
color: red;
94+
letter-spacing: 5pt;
95+
word-spacing: 21pt;
96+
font-size: 4.5em;
97+
text-align: left;
98+
font-family: impact, sans-serif;
99+
line-height: 2;
100+
font-weight: 900;
101+
border: 5px double #fff;
102+
padding: 10px;
103+
}
104+
105+
/* General Table Styling */
106+
th{
107+
border: 3px solid black;
108+
}
109+
110+
tr td{
111+
height: 25px;
112+
border: 2px solid black;
113+
word-wrap: normal;
114+
vertical-align: top;
115+
width: auto;
116+
}
117+
118+
#headerRow {
119+
color: darkslateblue;
120+
text-align: center;
121+
}
122+
123+
.center {
124+
text-align: center;
125+
width: 15%;
126+
}
127+
128+
.noVisualButton {
129+
background-color: transparent;
130+
border: none;
131+
}
132+
133+
.noVisualButton:hover {
134+
font-weight: bold;
135+
text-decoration: underline;
136+
cursor: pointer;
137+
}
138+
139+
.left{
140+
padding-left: 10px;
141+
width: 30%;
142+
word-wrap: normal;
143+
}
144+
145+
.right {
146+
padding-right: 5px;
147+
width: 20%;
148+
text-align: right;
149+
}
150+
151+
#competition-table {
152+
background-color:white;
153+
width: 90%;
154+
height: auto;
155+
margin-right: auto;
156+
margin-left: auto;
157+
padding: 10px;
158+
border: 2px solid gray;
159+
border-collapse: collapse;
160+
border-radius: 8px;
161+
table-layout: auto;
162+
float: center;
163+
position: relative;
164+
}
165+
166+
/* Footer styling */
167+
#block-footer {
168+
clear: both;
169+
display: flex;
170+
width: 100%;
171+
-moz-box-sizing: border-box;
172+
margin: 0 auto;
173+
background-color: darkslateblue;
174+
position: fixed;
175+
bottom: 0;
176+
height: 40px;
177+
}
178+
#block-footer a, #block-footer p {
179+
flex: 1;
180+
color: white;
181+
padding: 15px 15px;
182+
font-size: 14px;
183+
line-height: 10px;
184+
font-family:'PT Sans', Arial, Helvetica, sans-serif;
185+
}
186+
#footer-left {
187+
width: 40%;
188+
text-align: left;
189+
}
190+
#footer-right {
191+
width: 40%;
192+
text-align: right;
193+
}
194+
#block-footer{
195+
float:left;
196+
clear:both;
197+
width:100%;
198+
}
199+
#block-footer a {
200+
color: white;
201+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
202+
text-decoration: none;
203+
outline: medium none;
204+
}
205+
#block-footer a:hover {
206+
color: steelblue;
207+
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
208+
Loading
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{% extends 'bitcoin_analytics_base.html' %}
2+
3+
{% block title %}Join Competition{% endblock %}
4+
{% block content %}
5+
<div class="TextCenter">
6+
<h3>Join our Quarterly Competition</h3>
7+
</div>
8+
<div class="Container">
9+
<form method="POST">
10+
{% csrf_token %}
11+
{{form.as_p}}
12+
<button id="new-competitor-button" type="submit" name="Save_Competitor">Submit Entry</button>
13+
</form>
14+
<br>
15+
</div>
16+
{% endblock %}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{% extends "bitcoin_analytics_base.html" %}
2+
3+
{% block title %}Competition Board{% endblock %}
4+
{% block content %}
5+
<div class="Container">
6+
<form method="POST">
7+
{% csrf_token %}
8+
<table class="table table-responsive" id="competition-table">
9+
<tr id="headerRow">
10+
<th>Name</th>
11+
<th>Price Prediction</th>
12+
<!-- <th>LinkedIn Profile</th>-->
13+
</tr>
14+
{% for key in competitionRow %}
15+
<tr>
16+
<td class="center">
17+
<button type="submit" value="{{ key.name }}"
18+
id="{{ key.name }}" name="name" class="noVisualButton">{{ key.name | capfirst }}</button>
19+
</td>
20+
<td class="center">{{ key.price }}</td>
21+
<!-- <td class="center">{{ key.linkedIn }}</td>-->
22+
</tr>
23+
{% endfor %}
24+
</table>
25+
</form>
26+
</div>
27+
{% endblock %}

0 commit comments

Comments
 (0)