update home page styles

This commit is contained in:
imohkay 2021-10-24 19:13:02 +05:30
parent a457f2e68d
commit 394df9263c
7 changed files with 132 additions and 35 deletions

View file

@ -118,6 +118,7 @@ main > .film {
.summary-block { .summary-block {
max-width: 1080px; max-width: 1080px;
margin-top: 60vh; margin-top: 60vh;
word-break: break-word;
} }
.bio-block { .bio-block {
@ -150,10 +151,11 @@ main > .film {
color: #fff; color: #fff;
border: 4px solid rgba(#fff, 0.3); border: 4px solid rgba(#fff, 0.3);
border-radius: 50%; border-radius: 50%;
box-sizing: border-box;
font-size: 36px; font-size: 36px;
text-decoration: none; text-decoration: none;
width: 50px; width: 54px;
height: 50px; height: 54px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -162,7 +164,11 @@ main > .film {
.film-play-block { .film-play-block {
text-align: center; text-align: center;
font-size: 16px; font-size: 18px;
}
.film-play-padma {
font-family: "wrong font";
} }
.film-play-spacer { .film-play-spacer {

View file

@ -0,0 +1,51 @@
.body--home {
.topnav {
display: none;
}
}
.index {
padding: var(--spacing-2);
a {
color: var(--color-link);
text-decoration: none;
font-weight: 700;
&:hover, &:focus {
opacity: 0.7;
}
}
p {
margin-bottom: var(--spacing-2);
}
h1 {
font-family: "wrong font";
margin: auto;
font-weight: normal;
font-size: 44px;
font-weight: bold
}
.h1-en-home {
line-height: 1.2;
}
.h1-zh-home {
font-size: 34px;
}
h2, .h2 {
font-size: 22px;
}
h2 {
margin-top: var(--spacing-2);
}
h3, .h3 {
font-size: 21px;
}
}

View file

@ -1,3 +1,10 @@
// Font: Wrong Font
@font-face {
font-family: "wrong font";
src: url("https://files.pad.ma/ttf/wrongfont.woff") format("woff");
}
// Font: Noto Sans // Font: Noto Sans
@font-face { @font-face {
@ -46,6 +53,10 @@ em {
font-style: italic; font-style: italic;
} }
.font-size-sm {
font-size: 18px;
}
main > .texts { main > .texts {
box-sizing: border-box; box-sizing: border-box;
@ -74,8 +85,8 @@ main > .texts {
main > .index { main > .index {
text-align: center; text-align: center;
padding-top: 48px; //padding-top: 48px;
font-size: 26px; //font-size: 26px;
line-height: 1.3; line-height: 1.3;
} }

View file

@ -2,6 +2,7 @@
@import "partials/layout"; @import "partials/layout";
@import "partials/titleanimation"; @import "partials/titleanimation";
@import "partials/menu"; @import "partials/menu";
@import "partials/index";
@import "partials/film"; @import "partials/film";
@import "partials/text"; @import "partials/text";
@import "partials/ascroll"; @import "partials/ascroll";

View file

@ -54,7 +54,7 @@ body {
<div class="film-play-block"> <div class="film-play-block">
<div><a href="" id="play-fullscreen" class="icon-play"><span class="animated-title"><span class="text">&#x25b6;</span></span></a></div> <div><a href="" id="play-fullscreen" class="icon-play"><span class="animated-title"><span class="text">&#x25b6;</span></span></a></div>
<div class="film-play-spacer">OR</div> <div class="film-play-spacer">OR</div>
<div><a href="https://pad.ma/{{ film.padma_id }}/info" target="_blank">watch on pad.ma</a></div> <div class="film-play-padma"><a href="https://pad.ma/{{ film.padma_id }}/info" target="_blank">View on Pad.ma</a></div>
</div> </div>
</div> </div>
{% if film.related_texts.exists %} {% if film.related_texts.exists %}

View file

@ -111,19 +111,31 @@
<h1 class="h1-en-home rainbow rainbow_text_animated">Phantasmapolis</h1> <h1 class="h1-en-home rainbow rainbow_text_animated">Phantasmapolis</h1>
<h2>Looking back to the future</h2><br> <h2>Looking back to the future</h2><br>
<h1 class="h1-zh-home rainbow rainbow_text_animated">未至之城</h1> <h1 class="h1-zh-home rainbow rainbow_text_animated">未至之城</h1>
<div>回望未來</div> <p>回望未來</p>
<br>
<h2 class="font-bold">Video art program</h2> <div class="font-bold">Video art program</div>
Curated by Anushka Rajendran<br> <p2>2021 Asian Art Biennale</p>
Presented by Pad.ma<br><br>
<div class="font-bold">錄像計畫</div> <div class="font-bold">錄像計畫</div>
策展人 安努舒卡.拉堅德蘭<br> <p>2021亞洲藝術雙年展</p>
藝術家 Pad.ma<br> <p>2021.10.30 - 2022.3.6</p>
<br>
<h2 class="font-bold">2021 Asian Art Biennale</h2> <div><a href="{% url 'films'%}" class="animated-title font-bold h3"><span class="text">Films</span></a></div>
Oct 30, 2021 Mar 6, 2022<br><br> <p>21 films on subjects from animism to zoology</p>
<div class="font-bold">2021亞洲藝術雙年展</div>
2021.10.30 - 2022.3.6<br> <div><a href="{% url 'films'%}" class="animated-title h3">亞洲藝術雙年展</a></div>
<p>回望未來<p>
<div><a href="{% url 'texts' %}" class="animated-title font-bold h3"><span class="text">Assemblies</span></a></div>
<p>31 sequences of commentary on clips within or across film</p>
<div><a href="{% url 'texts'%}" class="animated-title h3">亞洲藝術雙年展</a></div>
<p>回望未來<p>
<div><a href="{% url 'about' %}" class="animated-title font-bold h3"><span class="text">About</span></a></div>
<p>phantas.ma/polis is a ...</p>
<div><a href="{% url 'about'%}" class="animated-title h3">亞洲藝術雙年展</a></div>
<p>回望未來<p>
</div> </div>
{% endblock %} {% endblock %}

View file

@ -1,22 +1,38 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block body_class%}animated animated-text{% endblock %} {% block body_class%}animated animated-text body--home{% endblock %}
{% block main %} {% block main %}
<div class="index"> <div class="index">
Phantasmapolis<br> <h1 class="h1-en-home">Phantasmapolis</h1>
Looking back to the future<br> <p>Looking back to the future</p>
未至之城<br>
回望未來<br> <h1 class="h1-zh-home">未至之城</h1>
<br> <p>回望未來<p>
Video art program<br>
Curated by Anushka Rajendran<br> <div class="font-bold">Video art program</div>
Presented by Pad.ma<br> <p>Asian Art Biennale 2021</p>
錄像計畫<br>
策展人 安努舒卡.拉堅德蘭<br> <div class="font-bold">錄像計畫</div>
藝術家 Pad.ma<br> <p>2021亞洲藝術雙年展</p>
<br> <p>2021.10.30 - 2022.3.6<p>
2021 Asian Art Biennale<br>
Oct 30, 2021 Mar 6, 2022<br> <div class="font-size-sm">
2021亞洲藝術雙年展<br> <div class="h3"><a href="{% url 'films'%}" class="font-bold">Films</a></div>
2021.10.30 - 2022.3.6<br> <p>21 films on subjects from animism to zoology</p>
<div class="h3"><a href="{% url 'films'%}" class="font-bold">亞洲藝術雙年展</a></div>
<p>回望未來<p>
<div class="h3"><a href="{% url 'texts' %}" class="font-bold">Assemblies</a></div>
<p>31 sequences of commentary on clips within or across film</p>
<div class="h3"><a href="{% url 'texts'%}" class="font-bold">亞洲藝術雙年展</a></div>
<p>回望未來<p>
<div class="h3"><a href="{% url 'about' %}" class="font-bold">About</a></div>
<p>phantas.ma/polis is a ...</p>
<div class="h3"><a href="{% url 'about'%}" class="font-bold">亞洲藝術雙年展</a></div>
<p>回望未來<p>
</div>
</div> </div>
{% endblock %} {% endblock %}