Adjust public hashtag pages (#5357)

signup-info-prompt
Lynx Kotoura 2017-10-14 21:48:12 +09:00 committed by Eugen Rochko
parent 8125fdc19f
commit b3b4b5a2eb
2 changed files with 90 additions and 68 deletions

View File

@ -704,7 +704,6 @@
.features #mastodon-timeline { .features #mastodon-timeline {
height: 70vh; height: 70vh;
width: 100%; width: 100%;
min-width: 330px;
margin-bottom: 50px; margin-bottom: 50px;
.column { .column {
@ -718,6 +717,23 @@
} }
&.tag-page { &.tag-page {
.features {
padding: 30px 0;
.container {
max-width: 820px;
#mastodon-timeline {
margin-right: 0;
border-top-right-radius: 0;
}
.about-mastodon {
.about-hashtag {
background: darken($ui-base-color, 4%);
padding: 0 20px 20px 30px;
border-radius: 0 5px 5px 0;
.brand { .brand {
padding-top: 20px; padding-top: 20px;
margin-bottom: 20px; margin-bottom: 20px;
@ -728,74 +744,68 @@
} }
} }
.container {
max-width: 690px;
}
.cta {
margin: 40px 0;
margin-bottom: 80px;
.button {
margin-right: 4px;
}
}
.about-mastodon {
max-width: 330px;
p { p {
strong { strong {
color: $ui-secondary-color; color: $ui-secondary-color;
font-weight: 700; font-weight: 700;
} }
} }
.cta {
margin: 0;
.button {
margin-right: 4px;
}
}
}
.features-list {
margin-left: 30px;
margin-right: 10px;
}
}
}
} }
@media screen and (max-width: 675px) { @media screen and (max-width: 675px) {
.features {
padding: 10px 0;
.container { .container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
}
.features { #mastodon-timeline {
padding: 20px 0; order: 2;
flex: 0 0 auto;
height: 60vh;
margin-bottom: 20px;
border-top-right-radius: 4px;
} }
.about-mastodon { .about-mastodon {
order: 1; order: 1;
flex: 0 0 auto; flex: 0 0 auto;
max-width: 100%; max-width: 100%;
}
#mastodon-timeline { .about-hashtag {
order: 2; background: unset;
flex: 0 0 auto; padding: 0;
height: 60vh; border-radius: 0;
}
.cta { .cta {
margin: 20px 0; margin: 20px 0;
margin-bottom: 30px; }
} }
.features-list { .features-list {
display: none; display: none;
} }
.stripe {
display: none;
} }
} }
} }
}
.stripe {
width: 100%;
height: 360px;
overflow: hidden;
background: darken($ui-base-color, 4%);
position: absolute;
z-index: -1;
} }
} }

View File

@ -7,12 +7,12 @@
= render 'og' = render 'og'
.landing-page.tag-page .landing-page.tag-page
.stripe
.features .features
.container .container
#mastodon-timeline{ data: { props: Oj.dump(default_props.merge(hashtag: @tag.name)) } } #mastodon-timeline{ data: { props: Oj.dump(default_props.merge(hashtag: @tag.name)) } }
.about-mastodon .about-mastodon
.about-hashtag
.brand .brand
= link_to root_url do = link_to root_url do
= image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon' = image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
@ -24,12 +24,24 @@
= link_to t('about.learn_more'), root_url, class: 'button button-alternative' = link_to t('about.learn_more'), root_url, class: 'button button-alternative'
.features-list .features-list
.features-list__row
.text
%h6= t 'about.features.real_conversation_title'
= t 'about.features.real_conversation_body'
.visual
= fa_icon 'fw comments'
.features-list__row .features-list__row
.text .text
%h6= t 'about.features.not_a_product_title' %h6= t 'about.features.not_a_product_title'
= t 'about.features.not_a_product_body' = t 'about.features.not_a_product_body'
.visual .visual
= fa_icon 'fw users' = fa_icon 'fw users'
.features-list__row
.text
%h6= t 'about.features.within_reach_title'
= t 'about.features.within_reach_body'
.visual
= fa_icon 'fw mobile'
.features-list__row .features-list__row
.text .text
%h6= t 'about.features.humane_approach_title' %h6= t 'about.features.humane_approach_title'