error.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!-- Standard Meta -->
  5. <meta charset="utf-8" />
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  8. <script src="https://unpkg.com/vue/dist/vue.js"></script>
  9. <script src="https://unpkg.com/vue-i18n/dist/vue-i18n.js"></script>
  10. <!-- Site Properties -->
  11. <title>Login</title>
  12. <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
  13. <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js" integrity="sha256-t8GepnyPmw9t+foMh3mKNvcorqNHamSKtKRxxpUEgFI=" crossorigin="anonymous"></script>
  14. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" integrity="sha256-9mbkOfVho3ZPXfM7W8sV2SndrGDuh7wuyLjtsWeTI1Q=" crossorigin="anonymous" />
  15. <style type="text/css">
  16. body {
  17. background-color: #e3eaed;
  18. }
  19. body>.grid {
  20. height: 100%;
  21. }
  22. .image {
  23. margin-top: -100px;
  24. }
  25. .column {
  26. max-width: 450px;
  27. }
  28. .background-top {
  29. width: 100%;
  30. height: 290px;
  31. background-color: #0079ad;
  32. border-bottom: 1px solid #fff;
  33. position: absolute;
  34. top: 0;
  35. left: 0;
  36. z-index: -100;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div class="background-top"> </div>
  42. <div class="ui middle aligned center aligned grid">
  43. <div class="column" id="login">
  44. <h2 class="ui teal image header">
  45. <img src="asset/cuhk.png" class="image" style="width:100%">
  46. </h2>
  47. <form class="ui large form">
  48. <div class="ui segment">
  49. <div class="field">
  50. <h3 class="ui header" style="text-align: left">Error!</h3>
  51. <p style="text-align: left">An error occurred. Contact your administrator for more information.<br>Error message :</p>
  52. <p style="text-align: left">
  53. {{error}}
  54. </p>
  55. <br><br><br><br><br>
  56. </div>
  57. </div>
  58. <div class="ui error message"></div>
  59. </form>
  60. <div class="ui message">
  61. <img class="ui small image" src="asset/matlab.svg">
  62. </div>
  63. <div class="ui dropdown">
  64. <div class="text">English (en-US)</div>
  65. <i class="dropdown icon"></i>
  66. <div class="menu">
  67. <div class="item">English (en-US)</div>
  68. <div class="item">中文 (zh-TW)</div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </body>
  74. <script>
  75. const messages = {
  76. en: {
  77. message: {
  78. login: 'login',
  79. }
  80. },
  81. tw: {
  82. message: {
  83. login: '登入',
  84. }
  85. },
  86. }
  87. const i18n = new VueI18n({
  88. locale: 'tw',
  89. messages,
  90. })
  91. new Vue({
  92. i18n
  93. }).$mount('#login')
  94. </script>
  95. </html>