Skip to content

Commit 89da5a2

Browse files
committed
feat: redesign homepage with new sections and i18n
- Add "What is T-Ruby?" section with 3-column layout - Redesign code showcase with arrow-based transformation flow - Add "Existing Methods" comparison section (Sorbet, RBS, TypeProf, Others) - Add "Join the Journey" GitHub contribution section - Add version banner with changelog link - Add JetBrains to editors list - Update footer copyright with linked author names - Add Japanese and Korean translations for new sections
1 parent 94c661a commit 89da5a2

File tree

6 files changed

+1033
-68
lines changed

6 files changed

+1033
-68
lines changed

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ const config: Config = {
199199
],
200200
},
201201
],
202-
copyright: `Copyright © ${new Date().getFullYear()} T-Ruby. Built with Docusaurus.`,
202+
copyright: `Copyright © ${new Date().getFullYear()} <a href="https://github.com/yonghyun421" target="_blank" rel="noopener noreferrer">Fred</a> & <a href="https://github.com/type-ruby" target="_blank" rel="noopener noreferrer">T-Ruby</a>.`,
203203
},
204204
prism: {
205205
theme: prismThemes.github,

i18n/ja/code.json

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,25 @@
216216
"description": "Hero title highlighted text"
217217
},
218218
"homepage.hero.subtitle2": {
219-
"message": "型アノテーション付きの.trbファイルを書きましょう。標準の.rbファイルと.rbsにコンパイルします。TypeScriptのように。",
219+
"message": "型アノテーション付きの.trbファイルを書きましょう。<br />標準の.rbファイルと.rbsにコンパイルします。<br />TypeScriptのように。",
220220
"description": "Hero subtitle"
221221
},
222+
"homepage.hero.versionNotice": {
223+
"message": "T-Ruby {version} が利用可能です",
224+
"description": "Version notice with version number"
225+
},
226+
"homepage.whatIs.rubyMore.description": {
227+
"message": "T-Rubyは追加の構文でRubyを強力に拡張します。<strong>これは静的型だけでなくコンパイルタイムを意味します。</strong>",
228+
"description": "Ruby and More description"
229+
},
230+
"homepage.whatIs.trust.description": {
231+
"message": "T-RubyコードはRubyとRBSに変換されるため、<strong>Ruby、RBSが動作するすべてのエコシステムでの動作を保証します。</strong>",
232+
"description": "A Result You Can Trust description"
233+
},
234+
"homepage.whatIs.scale.description": {
235+
"message": "T-Rubyを通じてRubyで作成された製品の型安全性を確保しましょう。<strong>大規模でも安全な状態を維持できます。</strong>",
236+
"description": "Safety at Scale description"
237+
},
222238
"homepage.install.command": {
223239
"message": "gem install t-ruby",
224240
"description": "Install command"
@@ -264,7 +280,7 @@
264280
"description": "Feature description"
265281
},
266282
"homepage.codeShowcase.title": {
267-
"message": "実際の動作を見る",
283+
"message": "",
268284
"description": "Code showcase title"
269285
},
270286
"homepage.codeShowcase.subtitle": {
@@ -323,6 +339,10 @@
323339
"message": "VS Code拡張機能",
324340
"description": "VS Code extension"
325341
},
342+
"homepage.tooling.editors.jetbrains": {
343+
"message": "JetBrainsプラグイン",
344+
"description": "JetBrains plugin"
345+
},
326346
"homepage.tooling.editors.neovim": {
327347
"message": "Neovimプラグイン",
328348
"description": "Neovim plugin"
@@ -363,6 +383,58 @@
363383
"message": "すべてのgemが動作",
364384
"description": "All gems work"
365385
},
386+
"homepage.existingMethods.title": {
387+
"message": "既存の方法",
388+
"description": "Existing methods section title"
389+
},
390+
"homepage.existingMethods.subtitle": {
391+
"message": "既存のRuby型付けソリューションと比較して、T-Rubyの違いを確認してください。",
392+
"description": "Existing methods section subtitle"
393+
},
394+
"homepage.existingMethods.howToUse": {
395+
"message": "使い方",
396+
"description": "How to use label"
397+
},
398+
"homepage.existingMethods.limitations": {
399+
"message": "制限事項",
400+
"description": "Limitations label"
401+
},
402+
"homepage.existingMethods.vsTRuby": {
403+
"message": "T-Rubyのアプローチ",
404+
"description": "T-Ruby approach label"
405+
},
406+
"homepage.contribute.title": {
407+
"message": "一緒に作りましょう",
408+
"description": "Contribute section title"
409+
},
410+
"homepage.contribute.subtitle": {
411+
"message": "T-Rubyはオープンソースプロジェクトです。あなたの参加が大きな力になります。",
412+
"description": "Contribute section subtitle"
413+
},
414+
"homepage.contribute.star.title": {
415+
"message": "GitHubでStarする",
416+
"description": "Star card title"
417+
},
418+
"homepage.contribute.star.description": {
419+
"message": "応援してくださり、より多くの方がT-Rubyを見つけられるようにしてください",
420+
"description": "Star card description"
421+
},
422+
"homepage.contribute.issue.title": {
423+
"message": "Issue報告",
424+
"description": "Issue card title"
425+
},
426+
"homepage.contribute.issue.description": {
427+
"message": "バグを発見しましたか?新機能を提案したいですか?お知らせください",
428+
"description": "Issue card description"
429+
},
430+
"homepage.contribute.pr.title": {
431+
"message": "コード貢献",
432+
"description": "PR card title"
433+
},
434+
"homepage.contribute.pr.description": {
435+
"message": "プルリクエストを送って、型安全なRubyの未来を一緒に作りましょう",
436+
"description": "PR card description"
437+
},
366438
"homepage.layout.title": {
367439
"message": "型安全なRuby",
368440
"description": "Layout title"

i18n/ko/code.json

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,25 @@
216216
"description": "Hero title highlighted text"
217217
},
218218
"homepage.hero.subtitle2": {
219-
"message": "타입 어노테이션이 있는 .trb 파일을 작성하세요. 표준 .rb 파일과 .rbs로 컴파일됩니다. 타입스크립트처럼요.",
219+
"message": "타입 어노테이션이 있는 .trb 파일을 작성하세요.<br />표준 .rb 파일과 .rbs로 컴파일됩니다.<br />타입스크립트처럼요.",
220220
"description": "Hero subtitle"
221221
},
222+
"homepage.hero.versionNotice": {
223+
"message": "T-Ruby {version} 현재 사용 가능합니다",
224+
"description": "Version notice with version number"
225+
},
226+
"homepage.whatIs.rubyMore.description": {
227+
"message": "T-Ruby는 Ruby에 추가적인 문법을 더해 강력하게 확장합니다. <strong>이는 정적 타입뿐 아니라 컴파일 타임을 의미합니다.</strong>",
228+
"description": "Ruby and More description"
229+
},
230+
"homepage.whatIs.trust.description": {
231+
"message": "T-Ruby 코드는 Ruby와 RBS로 변환되므로, <strong>Ruby, RBS가 동작하는 모든 생태계에서의 동작을 보장합니다.</strong>",
232+
"description": "A Result You Can Trust description"
233+
},
234+
"homepage.whatIs.scale.description": {
235+
"message": "T-Ruby를 통해 Ruby로 작성된 제품의 타입 안정성을 확보하세요. <strong>큰 규모에서도 안전한 상태를 유지할 수 있습니다.</strong>",
236+
"description": "Safety at Scale description"
237+
},
222238
"homepage.install.command": {
223239
"message": "gem install t-ruby",
224240
"description": "Install command"
@@ -264,7 +280,7 @@
264280
"description": "Feature description"
265281
},
266282
"homepage.codeShowcase.title": {
267-
"message": "실제 동작 보기",
283+
"message": "예시",
268284
"description": "Code showcase title"
269285
},
270286
"homepage.codeShowcase.subtitle": {
@@ -323,6 +339,10 @@
323339
"message": "VS Code 확장",
324340
"description": "VS Code extension"
325341
},
342+
"homepage.tooling.editors.jetbrains": {
343+
"message": "JetBrains 플러그인",
344+
"description": "JetBrains plugin"
345+
},
326346
"homepage.tooling.editors.neovim": {
327347
"message": "Neovim 플러그인",
328348
"description": "Neovim plugin"
@@ -363,6 +383,58 @@
363383
"message": "모든 gem 작동",
364384
"description": "All gems work"
365385
},
386+
"homepage.existingMethods.title": {
387+
"message": "기존 방법들",
388+
"description": "Existing methods section title"
389+
},
390+
"homepage.existingMethods.subtitle": {
391+
"message": "기존 Ruby 타이핑 솔루션과 비교하고, T-Ruby가 어떻게 다른지 확인하세요.",
392+
"description": "Existing methods section subtitle"
393+
},
394+
"homepage.existingMethods.howToUse": {
395+
"message": "사용 방법",
396+
"description": "How to use label"
397+
},
398+
"homepage.existingMethods.limitations": {
399+
"message": "한계점",
400+
"description": "Limitations label"
401+
},
402+
"homepage.existingMethods.vsTRuby": {
403+
"message": "T-Ruby의 접근 방식",
404+
"description": "T-Ruby approach label"
405+
},
406+
"homepage.contribute.title": {
407+
"message": "함께 만들어가요",
408+
"description": "Contribute section title"
409+
},
410+
"homepage.contribute.subtitle": {
411+
"message": "T-Ruby는 오픈소스 프로젝트입니다. 여러분의 참여가 큰 힘이 됩니다.",
412+
"description": "Contribute section subtitle"
413+
},
414+
"homepage.contribute.star.title": {
415+
"message": "GitHub에서 Star 주기",
416+
"description": "Star card title"
417+
},
418+
"homepage.contribute.star.description": {
419+
"message": "응원을 보내주시고 더 많은 분들이 T-Ruby를 발견할 수 있도록 도와주세요",
420+
"description": "Star card description"
421+
},
422+
"homepage.contribute.issue.title": {
423+
"message": "이슈 제보하기",
424+
"description": "Issue card title"
425+
},
426+
"homepage.contribute.issue.description": {
427+
"message": "버그를 발견하셨거나 새로운 기능을 제안하고 싶으신가요? 알려주세요",
428+
"description": "Issue card description"
429+
},
430+
"homepage.contribute.pr.title": {
431+
"message": "코드 기여하기",
432+
"description": "PR card title"
433+
},
434+
"homepage.contribute.pr.description": {
435+
"message": "Pull Request를 제출하여 타입 안전한 Ruby의 미래를 함께 만들어가세요",
436+
"description": "PR card description"
437+
},
366438
"homepage.layout.title": {
367439
"message": "타입 안전한 Ruby",
368440
"description": "Layout title"

src/css/custom.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,19 @@ div[class*='codeBlockTitle'] {
235235

236236
[data-theme='dark'] .footer {
237237
background: #0d1117;
238+
color: #999;
239+
transition: all 200ms ease;
240+
}
241+
242+
.footer__copyright a {
243+
/*color: var(--ifm-color-primary);*/
244+
color: #d3d3d3;
245+
text-decoration: none;
246+
}
247+
248+
.footer__copyright a:hover {
249+
text-decoration: underline;
250+
color: #fff;
238251
}
239252

240253
/* Responsive */

0 commit comments

Comments
 (0)