|
1 | 1 | import { H1, H2, H4 } from '@blueprintjs/core'; |
2 | 2 | import React from 'react'; |
3 | | -import { useTranslation } from 'react-i18next'; |
4 | 3 |
|
5 | 4 | import SicpToc from './SicpToc'; |
6 | 5 |
|
7 | | -const SicpIndexPage: React.FC = () => { |
8 | | - const { t } = useTranslation(); |
| 6 | +const originalAuthors = 'Harold Abelson and Gerald Jay Sussman'; |
| 7 | +const originalWithAuthors = 'with Julie Sussman'; |
| 8 | +const adaptedAuthors = 'Martin Henz and Tobias Wrigstad'; |
| 9 | +const adaptedWithAuthors = 'with Julie Sussman'; |
| 10 | +const developers = 'Samuel Fang'; |
9 | 11 |
|
10 | | - const authors = ( |
11 | | - <div className="sicp-authors"> |
12 | | - <H4>{t('sicp.originalAuthors')}</H4> |
13 | | - <p> |
14 | | - {t('sicp.originalAuthorsNote')} |
15 | | - <i>— original authors</i> |
16 | | - </p> |
17 | | - <H4>{t('sicp.adaptedAuthors')}</H4> |
| 12 | +const authors = ( |
| 13 | + <div className="sicp-authors"> |
| 14 | + <H4>{originalAuthors}</H4> |
| 15 | + <p> |
| 16 | + {originalWithAuthors} |
| 17 | + <i>— original authors</i> |
| 18 | + </p> |
| 19 | + <H4>{adaptedAuthors}</H4> |
| 20 | + <p> |
| 21 | + {adaptedWithAuthors} |
| 22 | + <i>— adapters to JavaScript</i> |
| 23 | + </p> |
| 24 | + <H4>{developers}</H4> |
| 25 | + <p> |
| 26 | + <i>— designer and developer of this Interactive SICP JS edition</i> |
| 27 | + </p> |
| 28 | + </div> |
| 29 | +); |
| 30 | + |
| 31 | +const bookTitle = ( |
| 32 | + <div> |
| 33 | + <H1>Structure and Interpretation of Computer Programs</H1> |
| 34 | + <H2>— JavaScript Edition</H2> |
| 35 | + </div> |
| 36 | +); |
| 37 | + |
| 38 | +const licenses = ( |
| 39 | + <div className="sicp-licenses"> |
| 40 | + <div> |
| 41 | + <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow"> |
| 42 | + <img src="https://licensebuttons.net/l/by-sa/4.0/88x31.png" alt="CC BY-SA 4.0" /> |
| 43 | + </a> |
| 44 | + </div> |
| 45 | + <div> |
18 | 46 | <p> |
19 | | - {t('sicp.adaptedAuthorsNote')} |
20 | | - <i>— adapters to JavaScript</i> |
| 47 | + This work is licensed under a{' '} |
| 48 | + <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow"> |
| 49 | + Creative Commons Attribution-ShareAlike 4.0 International License |
| 50 | + </a> |
| 51 | + . |
21 | 52 | </p> |
22 | | - <H4>{t('sicp.developers')}</H4> |
| 53 | + </div> |
| 54 | + <br /> |
| 55 | + <div> |
| 56 | + <a href="https://www.gnu.org/licenses/gpl-3.0.en.html" rel="nofollow"> |
| 57 | + <img |
| 58 | + src="https://camo.githubusercontent.com/46d38fe6087a9b9bdf7e45458901b818765b8391/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f372f37392f4c6963656e73655f69636f6e2d67706c2e7376672f353070782d4c6963656e73655f69636f6e2d67706c2e7376672e706e67" |
| 59 | + alt="GPL 3" |
| 60 | + data-canonical-src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/License_icon-gpl.svg/50px-License_icon-gpl.svg.png" |
| 61 | + /> |
| 62 | + </a> |
| 63 | + </div> |
| 64 | + <div> |
23 | 65 | <p> |
24 | | - {t('sicp.developersNote')} |
25 | | - <i>— designer and developer of this Interactive SICP JS edition</i> |
| 66 | + All JavaScript programs in this work are licensed under the{' '} |
| 67 | + <a href="https://www.gnu.org/licenses/gpl-3.0.en.html" rel="nofollow"> |
| 68 | + GNU General Public License Version 3 |
| 69 | + </a> |
| 70 | + . |
26 | 71 | </p> |
27 | 72 | </div> |
28 | | - ); |
29 | | - |
30 | | - const bookTitle = ( |
| 73 | + <br /> |
31 | 74 | <div> |
32 | | - <H1>{t('sicp.title')}</H1> |
33 | | - <H2>{t('sicp.javascriptEdition')}</H2> |
| 75 | + <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" rel="nofollow"> |
| 76 | + <img src="https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png" alt="CC BY-NC-SA 4.0" /> |
| 77 | + </a> |
34 | 78 | </div> |
35 | | - ); |
36 | | - |
37 | | - const licenses = ( |
38 | | - <div className="sicp-licenses"> |
39 | | - <div> |
40 | | - <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow"> |
41 | | - <img src="https://licensebuttons.net/l/by-sa/4.0/88x31.png" alt="CC BY-SA 4.0" /> |
42 | | - </a> |
43 | | - </div> |
44 | | - <div> |
45 | | - <p> |
46 | | - This work is licensed under a{' '} |
47 | | - <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow"> |
48 | | - Creative Commons Attribution-ShareAlike 4.0 International License |
49 | | - </a> |
50 | | - . |
51 | | - </p> |
52 | | - </div> |
53 | | - <br /> |
54 | | - <div> |
55 | | - <a href="https://www.gnu.org/licenses/gpl-3.0.en.html" rel="nofollow"> |
56 | | - <img |
57 | | - src="https://camo.githubusercontent.com/46d38fe6087a9b9bdf7e45458901b818765b8391/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f372f37392f4c6963656e73655f69636f6e2d67706c2e7376672f353070782d4c6963656e73655f69636f6e2d67706c2e7376672e706e67" |
58 | | - alt="GPL 3" |
59 | | - data-canonical-src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/License_icon-gpl.svg/50px-License_icon-gpl.svg.png" |
60 | | - /> |
| 79 | + <div> |
| 80 | + <p> |
| 81 | + <a |
| 82 | + href="https://mitpress.mit.edu/books/structure-and-interpretation-computer-programs-1" |
| 83 | + rel="nofollow" |
| 84 | + > |
| 85 | + Print and Kindle versions of this work{' '} |
61 | 86 | </a> |
62 | | - </div> |
63 | | - <div> |
64 | | - <p> |
65 | | - All JavaScript programs in this work are licensed under the{' '} |
66 | | - <a href="https://www.gnu.org/licenses/gpl-3.0.en.html" rel="nofollow"> |
67 | | - GNU General Public License Version 3 |
68 | | - </a> |
69 | | - . |
70 | | - </p> |
71 | | - </div> |
72 | | - <br /> |
73 | | - <div> |
| 87 | + are published by The MIT Press under a{' '} |
74 | 88 | <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" rel="nofollow"> |
75 | | - <img src="https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png" alt="CC BY-NC-SA 4.0" /> |
| 89 | + Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License |
76 | 90 | </a> |
77 | | - </div> |
78 | | - <div> |
79 | | - <p> |
80 | | - <a |
81 | | - href="https://mitpress.mit.edu/books/structure-and-interpretation-computer-programs-1" |
82 | | - rel="nofollow" |
83 | | - > |
84 | | - Print and Kindle versions of this work{' '} |
85 | | - </a> |
86 | | - are published by The MIT Press under a{' '} |
87 | | - <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" rel="nofollow"> |
88 | | - Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License |
89 | | - </a> |
90 | | - . |
91 | | - </p> |
92 | | - </div> |
93 | | - <br /> |
| 91 | + . |
| 92 | + </p> |
94 | 93 | </div> |
95 | | - ); |
| 94 | + <br /> |
| 95 | + </div> |
| 96 | +); |
96 | 97 |
|
| 98 | +const SicpIndexPage: React.FC = () => { |
97 | 99 | return ( |
98 | 100 | <div className="sicp-index-page"> |
99 | 101 | <div className="sicp-cover"> |
|
0 commit comments