Skip to content

Commit 126d701

Browse files
inouetakuyaryamakuchi
authored andcommitted
ボランティアスタッフを掲載する (#175)
* wip * ダミーのボランティアスタッフを掲載した * Volunteer.name 順に並べるようにした * ボランティアスタッフ表示にスタイルを適用した(sm) * fix: スタッフを並べるロジックを壊してしまっていた * ボランティアスタッフ表示にスタイルを適用した(md) * ボランティアスタッフ表示にスタイルを適用した(lg) * ボランティアスタッフの画像をリサイズできるようにした * ボランティアスタッフの情報をタミーから正しいものに置き換えた * fix: volunteer-22.jpg が長方形のままリサイズされていなかった * .sub-heading の行間の調整 * .staff-list の余白の調整 * .volunteer-list の margin-top が 0 であることに揃えた
1 parent ac258ab commit 126d701

File tree

122 files changed

+384
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+384
-8
lines changed

bin/resize-images

+22-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -ue -o pipefail
66
# Prevent commands misbehaving due to locale differences
77
export LC_ALL=C
88

9-
# FIXME: \w+ の正規表現がawk(nawk)では使えないので、gawkにしている (awkにできるならawkにしたい)
9+
# FIXME: 以下、\w+ の正規表現が awk(nawkでは使えないので、gawk にしている(awk にできるなら awk にしたい)
1010
for file in `git diff --cached --name-status | \
1111
gawk '$1 ~ /[AM]/ && tolower($2) ~ /src\/assets\/images\/staffs\/\w+\.(jpe?g|png|gif|svg)$/ {print $2}'`
1212
do
@@ -17,13 +17,32 @@ do
1717
git add $file
1818
done
1919

20-
# FIXME: \w+ の正規表現がawk(nawk)では使えないので、gawkにしている (awkにできるならawkにしたい)
2120
for file in `git diff --cached --name-status | \
2221
gawk '$1 ~ /[AM]/ && tolower($2) ~ /src\/assets\/images\/staffs\/@2x\/\w+\.(jpe?g|png|gif|svg)$/ {print $2}'`
2322
do
24-
echo コアスタッフ@2xの $file をリサイズします
23+
echo コアスタッフ @2x の $file をリサイズします
2524
cat $file | ./node_modules/.bin/sharp \
2625
resize 310 310 > ${file}.new
2726
mv -f ${file}.new $file
2827
git add $file
2928
done
29+
30+
for file in `git diff --cached --name-status | \
31+
gawk '$1 ~ /[AM]/ && tolower($2) ~ /src\/assets\/images\/volunteers\/\w+\.(jpe?g|png|gif|svg)$/ {print $2}'`
32+
do
33+
echo ボランティアスタッフの $file をリサイズします
34+
cat $file | ./node_modules/.bin/sharp \
35+
resize 60 60 > ${file}.new
36+
mv -f ${file}.new $file
37+
git add $file
38+
done
39+
40+
for file in `git diff --cached --name-status | \
41+
gawk '$1 ~ /[AM]/ && tolower($2) ~ /src\/assets\/images\/volunteers\/@2x\/\w+\.(jpe?g|png|gif|svg)$/ {print $2}'`
42+
do
43+
echo ボランティアスタッフ @2x の $file をリサイズします
44+
cat $file | ./node_modules/.bin/sharp \
45+
resize 120 120 > ${file}.new
46+
mv -f ${file}.new $file
47+
git add $file
48+
done
11.3 KB
4.36 KB
4.19 KB
3.06 KB
4.97 KB
4.16 KB
4.21 KB
4.11 KB
11.3 KB
2.15 KB
4.6 KB
3.36 KB
3.89 KB
4.3 KB
3.2 KB
8.65 KB
3.67 KB
16.6 KB
4.36 KB
3.15 KB
16.6 KB
3.04 KB
4.11 KB
2.28 KB
5.47 KB
4.19 KB
3.4 KB
4.19 KB
3.21 KB
1.84 KB
3.67 KB
2.87 KB
3.14 KB
18.9 KB
4.34 KB
2.86 KB
3.06 KB
4.05 KB
4.38 KB
4.1 KB
3.85 KB
4.35 KB
3.58 KB
2.46 KB
3.49 KB
5.46 KB
4.97 KB
2.98 KB
4.24 KB
36.4 KB
2.81 KB
3.9 KB
4.62 KB
2.75 KB
2.12 KB
4.87 KB
4.98 KB
4.16 KB
4.59 KB
3.47 KB
4.79 KB
1.81 KB
2.88 KB
8.74 KB
2.8 KB
4.21 KB
4.11 KB

0 commit comments

Comments
 (0)