Skip to content

Commit 39d1397

Browse files
Normalize static asset paths in components
1 parent e7ceb70 commit 39d1397

File tree

4 files changed

+30
-40
lines changed

4 files changed

+30
-40
lines changed

components/Sponsors-2018.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Link from 'next/link';
21
import LazyLoad from 'react-lazyload';
32

43
const sponsorLocale = require('../lists/sponsors-2018').sponsors;
@@ -30,7 +29,7 @@ export const Sponsors = () => {
3029
<div className="col-xs-4 col-sm-3 center-xs pb-xs sponsors__single" role="presentation">
3130
<a href="https://www.blacktowerfm.com/locations/the-netherlands" target="_blank" rel="noopener">
3231
<LazyLoad height="100">
33-
<img className="img-responsive sponsors__logo" src="../static/img/meetup-2018/sponsors/blacktower.png" style={{ maxHeight: '100px' }} alt="Blacktower financial management group" />
32+
<img className="img-responsive sponsors__logo" src="/static/img/meetup-2018/sponsors/blacktower.png" style={{ maxHeight: '100px' }} alt="Blacktower financial management group" />
3433
</LazyLoad>
3534
</a>
3635
</div>

components/Sponsors-2020.js

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Link from 'next/link';
21
import LazyLoad from 'react-lazyload';
32
import { shuffle } from './Shuffler';
43

@@ -25,12 +24,10 @@ export const Sponsors = () => {
2524
key={s.title}
2625
role="presentation"
2726
>
28-
<a>
29-
<a href={s.url} target="_blank" rel="noopener noreferrer">
30-
<LazyLoad height={s.height}>
31-
<img className="img-responsive sponsors__logo" src={s.img} style={{ maxHeight: s.height }} alt={s.title} />
32-
</LazyLoad>
33-
</a>
27+
<a href={s.url} target="_blank" rel="noopener noreferrer">
28+
<LazyLoad height={s.height}>
29+
<img className="img-responsive sponsors__logo" src={s.img} style={{ maxHeight: s.height }} alt={s.title} />
30+
</LazyLoad>
3431
</a>
3532
</div>
3633
));
@@ -41,12 +38,10 @@ export const Sponsors = () => {
4138
key={s.title}
4239
role="presentation"
4340
>
44-
<a>
45-
<a href={s.url} target="_blank" rel="noopener noreferrer">
46-
<LazyLoad height={s.height}>
47-
<img className="img-responsive sponsors__logo" src={s.img} style={{ maxHeight: s.height }} alt={s.title} />
48-
</LazyLoad>
49-
</a>
41+
<a href={s.url} target="_blank" rel="noopener noreferrer">
42+
<LazyLoad height={s.height}>
43+
<img className="img-responsive sponsors__logo" src={s.img} style={{ maxHeight: s.height }} alt={s.title} />
44+
</LazyLoad>
5045
</a>
5146
</div>
5247
));
@@ -57,12 +52,10 @@ export const Sponsors = () => {
5752
key={s.title}
5853
role="presentation"
5954
>
60-
<a>
61-
<a href={s.url} target="_blank" rel="noopener noreferrer">
62-
<LazyLoad height={s.height}>
63-
<img className="img-responsive sponsors__logo" src={s.img} style={{ maxHeight: s.height }} alt={s.title} />
64-
</LazyLoad>
65-
</a>
55+
<a href={s.url} target="_blank" rel="noopener noreferrer">
56+
<LazyLoad height={s.height}>
57+
<img className="img-responsive sponsors__logo" src={s.img} style={{ maxHeight: s.height }} alt={s.title} />
58+
</LazyLoad>
6659
</a>
6760
</div>
6861
));
@@ -73,12 +66,10 @@ export const Sponsors = () => {
7366
key={s.title}
7467
role="presentation"
7568
>
76-
<a>
77-
<a href={s.url} target="_blank" rel="noopener noreferrer">
78-
<LazyLoad height={s.height}>
79-
<img className="img-responsive sponsors__logo" src={s.img} style={{ maxHeight: s.height }} alt={s.title} />
80-
</LazyLoad>
81-
</a>
69+
<a href={s.url} target="_blank" rel="noopener noreferrer">
70+
<LazyLoad height={s.height}>
71+
<img className="img-responsive sponsors__logo" src={s.img} style={{ maxHeight: s.height }} alt={s.title} />
72+
</LazyLoad>
8273
</a>
8374
</div>
8475
));
@@ -102,7 +93,7 @@ export const Sponsors = () => {
10293
<div className="sponsors__single" role="presentation">
10394
<a href="mailto:contact@vergecurrency.com?subject=Third Verge Meetup - Sponsorship" target="_blank" rel="noopener noreferrer">
10495
<LazyLoad height="100">
105-
<img className="img-responsive sponsors__logo" src="../static/img/meetup-2020/sponsors/new.jpg" style={{ maxHeight: '100px' }} alt="You?" />
96+
<img className="img-responsive sponsors__logo" src="/static/img/meetup-2020/sponsors/new.jpg" style={{ maxHeight: '100px' }} alt="You?" />
10697
</LazyLoad>
10798
</a>
10899
</div>

pages/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -356,20 +356,20 @@ function Home(props) {
356356
>
357357
<LazyLoad height={430}>
358358
<img
359-
src="../static/img/benefits-desktop.png"
359+
src="/static/img/benefits-desktop.png"
360360
srcSet="
361-
../static/img/benefits-desktop.png 1x,
362-
../static/img/benefits-desktop@2x.png 2x
361+
/static/img/benefits-desktop.png 1x,
362+
/static/img/benefits-desktop@2x.png 2x
363363
"
364364
alt="Benefits desktop"
365365
/>
366366
</LazyLoad>
367367
<LazyLoad height={385}>
368368
<img
369-
src="../static/img/benefits-mobile.png"
369+
src="/static/img/benefits-mobile.png"
370370
srcSet="
371-
../static/img/benefits-mobile.png 1x,
372-
../static/img/benefits-mobile@2x.png 2x
371+
/static/img/benefits-mobile.png 1x,
372+
/static/img/benefits-mobile@2x.png 2x
373373
"
374374
alt="Benefits mobile"
375375
/>

pages/wallets.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ function WalletsPage(props) {
6666
<div className="col-sm-5 col-md-4 col-lg-3 hidden-xs">
6767
<div className={`hidden-xs benefits--${i18n.language === 'ar' || i18n.language === 'fa' || i18n.language === 'ku' ? 'imgsrtl' : 'imgs'}`}>
6868
<img
69-
src="../static/img/benefits-desktop.png"
69+
src="/static/img/benefits-desktop.png"
7070
srcSet="
71-
../static/img/benefits-desktop.png 1x,
72-
../static/img/benefits-desktop@2x.png 2x
71+
/static/img/benefits-desktop.png 1x,
72+
/static/img/benefits-desktop@2x.png 2x
7373
"
7474
alt="Benefits desktop"
7575
/>
7676
<img
77-
src="../static/img/benefits-mobile.png"
77+
src="/static/img/benefits-mobile.png"
7878
srcSet="
79-
../static/img/benefits-mobile.png 1x,
80-
../static/img/benefits-mobile@2x.png 2x
79+
/static/img/benefits-mobile.png 1x,
80+
/static/img/benefits-mobile@2x.png 2x
8181
"
8282
alt="Benefits mobile"
8383
/>

0 commit comments

Comments
 (0)