Skip to content

Commit 04be2bb

Browse files
committed
chore: adjusting height for v2 to show little bigger editor
1 parent c2029ab commit 04be2bb

File tree

5 files changed

+146
-12
lines changed

5 files changed

+146
-12
lines changed

components/v2/footer.vue

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<template>
2+
<footer
3+
class="
4+
sticky
5+
pt-4
6+
pb-2
7+
mt-2
8+
text-center text-gray-800
9+
top-full
10+
bg-inherit
11+
dark:text-gray-50
12+
min-h-max
13+
"
14+
>
15+
Made with &hearts; using
16+
<a
17+
href="https://nuxtjs.org"
18+
title="nuxtjs a vuejs based framework inspired by nextjs"
19+
aria-label="nuxtjs a vuejs based framework inspired by nextjs"
20+
>
21+
<svg
22+
class="inline w-4 h-4"
23+
viewBox="0 0 124 124"
24+
fill="none"
25+
xmlns="http://www.w3.org/2000/svg"
26+
>
27+
<path
28+
fill-rule="evenodd"
29+
clip-rule="evenodd"
30+
d="M55.7498 27.1551C52.5277 21.615 44.4723 21.6149 41.2502 27.1551L6.13404 87.5346C2.91191 93.0748 6.93956 100 13.3838 100H40.7975C38.0438 97.5934 37.0241 93.4303 39.1079 89.8584L65.7033 44.2694L55.7498 27.1551Z"
31+
fill="#80EEC0"
32+
/>
33+
<path
34+
d="M78.0002 40.3997C80.6668 35.8668 87.3332 35.8668 89.9998 40.3997L119.061 89.801C121.728 94.3339 118.395 100 113.062 100H54.9383C49.6052 100 46.2719 94.3339 48.9385 89.801L78.0002 40.3997Z"
35+
fill="#00DC82"
36+
/>
37+
</svg>
38+
</a>
39+
<span>&</span>
40+
<a
41+
href="https://tailwindcss.com/"
42+
title="tailwind css"
43+
aria-label="tailwind css"
44+
>
45+
<svg
46+
xmlns="http://www.w3.org/2000/svg"
47+
fill="none"
48+
viewBox="0 0 54 33"
49+
class="inline w-4 h-4"
50+
>
51+
<g clip-path="url(#prefix__clip0)">
52+
<path
53+
fill="#38bdf8"
54+
fill-rule="evenodd"
55+
d="M27 0c-7.2 0-11.7 3.6-13.5 10.8 2.7-3.6 5.85-4.95 9.45-4.05 2.054.513 3.522 2.004 5.147 3.653C30.744 13.09 33.808 16.2 40.5 16.2c7.2 0 11.7-3.6 13.5-10.8-2.7 3.6-5.85 4.95-9.45 4.05-2.054-.513-3.522-2.004-5.147-3.653C36.756 3.11 33.692 0 27 0zM13.5 16.2C6.3 16.2 1.8 19.8 0 27c2.7-3.6 5.85-4.95 9.45-4.05 2.054.514 3.522 2.004 5.147 3.653C17.244 29.29 20.308 32.4 27 32.4c7.2 0 11.7-3.6 13.5-10.8-2.7 3.6-5.85 4.95-9.45 4.05-2.054-.513-3.522-2.004-5.147-3.653C23.256 19.31 20.192 16.2 13.5 16.2z"
56+
clip-rule="evenodd"
57+
/>
58+
</g>
59+
<defs>
60+
<clipPath id="prefix__clip0">
61+
<path fill="#fff" d="M0 0h54v32.4H0z" />
62+
</clipPath>
63+
</defs>
64+
</svg>
65+
</a>
66+
by &copy;
67+
<a
68+
href="https://technikhil314.netlify.app"
69+
class="hover:underline underline-offset-2"
70+
>Nikhil Mehta</a
71+
>
72+
</footer>
73+
</template>
74+
<script lang="ts">
75+
import Vue from 'vue'
76+
export default Vue.extend({})
77+
</script>

