Skip to content

Commit

Permalink
style: adjust download page in mobile screen
Browse files Browse the repository at this point in the history
  • Loading branch information
lukicenturi committed Aug 7, 2023
1 parent f4e42ab commit 330f08e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 25 deletions.
3 changes: 2 additions & 1 deletion components/download/DownloadDocs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const css = useCssModule();
<ButtonLink
color="primary"
variant="default"
size="lg"
external
to="https://rotki.readthedocs.io/en/latest/index.html"
>
Expand All @@ -43,7 +44,7 @@ const css = useCssModule();
@apply flex flex-col;
.title {
@apply text-rui-light-primary text-h6 mb-3;
@apply text-rui-light-primary text-h6 mb-3 font-medium;
}
.heading {
Expand Down
7 changes: 3 additions & 4 deletions components/download/DownloadHeading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,20 @@ const css = useCssModule();
}
.description {
@apply text-rui-text text-h4 md:text-h3;
@apply font-normal #{!important};
@apply text-rui-text text-h4;
}
}
.links {
@apply grid gap-6 grid-cols-2 lg:grid-cols-4 mb-6;
@apply grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-4 mb-6;
.link {
@apply w-full;
}
}
.version {
@apply text-body-1 text-rui-light-secondary;
@apply text-body-1 text-rui-text-secondary;
}
}
}
Expand Down
34 changes: 18 additions & 16 deletions components/download/DownloadItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@ const css = useCssModule();
<div :class="css.icon">
<RuiIcon :name="icon" color="primary" />
</div>
<div>
<p :class="css.for">{{ t('download.download_for') }}</p>
<h6 :class="css.platform">{{ platform }}</h6>
</div>
<div :class="css.action">
<a :href="url" download>
<RuiButton color="primary" size="lg">
{{ t('download.action') }}
</RuiButton>
</a>
<div :class="css.body">
<div>
<p :class="css.for">{{ t('download.download_for') }}</p>
<h6 :class="css.platform">{{ platform }}</h6>
</div>
<div>
<a :href="url" download>
<RuiButton color="primary" size="lg">
{{ t('download.action') }}
</RuiButton>
</a>
</div>
</div>
</div>
</template>
Expand All @@ -39,16 +41,16 @@ const css = useCssModule();
@apply flex items-center justify-center p-3 w-12 h-12 bg-white rounded-[0.625rem] text-rui-primary;
}
.for {
@apply text-body-1 text-rui-light-secondary;
.body {
@apply flex items-end md:items-start justify-between md:flex-col space-x-4 md:space-x-0 md:space-y-4;
}
.platform {
@apply text-h6;
.for {
@apply text-body-1 text-rui-text-secondary;
}
.action {
@apply inline-flex grow items-end;
.platform {
@apply text-h6 font-medium;
}
}
</style>
4 changes: 2 additions & 2 deletions components/download/DownloadPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ scanImages();
}
.controls {
@apply flex flex-col absolute -bottom-[1.75rem] md:-bottom-[3rem] z-10 left-0 right-0 md:-left-6 md:-right-6 items-center justify-center;
@apply flex flex-col absolute -bottom-[1.75rem] md:-bottom-[3rem] z-10 -left-2 -right-2 md:-left-6 md:-right-6 items-center justify-center;
.preview {
@apply px-4 py-3 md:px-8 md:py-6 rounded-xl border border-black/[.12] bg-white text-h5 md:text-h4 font-bold;
@apply mt-2 md:mt-0 px-8 py-2 md:py-6 rounded-xl border border-black/[.12] bg-white text-h5 md:text-h4 font-medium;
box-shadow: 4px 32px 80px 0 rgba(191, 194, 203, 0.24);
}
}
Expand Down
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
"download": {
"heading": {
"download_rotki": "Download rotki",
"description": "You can download rotki in your computer and start using it for free right now. Binaries available for all major Operating Systems."
"description": "Download now and start using across all major Operating Systems"
},
"documentation": {
"title": "Documentation",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/pages/index.spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Homepage test', () => {
.get('div')
.contains(
'h3',
'You can download rotki in your computer and start using it for free right now. Binaries available for all major Operating Systems.',
'Download now and start using across all major Operating Systems',
)
.first();

Expand Down

0 comments on commit 330f08e

Please sign in to comment.