From 496dbbfff1e46219e311ccb6f58667f308903b1e Mon Sep 17 00:00:00 2001 From: imohkay Date: Sat, 23 Oct 2021 17:53:09 +0530 Subject: [PATCH] add alternate home page --- app/static/css/partials/_film.scss | 14 ++-- app/templates/base.html | 0 app/templates/film.html | 2 +- app/templates/index-alt.html | 127 +++++++++++++++++++++++++++++ app/templates/index.html | 0 app/text/views.py | 4 + app/urls.py | 1 + 7 files changed, 140 insertions(+), 8 deletions(-) mode change 100644 => 100755 app/templates/base.html mode change 100644 => 100755 app/templates/film.html create mode 100755 app/templates/index-alt.html mode change 100644 => 100755 app/templates/index.html mode change 100644 => 100755 app/text/views.py mode change 100644 => 100755 app/urls.py diff --git a/app/static/css/partials/_film.scss b/app/static/css/partials/_film.scss index 9de6cc1..508c189 100755 --- a/app/static/css/partials/_film.scss +++ b/app/static/css/partials/_film.scss @@ -107,7 +107,7 @@ main > .film { font-size: 18px; a { - color: var(--color-link); + color: #ee0; text-decoration: none; font-weight: 700; } @@ -115,7 +115,7 @@ main > .film { .summary-block { max-width: 1080px; - margin-top: 350px; + margin-top: 60vh; } .bio-block { @@ -126,8 +126,8 @@ main > .film { .video-block { height: 100vh; - padding-bottom: 50px; - padding-top: 50px; + //padding-bottom: 50px; + //padding-top: 50px; video { position: fixed; @@ -146,9 +146,9 @@ main > .film { .icon-play { color: #fff; - border: 3px solid var(--color-link); + border: 4px solid rgba(#fff, 0.3); border-radius: 50%; - font-size: 32px; + font-size: 36px; text-decoration: none; width: 50px; height: 50px; @@ -160,7 +160,7 @@ main > .film { .film-play-block { text-align: center; - font-size: 18px; + font-size: 16px; } .film-play-spacer { diff --git a/app/templates/base.html b/app/templates/base.html old mode 100644 new mode 100755 diff --git a/app/templates/film.html b/app/templates/film.html old mode 100644 new mode 100755 index abd0591..8f88ad2 --- a/app/templates/film.html +++ b/app/templates/film.html @@ -52,7 +52,7 @@ body {
diff --git a/app/templates/index-alt.html b/app/templates/index-alt.html new file mode 100755 index 0000000..9fb073c --- /dev/null +++ b/app/templates/index-alt.html @@ -0,0 +1,127 @@ +{% extends "base.html" %} +{% block body_class%}body--home{% endblock %} +{% block head %} + +{% endblock head %} +{% block main %} +
+

Phantasmapolis

+

Looking back to the future


+

未至之城

+
回望未來
+
+

Video art program

+ Curated by Anushka Rajendran
+ Presented by Pad.ma

+ +
錄像計畫
+ 策展人 安努舒卡.拉堅德蘭
+ 藝術家 Pad.ma
+
+

2021 Asian Art Biennale

+ Oct 30, 2021 – Mar 6, 2022

+
2021亞洲藝術雙年展
+ 2021.10.30 - 2022.3.6
+
+{% endblock %} diff --git a/app/templates/index.html b/app/templates/index.html old mode 100644 new mode 100755 diff --git a/app/text/views.py b/app/text/views.py old mode 100644 new mode 100755 index 907cb38..9132a52 --- a/app/text/views.py +++ b/app/text/views.py @@ -10,6 +10,10 @@ def index(request): context = {} return render(request, 'index.html', context) +def index_alt(request): + context = {} + return render(request, 'index-alt.html', context) + def page(request, slug=''): context = {} if request.user.is_staff: diff --git a/app/urls.py b/app/urls.py old mode 100644 new mode 100755 index 5ba3136..4546ec0 --- a/app/urls.py +++ b/app/urls.py @@ -32,6 +32,7 @@ urlpatterns = [ path(settings.URL_PREFIX + 'tv/', video.tv, name='tv'), path(settings.URL_PREFIX + 'assemblies/', text.texts, name='texts'), path(settings.URL_PREFIX + 'assemblies/', text.text, name='text'), + path(settings.URL_PREFIX + 'index-alt/', text.index_alt, name='index_alt'), path(settings.URL_PREFIX + 'about/', text.about, name='about'), path(settings.URL_PREFIX + '/', text.page, name='page'), path(settings.URL_PREFIX[:-1], text.index, name='index'),