|
1 | 1 | <template> |
2 | | - <div class="contents"> |
| 2 | + <div class="page-contents"> |
3 | 3 | <Navbar /> |
4 | 4 | <main class="text-gray-800 dark:text-gray-50"> |
5 | | - <h1 class="w-full mb-2 text-xl text-center"> |
6 | | - Find difference in any two text blocks and get easy sharable link |
7 | | - </h1> |
8 | | - <h2 class="w-full mb-2 text-center text-md"> |
9 | | - Don’t worry, We don’t store any of your data |
10 | | - </h2> |
11 | | - <form class="w-full h-full" @submit="checkForm"> |
12 | | - <div class="flex flex-wrap w-full h-full gap-4"> |
| 5 | + <section> |
| 6 | + <header> |
| 7 | + <h1 class="w-full mb-2 text-xl text-center"> |
| 8 | + Find difference in any two text blocks and get easy sharable link |
| 9 | + </h1> |
| 10 | + <h2 class="w-full mb-2 text-center text-md"> |
| 11 | + Don’t worry, We don’t store any of your data |
| 12 | + </h2> |
| 13 | + </header> |
| 14 | + </section> |
| 15 | + <form class="w-full" @submit="checkForm"> |
| 16 | + <div class="flex flex-wrap w-full gap-4"> |
13 | 17 | <textarea |
| 18 | + rows="28" |
14 | 19 | id="lhs" |
15 | | - class="flex-1 h-full max-h-full bg-transparent rounded-md resize-none form-textarea" |
| 20 | + class="flex-1 bg-transparent rounded-md resize-none form-textarea" |
16 | 21 | ></textarea> |
17 | 22 | <textarea |
18 | 23 | id="rhs" |
19 | | - class="flex-1 h-full max-h-full bg-transparent rounded-md resize-none form-textarea" |
| 24 | + rows="28" |
| 25 | + class="flex-1 bg-transparent rounded-md resize-none form-textarea" |
20 | 26 | ></textarea> |
21 | 27 | <div class="self-end flex-grow-0 w-full text-center"> |
22 | 28 | <button |
|
28 | 34 | </div> |
29 | 35 | </form> |
30 | 36 | </main> |
| 37 | + <Footer /> |
31 | 38 | </div> |
32 | 39 | </template> |
33 | 40 |
|
@@ -88,8 +95,14 @@ export default Vue.extend({ |
88 | 95 | }, |
89 | 96 | }) |
90 | 97 | </script> |
91 | | -<style> |
92 | | -.page-root { |
93 | | - max-height: calc(100% - 14rem); |
| 98 | + |
| 99 | +<style scoped> |
| 100 | +main { |
| 101 | + @apply grid gap-4; |
| 102 | +
|
| 103 | + grid-template-rows: 100px 1fr; |
| 104 | + @media screen and (min-width: 768px) { |
| 105 | + grid-template-rows: 60px 1fr; |
| 106 | + } |
94 | 107 | } |
95 | 108 | </style> |
0 commit comments