Skip to content

Commit 7c31bc1

Browse files
committed
chore(seo): updated the title for diff view
1 parent cc53c22 commit 7c31bc1

File tree

2 files changed

+50
-6
lines changed

2 files changed

+50
-6
lines changed

pages/v2/diff.vue

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,40 @@
66
<main class="outline-none" tabindex="0">
77
<DiffActionBar :diff-navigator="diffNavigator" />
88
<section
9-
class="flex flex-wrap items-stretch w-full gap-4 font-mono text-gray-800 dark:text-gray-50"
9+
class="
10+
flex flex-wrap
11+
items-stretch
12+
w-full
13+
gap-4
14+
font-mono
15+
text-gray-800
16+
dark:text-gray-50
17+
"
1018
>
1119
<div class="flex w-full gap-4 space-around">
1220
<p
13-
class="flex-grow-0 flex-shrink-0 w-1/2 text-lg font-bold text-center capitalize break-all "
21+
class="
22+
flex-grow-0 flex-shrink-0
23+
w-1/2
24+
text-lg
25+
font-bold
26+
text-center
27+
capitalize
28+
break-all
29+
"
1430
>
1531
<span class="inline-block w-4/5">{{ lhsLabel }}</span>
1632
</p>
1733
<p
18-
class="flex-grow-0 flex-shrink-0 w-1/2 text-lg font-bold text-center capitalize break-all "
34+
class="
35+
flex-grow-0 flex-shrink-0
36+
w-1/2
37+
text-lg
38+
font-bold
39+
text-center
40+
capitalize
41+
break-all
42+
"
1943
>
2044
<span class="inline-block w-4/5">{{ rhsLabel }}</span>
2145
</p>
@@ -30,8 +54,8 @@
3054
</template>
3155

3256
<script lang="ts">
33-
import pako from 'pako'
3457
import loader from '@monaco-editor/loader'
58+
import pako from 'pako'
3559
import Vue from 'vue'
3660
import {
3761
getMonacoEditorDefaultOptions,
@@ -53,6 +77,11 @@ export default Vue.extend({
5377
diffNavigator: {},
5478
}
5579
},
80+
head() {
81+
return {
82+
title: 'Diff Viewer - Diff view',
83+
}
84+
},
5685
computed: {
5786
onThemeChange() {
5887
const theme = this.$store.state.theme.darkMode ? 'vs-dark' : 'light'

pages/v2/index.vue

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
n
21
<template>
32
<div class="page-contents">
43
<Navbar />
@@ -57,7 +56,23 @@ n
5756
<div class="self-end flex-grow-0 w-full mt-4 text-center">
5857
<button
5958
id="submitButton"
60-
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"
59+
class="
60+
inline-flex
61+
items-center
62+
justify-center
63+
w-48
64+
px-4
65+
py-2
66+
transition-transform
67+
transform
68+
bg-blue-600
69+
rounded-md
70+
shadow-lg
71+
outline-none
72+
text-gray-50
73+
focus:ring-4
74+
active:scale-y-75
75+
"
6176
aria-label="Click here to compare the inputted text blocks"
6277
>
6378
Compare

0 commit comments

Comments
 (0)