Skip to content

Commit 9e2e763

Browse files
committed
Add Brazilian flag for sa-east-1 region. Remove Salzburg resource which appears to have been shut down, and reorder the main page a bit.
1 parent 284b290 commit 9e2e763

File tree

2 files changed

+106
-2
lines changed

2 files changed

+106
-2
lines changed

js/app.js

+16-2
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,20 @@ var Thumb = React.createClass({
107107
</a>
108108
]
109109

110+
var brazil = [
111+
<a href={ href }>
112+
<img
113+
className='flag'
114+
title='Served from Brazil'
115+
src='resources/icons/brazil.svg'
116+
/>
117+
</a>
118+
];
119+
110120
var flags = []
111121
if (r.eu) flags = flags.concat(eu)
112122
if (r.na) flags = flags.concat(na)
123+
if (r.brazil) flags = flags.concat(brazil)
113124
if (r.ext) flags = flags.concat(ext)
114125

115126
return <div className='col-xs-6 col-sm-4'>
@@ -130,6 +141,7 @@ var Resource = function(name, page, params) {
130141
this.na = params.na;
131142
this.eu = params.eu;
132143
this.ext = params.ext;
144+
this.brazil = params.brazil;
133145
};
134146

135147
var Page = React.createClass({
@@ -144,8 +156,8 @@ var Page = React.createClass({
144156
new Resource('Railway - France', 'sncf', both),
145157
new Resource('Red Rocks Amphitheatre', 'red-rocks', both),
146158
new Resource('Kentucky', 'kentucky', na),
159+
new Resource('São Paulo City', 'sao-paulo-city', { brazil: true, ext: true }),
147160
new Resource('New York City', 'nyc', both),
148-
new Resource('Salzburg', 'salzburg', { eu: true, ext: true }),
149161
new Resource('New Zealand', 'new-zealand', na),
150162
new Resource('Iowa', 'iowa', both),
151163
new Resource('Lake Isabella', 'lake-isabella', both),
@@ -163,7 +175,9 @@ var Page = React.createClass({
163175
new Resource('Space Shuttle Discovery', 'shuttle', both),
164176
new Resource('Lone Star Geyser', 'lone-star', both),
165177
new Resource('MH370', 'mh370', na),
166-
new Resource('São Paulo City', 'sao-paulo-city', ext),
178+
179+
// This seems to have been shut down.
180+
// new Resource('Salzburg', 'salzburg', { eu: true, ext: true }),
167181
];
168182

169183
return <div>

resources/icons/brazil.svg

+90
Loading

0 commit comments

Comments
 (0)