Skip to content

Commit 8190be9

Browse files
committed
Merge pull request #768 from SilentImp/master
Ссылка и кнопка поддержки проекта
2 parents 8476ddd + dbc337a commit 8190be9

18 files changed

Lines changed: 146 additions & 22 deletions

File tree

handlers/donate/templates/newOrder.jade

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,25 @@ block content
2222

2323
+b("form").complex-form(data-order-form)
2424
+e.step._current
25-
+e('h2').alternate-title Сумма
25+
+e('h2').alternate-title Сумма поддержки
2626

27-
p= orderTemplate.description
27+
+e(p).description= orderTemplate.description
2828

2929
+b.text-input
30-
+e('input').control(name="amount", required, type="number")
31-
select(name="currency" data-order-currency)
30+
+e('input').control._big(name="amount", required, type="number")
31+
32+
+b('select').input-select._big(name="currency" data-order-currency)
3233
option(value="RUB") RUB
3334
option(value="USD") USD
3435
option(value="EUR") EUR
3536

3637
if (!user)
37-
+e('h2').alternate-title Укажите свой email
38+
+e('h2').alternate-title Ваш email
3839
+b.text-input.__email
39-
+e('input').control(placeholder="[email protected]", name="email", required, type="email")
40-
+e.email-note Для истории
40+
+e('input').control._big(placeholder="[email protected]", name="email", required, type="email")
41+
+e(p).description Мы пришлем вам подтверждение и запишим вас в исторический список поддержавших проект
4142

42-
+e('h2').alternate-title Выберите метод
43+
+e('h2').alternate-title Выберете метод оплаты
4344
+e.body
4445
+b.extract._small.__extract
4546
include ../../payments/common/templates/payment-methods
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Поддержка проекта
2+
3+
Если вы хотите подджржать проект, у вас есть такая возможность. Полученные средства делятся 50/50 между @iliakan, автором скринкаста по Webpack и @sokra, автором самого Webpack

handlers/webpackScreencast/templates/index.jade

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,15 @@ block content
4747

4848
+b.share-icons
4949
+e('span').title= t('Share')
50+
|:
5051
include /blocks/social-icons
5152

53+
+b.donate-links
54+
+e('span').title= t('Donate')
55+
|:
56+
+e("a").link(href="#")
57+
58+
5259

5360
+e("p").foot Ниже вы можете ознакомиться более детально с содержанием скринкаста
5461

@@ -58,5 +65,10 @@ block content
5865

5966
include /blocks/subscriptionsForm
6067

61-
include /blocks/comments
68+
include:simpledown donates.md
6269

70+
include /blocks/donates
71+
72+
include /blocks/comments
73+
74+

handlers/webpackScreencast/templates/index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Поэтому я записал этот скринкаст о том, как его использовать.
77

8-
Особое внимание я постарался уделить пониманию того, как он работает, и что представляет собой сборка,
8+
Особое внимание я постарался уделить пониманию того, как он работает, и что представляет собой сборка,
99
поскольку без него любой нюанс влечёт долгое путешествие по форумам в поисках "рецепта". Который вполне можно сделать и самостоятельно.
1010

1111
Полезного просмотра!
@@ -16,10 +16,10 @@
1616
В первых частях скринкаста используется модуль `babel-loader` версии 5, который ставится через `"npm i babel-loader@5"`.
1717

1818
Для шестой версии Babel нужно ставить `"npm i babel-loader babel-core babel-preset-es2015"` и использовать лоадер `"babel?presets[]=es2015"`.
19-
19+
2020
Впрочем, в Babel 6 есть много "шероховатостей", не факт что обновление на него сейчас на него будет оправданным.
2121
[/warn]
22-
22+
2323

2424

2525

@@ -141,7 +141,6 @@
141141
</div>
142142
</no-typography>
143143

144-
145144
## Код
146145

147146
Код к большинству выпусков находится в здесь: [](https://github.com/iliakan/webpack-screencast), его также можно скачать и в виде [zip-файла](https://github.com/iliakan/webpack-screencast/archive/master.zip).

locales/ru/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"Search": "Искать",
1010
"Comments": "Комментарии",
1111
"Share": "Поделиться",
12+
"Donate": "Поддержать",
1213
"read before commenting…": "перед тем как писать…",
1314
"You're welcome to post additions, questions to the articles and answers to them.": "Приветствуются комментарии, содержащие дополнения и вопросы по статье, и ответы на них.",
1415
"To insert a few words of code, use the <code>&lt;code&gt;</code> tag, for several lines – use <code>&lt;pre&gt;</code>, for more than 10 lines – use a sandbox (<a href='http://plnkr.co/edit/?p=preview'>plnkr</a>, <a href='http://jsbin.com'>JSBin</a>, <a href='http://codepen.io'>codepen</a>…)": "Для одной строки кода используйте тег <code>&lt;code&gt;</code>, для нескольких строк кода&nbsp;&mdash; тег <code>&lt;pre&gt;</code>, если больше 10 строк&nbsp;&mdash; ссылку на песочницу (<a href='http://plnkr.co/edit/?p=preview'>plnkr</a>, <a href='http://jsbin.com'>JSBin</a>, <a href='http://codepen.io'>codepen</a>…)",

package.json

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
"i18n-webpack-plugin": "*",
163163
"imagemin-pngquant": "*",
164164
"js-beautify": "*",
165+
"jshint": "*",
165166
"lazypipe": "*",
166167
"mocha": "*",
167168
"mysql": "*",

ru

100644100755
File mode changed.

styles/blocks/complex-form/complex-form.styl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@
2121
max-width 490px
2222
margin auto
2323

24+
&__description
25+
max-width 500px
26+
margin 20px auto 40px
27+
font-size 14px
28+
line-height 19px
29+
color #20252B
30+
font-family 'Open Sans', Helvetica, Arial, sans-serif
31+
2432
&__step
2533
@extend $yellow-border
2634
display none
@@ -52,7 +60,7 @@
5260
color #333
5361

5462
&__email
55-
width 250px
63+
width 350px
5664

5765
&__email-note
5866
font-size 12px
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.donate-button
2+
background linear-gradient(to bottom, #eee, #ccc)
3+
display inline-block
4+
color #333939
5+
border 1px solid #CFCECD
6+
margin 10px 0
7+
font 700 size font
8+
line-height 30px
9+
padding 0 16px 0 8px
10+
height 32px
11+
border-radius 4px
12+
13+
&:focus
14+
outline 0
15+
16+
&:hover
17+
background linear-gradient(to bottom, #ddd, #bbb)
18+
border-color #bebdbc
19+
20+
&::before
21+
color rgba(#B80000, .5)
22+
display inline-block
23+
vertical-align bottom
24+
min-height 20px
25+
min-width 20px
26+
margin-right 10px
27+
@extend $font-heart-plus
28+
font-size 16px
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.donate-links
2+
display inline-block
3+
4+
&__title
5+
display inline-block
6+
margin-right 10px
7+
color #C4C2C0
8+
font-size 12px
9+
10+
&__link
11+
color #FFFB9D
12+
margin-right 20px
13+
transition unquote('color') 0.2s
14+
font-size 16px
15+
16+
&:hover
17+
color #fff
18+
text-decoration none
19+
20+
&::after
21+
@extend $font-heart-plus
22+
display inline-block
23+
vertical-align bottom
24+
min-height 20px
25+
min-width 20px

0 commit comments

Comments
 (0)