Skip to content

Commit 5d3dd45

Browse files
authored
Merge pull request #98 from Vauhtijuoksu/feature/vj24
Feature/vj24
2 parents 293638c + 4bb1331 commit 5d3dd45

Some content is hidden

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

41 files changed

+305
-1
lines changed
+252
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
// Override variables (from _variables.scss and bootstrap)
2+
3+
// Examples
4+
$darkblue: #152937;
5+
$darkgreen: #0b2d24;
6+
$darkred: #382218;
7+
$blue: #235576;
8+
$yellow: #f1d590;
9+
$grey: #718079;
10+
$naturalwhite: #d8ccaf;
11+
$green: #347868;
12+
$greyblue: #60838a;
13+
$orange: #de9b39;
14+
$blueishgrey: #abbdca;
15+
$white: #ebebdc;
16+
$lightgreen: #a1c665;
17+
$lightblue: #abcbbe;
18+
$red: #c2473b;
19+
20+
@font-face {
21+
font-family: 'solway';
22+
src: url('../misc/Solway-Regular.ttf') format('truetype');
23+
}
24+
@font-face {
25+
font-family: 'amarante';
26+
src: url('../misc/Amarante-Regular.ttf') format('truetype');
27+
}
28+
29+
$font-family-sans-serif: 'solway';
30+
$body-bg-image: url("../img/bg.png");
31+
32+
$container-bg: $blue;
33+
$content-bg: transparent;
34+
$content-filter: none;
35+
36+
$link-color: $orange;
37+
$link-hover-color: $red;
38+
39+
$menu-link-drop-shadow: $darkblue;
40+
41+
$primary: $yellow;
42+
$secondary: $orange;
43+
44+
$font-size-root: 22px;
45+
$increment-xs: 5px;
46+
47+
$body-color: $primary;
48+
49+
$menu-link-color: $secondary;
50+
$menu-link-hover-color: $primary;
51+
52+
$twitch-icon-image: url("../img/twitch.png");
53+
$twitch-icon-width: 20px;
54+
$twitch-icon-sm-width: 15px;
55+
$twitch-link-color: $link-color;
56+
$twitch-link-hover-color: $link-hover-color;
57+
58+
$donate-bar-color: $yellow;
59+
$donate-bar-text-color: $blueishgrey;
60+
$donate-bar-bg-color: $blue;
61+
$donate-bar-border-radius: 20px;
62+
$donate-bar-text-color-full: $lightgreen;
63+
$donate-bar-color-full: $green;
64+
$donate-bar-border: solid 4px $orange;
65+
$donate-bar-fill-border: $donate-bar-border;
66+
$donate-bar-padding: 0px;
67+
$donate-bar-text-outline: $darkblue;
68+
69+
$divider-height: 400px;
70+
$divider-width: 100%;
71+
72+
$incentive-bar-fill-color: $red;
73+
$incentive-bar-bg-color: $darkgreen;
74+
$incentive-dropdown-text-color: $link-color;
75+
$incentive-dropdown-hover-color: $link-hover-color;
76+
$incentive-closed-text-color: $grey;
77+
$incentive-copy-button-color: $green;
78+
$incentive-copy-button-hover-color: $lightgreen;
79+
$incentive-popup-bg-color: $blue;
80+
@import "static/css/base";
81+
82+
83+
84+
// Actual styles here
85+
86+
87+
#incentive_action_popup{
88+
box-sizing: content-box;
89+
border-top: solid 3px $primary;
90+
border-bottom: solid 3px $primary;
91+
}
92+
93+
.incentive_gen_button{
94+
background-color: $secondary;
95+
border-radius: 15px;
96+
}
97+
.incentive_code{
98+
color: #ef9a2b;
99+
}
100+
.incentive_gen_button:hover{
101+
background-color: #a5b624;
102+
}
103+
.incentive_bar {
104+
overflow: hidden;
105+
border-radius: 10px;
106+
height: 14px;
107+
margin-top: 0px;
108+
margin-bottom: 10px;
109+
}
110+
.incentive_bar_fill {
111+
border-radius: 10px;
112+
border: solid 3px #2f0028;
113+
}
114+
115+
input[type='checkbox'] {
116+
width: 20px;
117+
height: 20px;
118+
}
119+
120+
.header-logo-padded{
121+
width: 100%;
122+
padding: 30px;
123+
}
124+
.header{
125+
width: 100%;
126+
background: url("../img/header.png");
127+
}
128+
.container{
129+
padding: 0;
130+
}
131+
.timetable .ttplay .playblob .timetable-char {
132+
display: flex;
133+
justify-content: space-around;
134+
flex-direction: column;
135+
align-items: center;
136+
}
137+
.timetable .ttplay .playblob .timetable-char img.char {
138+
transform: none;
139+
position: relative;
140+
width: 100%;
141+
right: auto;
142+
top: auto;
143+
float: right;
144+
min-width: 100px;
145+
margin-top: -20px;
146+
}
147+
.timetable .ttplay .playright .playgame {
148+
font-size: 1.8rem;
149+
line-height: 1.7rem;
150+
}
151+
.tabletimetable {
152+
height: 200vh;
153+
}
154+
155+
.tabletimetable .tttcontent .tttday .tttgame .tttimg > img {
156+
pointer-events:none;
157+
float: right;
158+
width: 300%;
159+
margin-right: -20px;
160+
margin-top: -20px;
161+
transform: scaleX(-1);
162+
}
163+
.tabletimetable .tttcontent .tttday .tttgame:hover .tttimg > img {
164+
width: 500%;
165+
margin-right: -30px;
166+
transform: scaleX(1);
167+
}
168+
.tabletimetable .tttcontent .tttday .tttgame > div {
169+
font-size: 18px;
170+
line-height: 20px;
171+
padding-top: 5px;
172+
}
173+
.tabletimetable .tttcontent .tttday .tttgame > div > div {
174+
width: 100%;
175+
}
176+
.tabletimetable .tttcontent .tttday .tttgame .tttimg {
177+
width: 56px;
178+
}
179+
.menu-wrapper {
180+
padding-bottom: 20px;
181+
padding-top: 20px;
182+
font-family: "amarante";
183+
}
184+
h1, h2, h3, h4, .playdate, .playgame{
185+
font-family: "amarante";
186+
}
187+
.divider{
188+
max-width: 550px;
189+
max-height: 300px;
190+
}
191+
.divider-0 {
192+
background-image: url("../img/divider_0.png");
193+
}
194+
.divider-1 {
195+
background-image: url("../img/divider_1.png");
196+
}
197+
.divider-2 {
198+
background-image: url("../img/divider_2.png");
199+
}
200+
.divider-3 {
201+
background-image: url("../img/divider_3.png");
202+
}
203+
.timetable .ttplay:nth-child(odd) .playblob .timetable-char img.char{
204+
transform: scaleX(-1);
205+
}
206+
207+
.donate-bar .bar{
208+
box-sizing: content-box;
209+
margin: -4px;
210+
}
211+
.donate-bar .bar-text {
212+
text-shadow: -1px -1px 0 $donate-bar-text-outline, 1px -1px 0 $donate-bar-text-outline, -1px 1px 0 $donate-bar-text-outline, 1px 1px 0 $donate-bar-text-outline;
213+
font-size: 26px;
214+
line-height: 44px;
215+
}
216+
217+
.full > .bar-text{
218+
color: $donate-bar-text-color-full;
219+
}
220+
221+
.overflower {
222+
width: 130%;
223+
margin: 0 -15%;
224+
}
225+
.header-logo{
226+
width: 100%;
227+
background-image: url("../img/header_bg.png");
228+
background-size: 70% 68%;
229+
background-repeat: no-repeat;
230+
background-position: bottom center;
231+
}
232+
#container{
233+
margin-top: 30px;
234+
}
235+
.content{
236+
background-image: url("../img/content_top.png"), url("../img/content_bottom.png"),url("../img/content_loop.png"), url("../img/content_top_bg.png"), url("../img/loop_bg.png");
237+
background-repeat: no-repeat, no-repeat, repeat-y, no-repeat, repeat-y;
238+
background-size: 100% auto, 100% auto, 100% auto, 70% auto, 70% auto;
239+
background-position: top center, bottom center, top center, top center, top center;
240+
width: 100%;
241+
padding: 0 24% 60px 24%;
242+
margin: 0;
243+
}
244+
245+
body{
246+
overflow-x: hidden;
247+
background-position: top center;
248+
background-repeat: repeat;
249+
}
250+
footer{
251+
margin-top: -60px;
252+
}

