Skip to content

Commit f760228

Browse files
authored
Merge pull request #108 from ianshulx/Earth-828
added brick game project and listed some new projects
2 parents 60bff73 + d858438 commit f760228

File tree

114 files changed

+2951
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+2951
-1
lines changed

assets/brick.png

17.7 KB
Loading

assets/forum.png

29.8 KB
Loading

brickbuster/blog/__init__.py

Whitespace-only changes.

brickbuster/blog/admin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from django.contrib import admin
2+
from .models import Post
3+
4+
admin.site.register(Post)

brickbuster/blog/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 BlogConfig(AppConfig):
5+
name = 'blog'
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Generated by Django 3.1 on 2020-08-08 08:57
2+
3+
from django.conf import settings
4+
from django.db import migrations, models
5+
import django.db.models.deletion
6+
import django.utils.timezone
7+
8+
9+
class Migration(migrations.Migration):
10+
11+
initial = True
12+
13+
dependencies = [
14+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
15+
]
16+
17+
operations = [
18+
migrations.CreateModel(
19+
name='Post',
20+
fields=[
21+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
22+
('title', models.CharField(max_length=100)),
23+
('content', models.TextField()),
24+
('date_posted', models.DateTimeField(default=django.utils.timezone.now)),
25+
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
26+
],
27+
),
28+
]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Generated by Django 3.1 on 2021-04-05 15:18
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('blog', '0001_initial'),
10+
]
11+
12+
operations = [
13+
migrations.RemoveField(
14+
model_name='post',
15+
name='content',
16+
),
17+
migrations.RemoveField(
18+
model_name='post',
19+
name='title',
20+
),
21+
migrations.AddField(
22+
model_name='post',
23+
name='score',
24+
field=models.IntegerField(default=0),
25+
),
26+
]

brickbuster/blog/migrations/__init__.py

Whitespace-only changes.

brickbuster/blog/models.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from django.db import models
2+
from django.utils import timezone
3+
from django.contrib.auth.models import User
4+
from django.urls import reverse
5+
from PIL import Image
6+
7+
class Post(models.Model):
8+
date_posted = models.DateTimeField(default=timezone.now)
9+
author = models.ForeignKey(User, on_delete=models.CASCADE)
10+
score = models.IntegerField(default=0)
11+
12+
def __str__(self):
13+
return self.title
14+
15+
def get_absolute_url(self):
16+
return reverse('post-detail', kwargs={'pk': self.pk})
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
.content-section{
2+
/* margin-left: 100px; */
3+
display: flex;
4+
justify-content: space-around;
5+
}
6+
.introduction{
7+
width: 40%;
8+
/* margin-right: 70px; */
9+
}
10+
.common-questions h1{
11+
padding-right: 30px;
12+
display: inline-block;
13+
font-size: 30px;
14+
margin-bottom: 18px;
15+
border-bottom: 2px solid red;
16+
font-weight: bold;
17+
}
18+
.common-questions h2{
19+
font-weight: bold;
20+
font-size: 20px;
21+
margin: 0;
22+
}
23+
.common-questions p{
24+
font-size: 18px;
25+
}
26+
.common-questions *{
27+
/* color: #D1FFFD; */
28+
}
29+
.common-questions{
30+
max-width: 50%;
31+
}
32+
.question-container{
33+
/* border-left: 1px solid white; */
34+
margin-left: 5px;
35+
}
36+
.introduction h1{
37+
text-transform: uppercase;
38+
margin-bottom: 80px;
39+
background-color: rgba(10, 10, 10, 0.5);
40+
}
41+
.introduction p{
42+
margin-right: 2px;
43+
background-color: rgba(10, 10, 10, 0.5);
44+
display: inline;
45+
font-size: 26px;
46+
}
47+
img{
48+
position: absolute;
49+
height: 55%;
50+
bottom: 100px;
51+
left: 5%;
52+
z-index: -1;
53+
max-width: 90%;
54+
object-fit: contain;
55+
}
56+
#community{
57+
position: absolute;
58+
bottom: 230px;
59+
left: 170px;
60+
}
61+
footer{
62+
background-color:
63+
}

0 commit comments

Comments
 (0)