11
11
<div id =" properties" :style =" { visibility: visibleState }" >
12
12
<ElementProperties ></ElementProperties >
13
13
</div >
14
- <div id =" output" :style =" { visibility : visibleState, height: visibleState === 'hidden' ? 0 : undefined }" >
14
+ <div id =" output" :style =" { display : visibleState === 'hidden' ? 'none' : 'block' }" >
15
15
<PS1Variable ></PS1Variable >
16
16
<br />
17
17
<PromptPreview ></PromptPreview >
18
18
</div >
19
19
</div >
20
- <footer >If you like this project, please consider leaving a ⭐ ; on
21
- <a
22
- href =" https://github.com/Scriptim/bash-prompt-generator"
23
- target =" _blank"
24
- rel =" noopener noreferrer"
25
- >
26
- GitHub
27
- </a >.</footer >
28
20
</main >
21
+ <footer >
22
+ If you like this project, please consider leaving a <StarIcon class =" icon" ></StarIcon > on
23
+ <a
24
+ href =" https://github.com/Scriptim/bash-prompt-generator"
25
+ target =" _blank"
26
+ rel =" noopener noreferrer"
27
+ >GitHub</a >.
28
+ </footer >
29
29
</template >
30
30
31
31
<script lang="ts">
32
32
import { defineComponent } from ' vue' ;
33
+ import { StarIcon } from ' @heroicons/vue/24/solid' ;
33
34
import prompt from ' @/lib/prompt' ;
34
35
import SiteHeader from ' ./components/SiteHeader.vue' ;
35
36
import ElementSelection from ' ./components/elementselection/ElementSelection.vue' ;
@@ -42,6 +43,7 @@ import darkMode from './lib/darkMode';
42
43
export default defineComponent ({
43
44
name: ' App' ,
44
45
components: {
46
+ StarIcon ,
45
47
SiteHeader ,
46
48
ElementSelection ,
47
49
PromptElements ,
@@ -73,6 +75,10 @@ export default defineComponent({
73
75
@use " sass:color"
74
76
@import " @/assets/sass/_variables.sass"
75
77
78
+ html , body
79
+ height : 100%
80
+ margin : 0
81
+
76
82
body , main
77
83
margin : 0
78
84
box-sizing : border-box
82
88
-webkit-font-smoothing : antialiased
83
89
-moz-osx-font-smoothing : grayscale
84
90
85
- main
91
+ #app
92
+ display : flex
93
+ flex-direction : column
94
+ min-height : 100vh
86
95
color : $color-foreground
87
96
background-color : $color-background
88
- min-height : 100vh
97
+
98
+ main
99
+ flex-grow : 1
89
100
90
101
& .dark
91
102
color : $color-dim
@@ -190,8 +201,16 @@ input[type="number"]
190
201
padding : 0.8em
191
202
192
203
footer
193
- margin : 0
204
+ padding : 2em 0.2em
205
+ color : $color-background
206
+ background-color : #212121
194
207
font-style : italic
195
208
text-align : center
196
- padding : 4em 0.2em 2em
209
+
210
+ a
211
+ color : $color-accent
212
+
213
+ .icon
214
+ height : 1.2em
215
+ vertical-align : text-bottom
197
216
</style >
0 commit comments