PageIndexController.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Http\Request;
  4. class PageIndexController extends Controller
  5. {
  6. public function index(){
  7. $nav = [
  8. [
  9. 'title'=>'最新',
  10. 'id'=>'new',
  11. 'link'=>config('mint.server.dashboard_base_path').'/community/list',
  12. ],
  13. [
  14. 'title'=>'圣典',
  15. 'id'=>'pali',
  16. 'link'=>config('mint.server.dashboard_base_path').'/palicanon/list',
  17. ],
  18. [
  19. 'title'=>'课程',
  20. 'id'=>'course',
  21. 'link'=>config('mint.server.dashboard_base_path').'/course/list',
  22. ],
  23. [
  24. 'title'=>'字典',
  25. 'id'=>'dict',
  26. 'link'=>config('mint.server.dashboard_base_path').'/dict/recent',
  27. ],
  28. [
  29. 'title'=>'文集',
  30. 'id'=>'anthology',
  31. 'link'=>config('mint.server.dashboard_base_path').'/anthology/list',
  32. ],
  33. [
  34. 'title'=>'注册/登录',
  35. 'id'=>'sign_in',
  36. 'link'=>config('mint.server.dashboard_base_path').'/anonymous/users/sign-in',
  37. ],
  38. ];
  39. $wish = [
  40. [
  41. 'title'=>'翻译一套三藏',
  42. 'description'=>'我们希望把完整的巴利三藏、义注、复注、nissaya都翻译成为中文。',
  43. ],
  44. [
  45. 'title'=>'整理一本词典',
  46. 'description'=>'我们希望借助沉淀下来的数据,整理一套完整的巴中字典。这项工作将在整个三藏翻译的过程中逐渐完成。',
  47. ],
  48. [
  49. 'title'=>'开发一个平台',
  50. 'description'=>'我们会持续开发和维护wikipali平台,并不断发展新的功能,令其越来越方便与巴利翻译和研究。',
  51. ],
  52. ];
  53. $Gallery = [
  54. [
  55. 'image'=>'/assets/gallery/02.jpg',
  56. 'title'=>'云台翻译中心',
  57. 'id'=>'desc_01',
  58. 'description'=>'远眺翻译中心',
  59. ],
  60. [
  61. 'image'=>'/assets/gallery/01.jpg',
  62. 'title'=>'翻译人才培养',
  63. 'id'=>'desc_02',
  64. 'description'=>'翻译中还不断地培养翻译人才,加入到翻译工作中。',
  65. ],
  66. [
  67. 'image'=>'/assets/gallery/03.jpg',
  68. 'title'=>'云台翻译中心',
  69. 'id'=>'desc_03',
  70. 'description'=>'外景',
  71. ],
  72. [
  73. 'image'=>'/assets/gallery/04.jpg',
  74. 'title'=>'翻译中心接待室',
  75. 'id'=>'desc_04',
  76. 'description'=>'人工湖畔的接待室,访客活动中心',
  77. ],
  78. [
  79. 'image'=>'/assets/gallery/05.jpg',
  80. 'title'=>'办公环境',
  81. 'id'=>'desc_05',
  82. 'description'=>'27寸竖屏保证翻译的效率和质量,站坐交替的升降台,保证翻译者的健康。',
  83. ],
  84. ];
  85. return view('typhoon',[
  86. 'nav'=>$nav,
  87. 'title' => '巴 利 圣 典 文 库',
  88. 'subtitle' => '巴利圣典翻译计划欢迎您的参与',
  89. 'description' => '巴利语学习与翻译工具',
  90. 'gallery' => $Gallery,
  91. 'api' => config('app.url').'/api/v2',
  92. ]);
  93. }
  94. }