Homepage cleanup.

This commit is contained in:
2018-09-06 13:03:40 +02:00
parent 92106459a0
commit 95e51e90de
3 changed files with 574 additions and 771 deletions

View File

@@ -1,58 +1,19 @@
.dashboard-container
+container-behavior
+media-xs
flex-direction: column
align-content: center
align-items: flex-start
display: flex
justify-content: space-around
word-break: break-word
section.dashboard-main,
section.dashboard-secondary
+media-xs
width: 100%
margin: 20px auto
img
max-width: 100%
section.dashboard-main
+container-box
width: 52%
section.dashboard-secondary
width: 46%
flex-direction: column
margin-right: auto
span.section-lead
display: block
padding: 10px 0
color: $color-text-dark-secondary
section.dashboard-main,
section.dashboard-secondary
.section-title
.title-underline
padding-bottom: 5px
margin-bottom: 20px
position: relative
margin-bottom: 20px
&:before
position: absolute
width: 50px
height: 2px
top: 125%
background-color: $primary
content: ' '
display: block
background-color: $color-primary
height: 2px
top: 125%
position: absolute
width: 50px
a
color: $color-text
&:hover
color: $color-primary
cursor: pointer
nav#nav-tabs,
nav#sub-nav-tabs
@@ -113,10 +74,10 @@
border-color: $color-background-light
pointer-events: none
section.stream
background-color: white
border-bottom: thin solid $color-background-dark
.dashboard-container
word-break: break-word
section.stream
ul.activity-stream__list
$activity-stream-thumbnail-size: 110px
@@ -165,6 +126,8 @@
margin: 0
ul.meta
+list-meta
font-size: .9em
padding: 0 10px 7px 10px
li
@@ -289,24 +252,6 @@
padding: 1px 5px
margin-right: 5px
ul.meta
+list-meta
padding: 5px 10px 0 10px
font-size: .85em
color: $color-text-dark-secondary
display: flex
white-space: nowrap
&.extra
margin-top: auto
li
padding-left: 10px
&:before
left: -5px
&.where-project
+text-overflow-ellipsis
section.comments
padding: 0 15px 5px
@@ -331,118 +276,6 @@
display: block
padding-bottom: 5px
section.blog-stream
+media-md
padding-left: 10px
+media-sm
padding-left: 10px
position: relative
.feed
position: absolute
top: 10px
right: 10px
font-size: 1.4em
color: lighten($color-text-dark-hint, 10%)
&:hover
color: $color-primary
> ul
margin: 0
padding: 0
list-style: none
border-top: thin solid $color-background
.blog_index-item
+container-box
display: flex
flex-direction: column
margin-bottom: 50px
&:before
height: 1px
background-color: $color-background-dark
position: absolute
bottom: -26px
left: 25px
right: 25px
content: ' '
&:last-child
margin-bottom: 0
&:before
display: none
video
max-width: 100%
a.item-title
font-size: 1.6em
padding: 5px 15px
display: block
color: $color-text
&:hover
color: $color-primary
ul.meta
+list-meta
font-size: .9em
padding: 15px 15px 5px
&.blog-non-featured
border-radius: 0
margin: 0
.item-content
+node-details-description
padding: 10px 15px
.blog-stream__list-details
.title
color: $color-text-dark-primary
display: block
font-size: 1.3em
&:hover
color: $color-primary
ul.meta
+list-meta
padding-top: 5px
font-size: .9em
color: $color-text-dark-secondary
li
padding-left: 10px
&:before
left: -5px
.blog_index-header
display: block
position: relative
img
border-top-left-radius: 3px
border-top-right-radius: 3px
width: 100%
.more
text-align: center
a
color: $color-text
display: block
padding: 25px 0
text-decoration: underline
width: 100%
&:hover
color: $color-primary
section.random-asset
border-bottom: thin solid $color-background-dark
@@ -649,31 +482,21 @@ section.announcement
justify-content: space-around
flex-wrap: wrap
section.dashboard-in-production
.in-production-project
border-bottom: thin solid $color-background-dark
color: $color-text-dark-primary
display: block
font-size: 1.1em
margin-bottom: 15px
> img
margin-bottom: 15px
body.homepage
.dashboard-container
.dashboard-main
+media-xs
width: 100%
background-color: transparent
box-shadow: none
width: 60%
.blog
// Custom tweak to Bootstrap grid for the only case when
// the post is inside a column (it's usually centered in the page).
.col-md-9
flex: 1
max-width: 100%
.dashboard-secondary
+container-box
+media-xs
width: 100%
width: 38%
.jumbotron
padding-top: 6em
padding-bottom: 6em
> section
padding: 15px
*
font-size: $h1-font-size
.lead
font-size: $font-size-base

View File

