Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
feat: welcome page styling improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
herteleo committed Jun 7, 2019
1 parent f8b26c1 commit 0fa49ce
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/components/AppHeading.vue
Expand Up @@ -14,7 +14,7 @@

<style lang="postcss" module>
.heading {
@apply mb-2;
@apply mb-4;
}
.title {
Expand Down
14 changes: 13 additions & 1 deletion src/components/AppIcon.vue
Expand Up @@ -2,7 +2,11 @@
<svg
v-if="content"
:viewBox="attributes.viewBox"
:class="[$style.icon, $style[`size-${size}`]]"
:class="{
[$style.icon]: true,
[$style.inline]: inline,
[$style[`size-${size}`]]: true,
}"
v-html="content"
/>
</template>
Expand All @@ -14,6 +18,10 @@ export default {
type: String,
default: '',
},
inline: {
type: Boolean,
default: false,
},
size: {
type: Number,
default: 4,
Expand Down Expand Up @@ -50,6 +58,10 @@ export default {
@apply block flex-shrink-0 mx-auto fill-current;
}
.inline {
@apply inline-flex -mt-1;
}
.size-4 {
@apply w-4 h-4;
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/SuggestedApps.vue
Expand Up @@ -61,6 +61,7 @@ export default {

<style lang="postcss" module>
.wrap {
@apply p-8 pb-6 bg-gray-900 rounded;
display: grid;
grid-column-gap: theme('padding.8');
grid-row-gap: theme('padding.4');
Expand All @@ -70,7 +71,7 @@ export default {
.btn {
@apply
relative mb-8
text-center bg-gray-600 rounded shadow-lg;
text-center bg-gray-700 rounded shadow-lg;
}
.btn::before {
Expand Down Expand Up @@ -104,7 +105,7 @@ export default {
.label {
@apply
absolute pt-2 min-w-0
text-center text-gray-500 truncate;
text-center text-gray-600 truncate;
top: 100%;
left: 0;
right: 0;
Expand Down
63 changes: 42 additions & 21 deletions src/views/Welcome.vue
@@ -1,24 +1,42 @@
<template>
<app-content :class="$style.wrap">
<app-content>
<title-bar>
<title-bar-text>
{{ $productInfo.productName }}
Welcome to {{ $productInfo.productName }}
</title-bar-text>
</title-bar>
<div :class="$style.content">
<app-heading>Welcome to {{ $productInfo.productName }}</app-heading>
</div>
<div :class="$style.content">
<app-heading>Get started with these suggested apps</app-heading>
<p>
Maybe some of these apps are interesting for you.
Just click on the icons of apps you like,
to add them to {{ $productInfo.productName }}.
Or create a custom tab by clicking on the "+"-Button
down below in the navigation.
</p>
</div>
<suggested-apps />

<app-content-section :class="$style.brandWrap">
<img
:class="$style.brandLogo"
:alt="$productInfo.productName"
src="@/assets/logo/logo.png"
>
<app-heading :class="$style.brandLabel">
{{ $productInfo.productName }}
<template slot="sub">
{{ $productInfo.version }}
</template>
</app-heading>
</app-content-section>

<app-content-section>
<app-heading>
Get started
<template slot="sub">
Maybe some of these suggested apps are interesting for you.
Just click on the icons of apps you like,
to add them to {{ $productInfo.productName }}.
Or create a custom tab by clicking on the
<app-icon
face="tab-plus"
inline
/>-Button
down below in the navigation.
</template>
</app-heading>
<suggested-apps />
</app-content-section>
</app-content>
</template>

Expand All @@ -37,13 +55,16 @@ export default {
};
</script>


<style lang="postcss" module>
.wrap {
@apply p-8;
.brandWrap {
@apply flex items-center pb-8 border-b-2 border-gray-700;
}
.brandLogo {
@apply block p-3 mr-4 w-16 h-16 bg-gray-300 rounded-full;
}
.content {
@apply mb-8;
.brandLabel {
@apply mb-0;
}
</style>

0 comments on commit 0fa49ce

Please sign in to comment.