Skip to content

Commit ae18040

Browse files
authored
Add Japanese and Korean edition images (#1477)
* Add Jp/Kr covers and text to the main page * Woops, add Jp picture
1 parent daf0daa commit ae18040

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

book/index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ building a basic but complete web browser, from networking to
99
JavaScript, in a couple thousand lines of Python.
1010

1111
::::: {.wide-ad}
12+
1213
![The cover for Web Browser Engineering, from Oxford University Press](im/cover.jpg)
1314

1415
::: {.description}
1516
# Buy _Web Browser Engineering_
1617

17-
_Web Browser Engineering_ is available in English
18-
for about $50 from
19-
[Bookshop.org](https://bookshop.org/p/books/web-browser-engineering-chris-harrelson/21588966),
18+
_Web Browser Engineering_ is available from
19+
[Bookshop](https://bookshop.org/p/books/web-browser-engineering-chris-harrelson/21588966),
2020
[B&N](https://www.barnesandnoble.com/w/web-browser-engineering-pavel-panchekha/1146050176),
21-
or [Amazon](https://amzn.to/4hFTkC2),
22-
and in Korean from
23-
[Yes24](https://www.yes24.com/product/goods/153499985)
24-
or directly from
25-
[Hanbit](https://www.hanbit.co.kr/store/books/look.php?p_code=B6818199506).
26-
More translations coming soon.
21+
and [Amazon](https://amzn.to/4hFTkC2),
22+
or in translation
23+
in Korean (from [Hanbit](https://www.hanbit.co.kr/store/books/look.php?p_code=B6818199506))
24+
and Japanese (from [O'Reilly](https://www.oreilly.co.jp/books/9784814401574/)).
2725
:::
2826

29-
![here](im/wbe-korean.jpeg)
27+
![The cover for Web Browser Engineering in Korean, from Hanbit](im/wbe-korean.jpeg)
28+
29+
![The cover for Web Browser Engineering in Japanese, from O'Reilly](im/wbe-japanese.jpeg)
3030

3131
:::::
3232

www/book.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,19 @@ form .checkoff, form button[type=submit] { margin-top: 1em; }
332332
#signup-close:active { color: red; }
333333
#signup-close::before { font-size: 24px; content: "❌︎"; }
334334

335-
.wide-ad { display: flex; gap: 1em; padding: .5em; outline: 2px solid #59b6ce; align-items: top; }
335+
.wide-ad { display: flex; gap: .25em; padding: .5em; outline: 2px solid #59b6ce; align-items: top; }
336336
.wide-ad h1:hover::after { content: none; }
337-
.wide-ad figure { margin: 0; }
337+
.wide-ad figure { margin: 0; display: flex; flex-direction: row; gap: .25em; }
338338
.wide-ad figure figcaption { display: none; }
339339
.wide-ad figure img { height: 7em; max-width: none; display: block; }
340-
.wide-ad .description { display: flex; flex-direction: column; gap: .5em; justify-content: space-between; }
340+
.wide-ad .description {
341+
display: flex; flex-direction: column; gap: .5em; justify-content: space-between;
342+
padding: 0 .5em;
343+
}
341344
.wide-ad .description * { margin: 0; }
345+
@media ((max-width: 950px) and (min-width: 801px)) or (max-width: 700px) {
346+
.wide-ad figure ~ figure { display: none; }
347+
}
342348
@media only screen and (max-width: 520px) {
343349
.wide-ad { padding: .5em; gap: .5em; }
344350
.wide-ad figure { display: none; }

www/im/wbe-japanese.jpeg

329 KB
Loading

0 commit comments

Comments
 (0)