Skip to content

Commit 8755c39

Browse files
committed
Use app logo on landing page
1 parent 68975f4 commit 8755c39

File tree

2 files changed

+26
-11
lines changed

2 files changed

+26
-11
lines changed

src/components/EmptyState.vue

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,19 @@ withDefaults(defineProps<Props>(), {
2222

2323
<template>
2424
<div class="empty-state">
25-
<Component
26-
:is="icon"
27-
v-if="icon != null"
28-
class="empty-state-icon"
29-
:class="{ 'empty-state-icon-big': iconSize === EmptyStateIconSize.Big }"
30-
/>
25+
<div
26+
v-if="icon != null || $slots.icon != null"
27+
class="empty-state-icon-wrapper"
28+
>
29+
<slot name="icon">
30+
<Component
31+
:is="icon"
32+
v-if="icon != null"
33+
class="empty-state-icon"
34+
:class="{ 'empty-state-icon-big': iconSize === EmptyStateIconSize.Big }"
35+
/>
36+
</slot>
37+
</div>
3138

3239
<PageHeader>
3340
{{ description }}
@@ -58,7 +65,10 @@ withDefaults(defineProps<Props>(), {
5865
&-icon {
5966
font-size: 30px;
6067
color: var(--white);
61-
margin-bottom: 15px;
68+
69+
&-wrapper {
70+
margin-bottom: 15px
71+
}
6272
6373
&-big {
6474
font-size: 50px;

src/pages/LandingPage.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,15 @@ function handleLogin() {
4747
</script>
4848

4949
<template>
50-
<EmptyState
51-
:icon="Icons.Github"
52-
description="Welcome to Gitification"
53-
>
50+
<EmptyState description="Welcome to Gitification">
51+
<template #icon>
52+
<img
53+
width="75"
54+
height="75"
55+
src="/src/assets/img/icon.png"
56+
>
57+
</template>
58+
5459
<template #footer>
5560
<AppButton @click="handleLogin">
5661
Log in via Github

0 commit comments

Comments
 (0)