Enhances about page ui (#1619)

Done some css refactoring
This commit is contained in:
Marcos Peña 2021-12-23 14:40:54 +01:00
parent 57d6489007
commit e567abd5fb
4 changed files with 44 additions and 39 deletions

View File

@ -75,7 +75,7 @@
href="https://funkwhale.audio/#get-started"
>
<translate translate-context="Content/About/Link">Find another pod</translate>
<i class="external alternate icon margin-left" />
&nbsp;<i class="external alternate icon" />
</a>
</div>
</div>
@ -83,18 +83,23 @@
v-else
class="signup-form content"
>
<div class="ui positive message">
<div class="header">
<translate translate-context="Content/About/Message">
You're already signed in!
</translate>
<h3 class="header">
<translate translate-context="*/Signup/Title">
Sign up
</translate>
<div class="ui positive message">
<div class="header">
<translate translate-context="Content/About/Message">
You're already signed in!
</translate>
</div>
<p>
<translate translate-contect="Content/About/Hello">
Hello
</translate> {{ $store.state.auth.username }}
</p>
</div>
<p>
<translate translate-contect="Content/About/Hello">
Hello
</translate> {{ $store.state.auth.username }}
</p>
</div>
</h3>
</div>
</div>
<div class="ui card">
@ -107,7 +112,7 @@
{{ podName }}
</h1>
</section>
<div class="content padding-top padding-bottom">
<div class="content pod-description">
<h3
id="description"
class="ui header"
@ -200,7 +205,7 @@
class="ui header"
>
<translate translate-context="Content/About/Header">Find another pod</translate>
<i class="external alternate icon margin-left" />
&nbsp;<i class="external alternate icon" />
</h3>
<p>
<translate translate-context="Content/About/Paragraph">Listen to public albums and playlists shared on this pod.</translate>
@ -218,7 +223,7 @@
class="ui header"
>
<translate translate-context="Content/About/Header">Find an app</translate>
<i class="external alternate icon margin-left" />
&nbsp;<i class="external alternate icon" />
</h3>
<p>
<translate translate-context="Content/About/Paragraph">Use Funkwhale on other devices with our apps.</translate>
@ -342,21 +347,3 @@ export default {
}
}
</script>
<style scoped>
.margin-left {
margin-left: 5px;
}
.padding-top {
padding-top: 20px !important;
}
.padding-bottom {
padding-bottom: 20px !important;
}
h3 i {
display: inline !important;
font-size: 14px !important;
}
</style>

View File

@ -1,11 +1,7 @@
.ui.cards {
align-items: flex-start;
}
.ui.cards > .card,
.ui.card {
color: var(--card-text-color);
background: var(--card-background);
min-height: 200px;
background: var(--card-background);
&:not(.flat) {
box-shadow: var(--card-box-shadow);
}

View File

@ -181,5 +181,21 @@
}
}
}
h3.ui.header i {
display: inline;
font-size: 14px;
}
.ui.card {
.signup-form.content {
flex-grow: initial;
}
.pod-description {
flex-direction: column;
display: flex;
p {
margin: auto;
padding: 1.2em;
}
}
}
}

View File

@ -1,5 +1,11 @@
.page-library {
.ui.cards {
align-items: flex-start;
.ui.card {
min-height: 200px;
}
}
.ui.segment.head {
background-size: cover;
background-position: center;