Skip to content

Commit 57e7348

Browse files
committed
Fixing examples
1 parent 415b873 commit 57e7348

File tree

4 files changed

+30
-9
lines changed

4 files changed

+30
-9
lines changed

examples/src/index.ejs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
66
<title>React Diff Viewer</title>
77
<meta name="author" content="Pranesh Ravi" />
8-
<meta name="description" content="A simple and beautiful text diff viewer made with Diff and React." />
8+
<meta name="description" content="A simple and beautiful text diff viewer component made with diff and React" />
99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010
<meta name="theme-color" content="#704DFF" />
1111

12-
<meta content="https://image.ibb.co/hGUuTL/react-diff-viewer.png" property="og:image"/>
12+
<meta content="https://i.ibb.co/ChNkdjs/Banner.png" property="og:image"/>
1313
<meta content="React Diff Viewer" property="og:site_name" />
1414
<meta content="object" property="og:type" />
1515
<meta content="React Diff Viewer" property="og:title" />
1616
<meta content="https://github.com/praneshr/react-diff-viewer" property="og:url" />
17-
<meta content="A simple and beautiful text diff viewer made with Diff and React." property="og:description" />
17+
<meta content="A simple and beautiful text diff viewer component made with diff and React" property="og:description" />
1818

1919
<meta name="twitter:card" value="summary_large_image"/>
2020
<meta name="twitter:site" value="@pranesh_ravi" />
2121
<meta name="twitter:creator" value="@pranesh_ravi" />
2222
<meta name="twitter:title" content="React Diff Viewer" />
23-
<meta name="twitter:description" content="A simple and beautiful text diff viewer made with Diff and React." />
24-
<meta name="twitter:image" content="https://image.ibb.co/hGUuTL/react-diff-viewer.png" />
23+
<meta name="twitter:description" content="A simple and beautiful text diff viewer component made with diff and React" />
24+
<meta name="twitter:image" content="https://i.ibb.co/ChNkdjs/Banner.png" />
2525
</head>
2626
<body>
2727
<div id="app"></div>

examples/src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const newXml = require('./diff/xml/new.xml').default;
1111
const oldJs = require('./diff/javascript/old.rjs').default;
1212
const newJs = require('./diff/javascript/new.rjs').default;
1313

14-
const logo = require('../../logo-standalone.png');
14+
const logo = require('../../logo.png');
15+
const logoStandalone = require('../../logo-standalone.png');
1516

1617
interface ExampleState {
1718
splitView?: boolean;
@@ -127,6 +128,7 @@ class Example extends React.Component<{}, ExampleState> {
127128
<div className="banner">
128129
<div className="img-container">
129130
<img src={logo} alt="React Diff Viewer Logo" />
131+
<img src={logoStandalone} alt="React Diff Viewer Logo" className="mobile" />
130132
</div>
131133
<p>
132134
A simple and beautiful text diff viewer made with{' '}

examples/src/style.scss

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,14 @@ body {
144144
.img-container {
145145
text-align: center;
146146
margin: 0 auto;
147-
margin-bottom: 40px;
148147
max-width: 700px;
149148

150149
img {
151150
width: 100%;
151+
152+
&.mobile {
153+
display: none;
154+
}
152155
}
153156
}
154157

@@ -178,7 +181,7 @@ body {
178181

179182
p {
180183
max-width: 700px;
181-
font-size: 16px;
184+
font-size: 18px;
182185
margin: 0 auto;
183186
color: grey;
184187
}
@@ -209,6 +212,10 @@ body {
209212
overflow-y: hidden;
210213
white-space: nowrap;
211214
border: 1px solid #eee;
215+
216+
a {
217+
color: inherit;
218+
}
212219
}
213220

214221
footer {
@@ -221,8 +228,20 @@ body {
221228
.react-diff-viewer-example {
222229
.banner {
223230
.img-container {
224-
max-width: 300px;
231+
img {
232+
display: none;
233+
234+
&.mobile {
235+
display: block;
236+
width: 100px;
237+
margin: 0 auto 30px;
238+
}
239+
}
225240
}
226241
}
242+
243+
p {
244+
font-size: 16px;
245+
}
227246
}
228247
}

logo-standalone.png

-20 KB
Loading

0 commit comments

Comments
 (0)