Skip to content

Commit

Permalink
feat: ui improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
selimdoyranli committed May 23, 2023
1 parent 7137209 commit dbad5b0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
20 changes: 14 additions & 6 deletions components/Dialog/AppCreditsDialog/AppCreditsDialog.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@
#{$vs-dialog} {
background-color: var(--color-ui-03);
box-shadow: var(--box-shadow-01);
}

&__body {
padding: calc(#{$spacer} * 4);
color: var(--color-text-02);
font-size: var(--font-size-text-20);
text-align: center;
&__content {
padding: calc(#{$spacer} * 8);
color: var(--color-text-02);
font-size: var(--font-size-text-20);
text-align: center;
}

&__footer {
display: flex;
flex-direction: column;
max-width: 50%;
margin: 0 auto;
padding-bottom: calc(#{$spacer} * 4);
}
}
}
23 changes: 7 additions & 16 deletions components/Dialog/AppCreditsDialog/AppCreditsDialog.component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,18 @@
vs-dialog.app-credits-dialog(v-model="dialog.isOpen" blur @close="handleClose")
template(#header)
AppLogo.mt-4
.app-credits-dialog__body
p(v-html="$t('credits.description')")

p(v-html="$t('credits.description')")

template(#footer)
vs-button.mx-auto(transparent href="https://github.com/selimdoyranli/4in1crop" blank)
vs-button(color="#171515" href="https://github.com/selimdoyranli/4in1crop" blank)
AppIcon.me-1(name="charm:github" color="var(--color-text-02)")
span.color-text-02 Github repository

// Buymeacoffee Button
script(
type="text/javascript"
src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js"
data-name="bmc-button"
data-slug="selimdoyranli"
data-color="#FFDD00"
data-emoji
data-font="Inter"
data-text="Buy me a coffee"
data-outline-color="#000000"
data-font-color="#000000"
data-coffee-color="#ffffff"
)
vs-button(color="#FD0" href="https://www.buymeacoffee.com/selimdoyranli" blank)
AppIcon.me-1(name="simple-icons:buymeacoffee" color="var(--color-text-02)")
span.color-text-02 Donate
</template>

<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.aspect-ratio-select-menu__group.aspect-ratio-select-menu__group--standard
.aspect-ratio-select-menu-item(
v-for="ratio in aspectRatio.standard.list"
:key="ratio"
:key="ratio.key"
:class="[getSelectedClass(ratio)]"
@click="selectRatio(ratio)"
)
Expand All @@ -14,7 +14,7 @@
.aspect-ratio-select-menu__group.aspect-ratio-select-menu__group--social
.aspect-ratio-select-menu-item(
v-for="ratio in aspectRatio.social.list"
:key="ratio"
:key="ratio.key"
:class="[getSelectedClass(ratio)]"
@click="selectRatio(ratio)"
)
Expand Down
3 changes: 2 additions & 1 deletion components/Panel/CropPanel/CropPanel.component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
span.crop-panel-footer__label
template(v-if="type === cropTypeEnum.FREE")
span {{ $t('editor.freeform') }}
span(v-if="selectedFreeFormRatio && selectedFreeFormRatio.key !== cropTypeEnum.FREE") &nbsp; ({{ selectedFreeFormRatio.title }})
span(v-if="selectedFreeFormRatio && selectedFreeFormRatio.key !== cropTypeEnum.FREE") &nbsp;
| ({{ selectedFreeFormRatio.title.replace(/<\/?[^>]+(>|$)/g, '') }})
template(v-else) {{ aspectRatio }}

template(v-if="panel.cropper")
Expand Down

0 comments on commit dbad5b0

Please sign in to comment.