@@ -147,13 +147,6 @@ section
border-top: thin solid $color-background
margin: 0 auto
a.btn
margin: 20px auto
font-size: 1.3em
padding: 9px 18px
border-radius: 8px
color: $color-text-dark
.navbar-secondary
max-width: 620px
margin: 0 auto

View File

@@ -23,56 +23,44 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
| {% endblock navigation_tabs %}
| {% block body %}
.dashboard-container
section.dashboard-main
section.blog-stream
ul.blog-stream__list
.container-fluid.dashboard-container.imgs-fluid
.row
.col-md-8
section.blog
ul.list-unstyled
| {% if latest_posts %}
| {% for node in latest_posts %}
| {{ render_blog_post(node) }}
| {% endfor %}
| {% else %}
li
.blog-stream__list-details
ul.meta
li.when No blog entries... yet!
| No blog entries... yet!
| {% endif %}
.more
a(href="{{ url_for('main.main_blog') }}")
.d-block.text-center
a.d-inline-block.p-3.text-muted(href="{{ url_for('main.main_blog') }}")
| See All Blog Posts
a.feed(
a.d-inline-block.p-3.text-muted(
href="{{ url_for('main.feeds_blogs') }}",
title="Blogs Feed",
data-toggle="tooltip",
data-placement="left")
i.pi-rss
| RSS Feed
section.dashboard-secondary
| {{ navigation_tabs(title) }}
section.dashboard-in-production
h6.section-title In Production
span.section-lead.
Check out these projects currently in production!
a.in-production-project(href="https://cloud.blender.org/p/spring/")
.col-md-4
.dashboard-sidebar
section.pt-3
h6.title-underline In Production
a(href="/p/spring/")
img(src="{{ url_for('static', filename='assets/img/projects/spring_450x150.jpg')}}")
p.
#[strong Spring] - A poetic short film about a mountain spirit and her wise little dog.
a.in-production-project(href="https://cloud.blender.org/p/hero/")
img(src="{{ url_for('static', filename='assets/img/projects/hero_450x150.jpg')}}")
p.
#[strong Hero] - A '2D' trailer-style movie focused on getting grease pencil
production ready for Blender 2.8.
p.text-muted.pt-2.
A poetic short film about a mountain spirit and her wise little dog. #[a(href="/p/spring/") Check it out].
section.stream
h6.section-title Latest Assets
section.stream.py-3
h6.title-underline Latest Assets
ul.activity-stream__list.list-unstyled
| {% for n in activity_stream %}
@@ -108,7 +96,7 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
.ribbon
span free
| {% endif %}
ul.meta
ul.list-unstyled.d-flex.text-muted
| {% if not n.picture %}
li.when
a(href="{{ n.url }}", title="{{ n._created }}") {{ n._created | pretty_date_time }}
@@ -127,7 +115,7 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
| {% endif %}
| {% if n.picture %}
ul.meta.extra
ul.list-unstyled.d-flex.text-muted.extra
li.when
a(href="{{ n.url }}", title="{{ n._created }}") {{ n._created | pretty_date_time }}
li.who {{ n.user.full_name }}
@@ -138,10 +126,10 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
| No items to list.
section.random-asset
h6.section-title
section.random-asset.py-3
h6.title-underline
a(href="/search") Explore the Cloud
span.section-lead Random selection of the best assets & tutorials
.pb-3.text-muted Random selection of the best assets & tutorials
ul.random-asset__list.list-unstyled
| {% for n in random_featured %}
@@ -155,7 +143,7 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
.random-asset__list-details
a.title(href="{{ n.project.url }}") {{ n.project.name }}
| {% if n.project.summary %}
ul.meta
ul.list-unstyled.d-flex.text-muted
li.what
a(href="{{ n.project.url }}") {{ n.project.summary }}
| {% endif %}
@@ -179,7 +167,7 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
a.title(href="{{ n.url }}")
| {{ n.name }}
ul.meta
ul.list-unstyled.d-flex.text-muted
li.what
a(href="{{ n.url }}")
| {% if n.properties.content_type %}{{ n.properties.content_type | undertitle }}{% else %}Folder{% endif %}
@@ -211,7 +199,7 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
| {% endif %}
.random-asset__list-details
a.title(href="{{ n.url }}") {{ n.name }}
ul.meta
ul.list-unstyled.d-flex.text-muted
li.what
a(href="{{ n.url }}")
| {% if n.properties.content_type %}{{ n.properties.content_type }}{% else %}Folder{% endif %}
@@ -222,9 +210,8 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
| {% endfor %}
section.comments
h6.section-title Latest Comments
section.comments.py-3
h6.title-underline Latest Comments
ul.list-unstyled
| {% if latest_comments %}
@@ -236,7 +223,7 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
a.comment-content(href="{{ n.url }}")
| {{ n.properties.content | striptags | truncate(200) }}
ul.meta
ul.list-unstyled.d-flex.text-muted
li.who {{ n.user.full_name }}
| {% if n.attached_to %}