components/v2/navbar.vue

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
<template>
22
<nav
3-
class="sticky top-0 left-0 right-0 z-10 text-gray-800 shadow-lg dark:shadow-dark bg-gray-50 dark:bg-gray-900 dark:text-gray-50"
3+
class="
4+
sticky
5+
top-0
6+
left-0
7+
right-0
8+
z-10
9+
text-gray-800
10+
shadow-lg
11+
dark:shadow-dark
12+
bg-gray-50
13+
dark:bg-gray-900 dark:text-gray-50
14+
"
415
>
516
<div class="container flex items-center py-4 m-auto">
617
<div
@@ -66,7 +77,20 @@
6677
<slot name="right" />
6778
<button
6879
type="button"
69-
class="inline-flex items-center justify-center ml-4 bg-transparent border-2 border-gray-700 rounded-full shadow-lg w-9 h-9 active:scale-y-75 hover:scale-105 hover:shadow-lg"
80+
class="
81+
inline-flex
82+
items-center
83+
justify-center
84+
ml-4
85+
bg-transparent
86+
border-2 border-gray-700
87+
rounded-full
88+
shadow-lg
89+
w-9
90+
h-9
91+
active:scale-y-75
92+
hover:scale-105 hover:shadow-lg
93+
"
7094
:aria-label="
7195
darkMode ? 'Switch to light theme' : 'Switch to dark theme'
7296
"

layouts/main.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<SkipToNav />
44
<Toast />
55
<Nuxt />
6-
<Footer />
76
</div>
87
</template>
98
<script lang="ts">

pages/index.vue

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@
3030
id="lhs"
3131
rows="28"
3232
name="lhs"
33-
class="flex-1 w-full bg-transparent rounded-md resize-none form-textarea"
33+
class="
34+
flex-1
35+
w-full
36+
bg-transparent
37+
rounded-md
38+
resize-none
39+
form-textarea
40+
"
3441
v-html="lhs"
3542
></textarea>
3643
</div>
@@ -50,15 +57,38 @@
5057
id="rhs"
5158
rows="28"
5259
name="rhs"
53-
class="flex-1 w-full bg-transparent rounded-md resize-none form-textarea"
60+
class="
61+
flex-1
62+
w-full
63+
bg-transparent
64+
rounded-md
65+
resize-none
66+
form-textarea
67+
"
5468
v-html="rhs"
5569
>
5670
</textarea>
5771
</div>
5872
</section>
5973
<div class="self-end flex-grow-0 w-full text-center">
6074
<button
61-
class="inline-flex items-center justify-center w-48 px-4 py-2 transition-transform transform bg-blue-600 rounded-md shadow-lg outline-none text-gray-50 focus:ring-4 active:scale-y-75"
75+
class="
76+
inline-flex
77+
items-center
78+
justify-center
79+
w-48
80+
px-4
81+
py-2
82+
transition-transform
83+
transform
84+
bg-blue-600
85+
rounded-md
86+
shadow-lg
87+
outline-none
88+
text-gray-50
89+
focus:ring-4
90+
active:scale-y-75
91+
"
6292
aria-label="Click here to compare the inputted text blocks"
6393
id="submitButton"
6494
>
@@ -67,6 +97,7 @@
6797
</div>
6898
</form>
6999
</main>
100+
<Footer />
70101
</div>
71102
</template>
72103

pages/v2/index.vue

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<main class="text-gray-800 outline-none dark:text-gray-50" tabindex="0">
77
<section>
88
<header>
9-
<h1 class="w-full mb-2 text-xl text-center">
9+
<h1 class="w-full mb-2 text-center text-md">
1010
Find difference in any two text blocks and get easy sharable link
1111
</h1>
12-
<h2 class="w-full mb-2 text-center text-md">
12+
<h2 class="w-full mb-2 text-sm text-center">
1313
Don’t worry, We don’t store any of your data
1414
</h2>
1515
</header>
@@ -201,6 +201,7 @@
201201
</div>
202202
</form>
203203
</main>
204+
<Footer />
204205
</div>
205206
</template>
206207

@@ -214,8 +215,9 @@ import {
214215
} from '../../helpers/utils'
215216
import showTutorials from '../../helpers/driverjsTutorials'
216217
import Navbar from '~/components/v2/navbar.vue'
218+
import Footer from '~/components/v2/footer.vue'
217219
export default Vue.extend({
218-
components: { Navbar },
220+
components: { Navbar, Footer },
219221
layout: 'main',
220222
data() {
221223
return {
@@ -337,17 +339,18 @@ export default Vue.extend({
337339

338340
<style scoped>
339341
main {
340-
@apply grid gap-4;
342+
@apply grid gap-2;
341343
344+
margin-top: 1rem;
342345
grid-template-rows: 100px 1fr;
343346
@media screen and (min-width: 768px) {
344347
grid-template-rows: 60px 1fr;
345348
}
346349
}
347350
.editor-wrapper {
348-
max-height: calc(100vh - 20rem);
351+
max-height: calc(100vh - 18rem);
349352
}
350353
.editor {
351-
max-height: calc(100vh - 21rem);
354+
max-height: calc(100vh - 20rem);
352355
}
353356
</style>

0 commit comments

Comments
 (0)