Skip to content

Commit f15ba2b

Browse files
committed
refactor styles of quiz/about out of main pack
1 parent 22de043 commit f15ba2b

36 files changed

Lines changed: 241 additions & 201 deletions

File tree

client/head/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
require('styles');
3+
24
require('client/polyfill');
35

46
if (!window.localStorage) { // disabled

handlers/about/client/citymap.js

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
// an object containing LatLng and population for each city.
2+
module.exports = {
3+
"Москва": {
4+
"location": {
5+
"lat": 55.755826,
6+
"lng": 37.6173
7+
},
8+
radius: 30000
9+
},
10+
"Екатеринбург": {
11+
"location": {
12+
"lat": 56.83892609999999,
13+
"lng": 60.6057025
14+
},
15+
16+
radius: 20000
17+
},
18+
"Ярославль": {
19+
"location": {
20+
"lat": 57.62607440000001,
21+
"lng": 39.8844708
22+
},
23+
24+
radius: 18000
25+
},
26+
"Новосибирск": {
27+
"location": {
28+
"lat": 55.00835259999999,
29+
"lng": 82.9357327
30+
},
31+
32+
radius: 18000
33+
},
34+
"Казань": {
35+
"location": {
36+
"lat": 55.790278,
37+
"lng": 49.134722
38+
},
39+
40+
radius: 18000
41+
},
42+
"Самара": {
43+
"location": {
44+
"lat": 53.202778,
45+
"lng": 50.140833
46+
},
47+
48+
radius: 18000
49+
},
50+
"Пермь": {
51+
"location": {
52+
"lat": 58.00000000000001,
53+
"lng": 56.316667
54+
},
55+
56+
radius: 20000
57+
},
58+
"Белгород": {
59+
60+
"location": {
61+
"lat": 50.5997134,
62+
"lng": 36.5982621
63+
},
64+
65+
radius: 18000
66+
},
67+
"Ростов-на-Дону": {
68+
"location": {
69+
"lat": 47.23333299999999,
70+
"lng": 39.7
71+
},
72+
73+
radius: 18000
74+
},
75+
"Санкт-Петербург": {
76+
"location": {
77+
"lat": 59.9342802,
78+
"lng": 30.3350986
79+
},
80+
radius: 20000
81+
},
82+
"Калининград": {
83+
84+
"location": {
85+
"lat": 54.716667,
86+
"lng": 20.516667
87+
},
88+
89+
radius: 18000
90+
},
91+
"Киев": {
92+
93+
"location": {
94+
"lat": 50.4501,
95+
"lng": 30.5234
96+
},
97+
radius: 30000
98+
},
99+
"Харьков": {
100+
101+
"location": {
102+
"lat": 49.9935,
103+
"lng": 36.230383
104+
},
105+
radius: 30000
106+
},
107+
"Днепропетровск": {
108+
109+
"location": {
110+
"lat": 48.464717,
111+
"lng": 35.046183
112+
},
113+
114+
radius: 25000
115+
},
116+
"Одесса": {
117+
118+
"location": {
119+
"lat": 46.482526,
120+
"lng": 30.7233095
121+
},
122+
123+
radius: 22000
124+
},
125+
"Львов": {
126+
127+
"location": {
128+
"lat": 49.839683,
129+
"lng": 24.029717
130+
},
131+
132+
radius: 18000
133+
},
134+
"Херсон": {
135+
136+
"location": {
137+
"lat": 46.635417,
138+
"lng": 32.616867
139+
},
140+
141+
radius: 18000
142+
},
143+
"Донецк": {
144+
145+
"location": {
146+
"lat": 48.015883,
147+
"lng": 37.80285
148+
},
149+
150+
radius: 18000
151+
},
152+
"Винница": {
153+
154+
"location": {
155+
"lat": 49.233083,
156+
"lng": 28.468217
157+
},
158+
159+
radius: 22000
160+
},
161+
"Минск": {
162+
163+
"location": {
164+
"lat": 53.90453979999999,
165+
"lng": 27.5615244
166+
},
167+
168+
radius: 20000
169+
}
170+
171+
172+
};
173+

handlers/staticPage/templates/about-map.js renamed to handlers/about/client/index.js

Lines changed: 2 additions & 174 deletions
Original file line numberDiff line numberDiff line change
@@ -1,177 +1,5 @@
1-
// First, create an object containing LatLng and population for each city.
2-
var citymap = {
3-
"Москва": {
4-
"location": {
5-
"lat": 55.755826,
6-
"lng": 37.6173
7-
},
8-
radius: 30000
9-
},
10-
"Екатеринбург": {
11-
"location": {
12-
"lat": 56.83892609999999,
13-
"lng": 60.6057025
14-
},
15-
16-
radius: 20000
17-
},
18-
"Ярославль": {
19-
"location": {
20-
"lat": 57.62607440000001,
21-
"lng": 39.8844708
22-
},
23-
24-
radius: 18000
25-
},
26-
"Новосибирск": {
27-
"location": {
28-
"lat": 55.00835259999999,
29-
"lng": 82.9357327
30-
},
31-
32-
radius: 18000
33-
},
34-
"Казань": {
35-
"location": {
36-
"lat": 55.790278,
37-
"lng": 49.134722
38-
},
39-
40-
radius: 18000
41-
},
42-
"Самара": {
43-
"location": {
44-
"lat": 53.202778,
45-
"lng": 50.140833
46-
},
47-
48-
radius: 18000
49-
},
50-
"Пермь": {
51-
"location": {
52-
"lat": 58.00000000000001,
53-
"lng": 56.316667
54-
},
55-
56-
radius: 20000
57-
},
58-
"Белгород": {
59-
60-
"location": {
61-
"lat": 50.5997134,
62-
"lng": 36.5982621
63-
},
64-
65-
radius: 18000
66-
},
67-
"Ростов-на-Дону": {
68-
"location": {
69-
"lat": 47.23333299999999,
70-
"lng": 39.7
71-
},
72-
73-
radius: 18000
74-
},
75-
"Санкт-Петербург": {
76-
"location": {
77-
"lat": 59.9342802,
78-
"lng": 30.3350986
79-
},
80-
radius: 20000
81-
},
82-
"Калининград": {
83-
84-
"location": {
85-
"lat": 54.716667,
86-
"lng": 20.516667
87-
},
88-
89-
radius: 18000
90-
},
91-
"Киев": {
92-
93-
"location": {
94-
"lat": 50.4501,
95-
"lng": 30.5234
96-
},
97-
radius: 30000
98-
},
99-
"Харьков": {
100-
101-
"location": {
102-
"lat": 49.9935,
103-
"lng": 36.230383
104-
},
105-
radius: 30000
106-
},
107-
"Днепропетровск": {
108-
109-
"location": {
110-
"lat": 48.464717,
111-
"lng": 35.046183
112-
},
113-
114-
radius: 25000
115-
},
116-
"Одесса": {
117-
118-
"location": {
119-
"lat": 46.482526,
120-
"lng": 30.7233095
121-
},
122-
123-
radius: 22000
124-
},
125-
"Львов": {
126-
127-
"location": {
128-
"lat": 49.839683,
129-
"lng": 24.029717
130-
},
131-
132-
radius: 18000
133-
},
134-
"Херсон": {
135-
136-
"location": {
137-
"lat": 46.635417,
138-
"lng": 32.616867
139-
},
140-
141-
radius: 18000
142-
},
143-
"Донецк": {
144-
145-
"location": {
146-
"lat": 48.015883,
147-
"lng": 37.80285
148-
},
149-
150-
radius: 18000
151-
},
152-
"Винница": {
153-
154-
"location": {
155-
"lat": 49.233083,
156-
"lng": 28.468217
157-
},
158-
159-
radius: 22000
160-
},
161-
"Минск": {
162-
163-
"location": {
164-
"lat": 53.90453979999999,
165-
"lng": 27.5615244
166-
},
167-
168-
radius: 20000
169-
}
170-
171-
172-
};
173-
174-
1+
require('./styles');
2+
var citymap = require('./citymap');
1753

1764
/*
1775
* L.TileLayer is used for standard xyz-numbered tile layers.

assets/about/header.jpg renamed to handlers/about/client/styles/about-banner/header.jpg

File renamed without changes.

styles/blocks/about-banner/about-banner.styl renamed to handlers/about/client/styles/about-banner/index.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
min-height 380px
55

66
color #fff
7-
background url("/about/header.jpg") no-repeat;
7+
background url("about-banner/header.jpg") no-repeat;
88
background-size cover
99

1010

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@require "about-banner"
2+
@require "about-list"
3+
@require "about-layout"
4+
@require "about-text"
5+
@require "about-map"

0 commit comments

Comments
 (0)