static/vauhtijuoksu2024/img/bg.png

375 KB
118 KB
187 KB
21.2 KB
6.97 KB
231 KB
75.7 KB
208 KB
138 KB
136 KB
205 KB
309 KB
59.7 KB
12.9 KB
20.6 KB

static/vauhtijuoksu2024/js/script.js

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

templates/vauhtijuoksu/plugins/donatebar.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{% load vj_extras %}
2-
<div class="donate-bar">
2+
{% if donation_sum >= instance.goal %}
3+
4+
<div class="donate-bar full">
5+
{% else %}
6+
<div class="donate-bar">
7+
{% endif %}
38
{% if donation_sum >= instance.goal %}
49
<div class="bar full"></div>
510
{% else %}

templates/vauhtijuoksu/vj2024.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{% extends "generic_base.html" %}
2+
{% load static cms_tags menu_tags sekizai_tags sass_tags %}
3+
4+
{% block body %}
5+
{% addtoblock "css" %}<link href='https://fonts.googleapis.com/css?family=Share Tech Mono' rel='stylesheet'>{% endaddtoblock %}
6+
{% addtoblock "css" %}<link href="{% sass_src 'vauhtijuoksu2024/css/style.scss' %}" rel="stylesheet" type="text/css">{% endaddtoblock %}
7+
{% addtoblock "js" %}<script src="{% static 'bootstrap.min.js' %}"></script>{% endaddtoblock %}
8+
{% addtoblock "js" %}<script src="{% static "vauhtijuoksu2024/js/script.js" %}"></script>{% endaddtoblock %}
9+
10+
<div id="container" class="container">
11+
<div class="overflower">
12+
<img src="{% static 'vauhtijuoksu2024/img/header.png' %}" class="header-logo">
13+
<div class="content">
14+
<div class="menu-wrapper">
15+
<div class="menu">
16+
{% show_menu %}
17+
18+
</div>
19+
</div>
20+
{% placeholder "content" %}
21+
</div>
22+
</div>
23+
</div>
24+
{% endblock body %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% extends "generic_base.html" %}
2+
{% load static cms_tags menu_tags sekizai_tags sass_tags %}
3+
4+
{% block body %}
5+
{% addtoblock "css" %}<link href='https://fonts.googleapis.com/css?family=Share Tech Mono' rel='stylesheet'>{% endaddtoblock %}
6+
{% addtoblock "css" %}<link href="{% sass_src 'vauhtijuoksu2024/css/style.scss' %}" rel="stylesheet" type="text/css">{% endaddtoblock %}
7+
{% addtoblock "js" %}<script src="{% static 'bootstrap.min.js' %}"></script>{% endaddtoblock %}
8+
{% addtoblock "js" %}<script src="{% static "vauhtijuoksu2024/js/script.js" %}"></script>{% endaddtoblock %}
9+
10+
<img src="{% static 'vauhtijuoksu2024/img/logo.png' %}" class="header-logo-padded">
11+
<div id="fs-container">
12+
<div class="full-content">
13+
<div class="menu-wrapper">
14+
<div class="menu">
15+
{% show_menu %}
16+
</div>
17+
</div>
18+
{% placeholder "content" %}
19+
</div>
20+
</div>
21+
{% endblock body %}

vauhtijuoksu/settings/base.py

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@
124124
# List of templates that can be used for CMS pages
125125
CMS_TEMPLATES = [
126126
('vauhtijuoksu/vauhtijuoksu.html', 'VJ Generic theme'),
127+
('vauhtijuoksu/vj2024.html', 'VJ 2024 theme'),
128+
('vauhtijuoksu/vj2024_fullscreen.html', 'VJ 2024 fullscreen theme'),
127129
('vauhtijuoksu/vj2023.html', 'VJ 2023 theme'),
128130
('vauhtijuoksu/vj2023_fullscreen.html', 'VJ 2023 fullscreen theme'),
129131
('vauhtijuoksu/vj2022_fullscreen.html', 'VJ 2022 fullscreen theme'),

0 commit comments

Comments
 (0)