index.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Login</title>
  6. <link rel="stylesheet" type="text/css" href="Login.css"/>
  7. <style type="text/css">
  8. html{
  9. width: 100%;
  10. height: 100%;
  11. overflow: hidden;
  12. font-style: sans-serif;
  13. }
  14. body{
  15. width: 100%;
  16. height: 100%;
  17. font-family: 'Open Sans',sans-serif;
  18. margin: 0;
  19. background-color: #2b2727;
  20. }
  21. #login{
  22. position: absolute;
  23. top: 50%;
  24. left:50%;
  25. margin: -150px 0 0 -250px;
  26. width: 500px;
  27. height: 200px;
  28. background-color: #504b4b;
  29. }
  30. #login h1{
  31. color: #fff;
  32. text-shadow:0 0 10px;
  33. letter-spacing: 1px;
  34. text-align: center;
  35. }
  36. h1{
  37. font-size: 2em;
  38. margin: 0.67em 0;
  39. }
  40. input{
  41. width: 278px;
  42. height: 18px;
  43. margin-bottom: 10px;
  44. outline: none;
  45. padding: 10px;
  46. font-size: 13px;
  47. color: #fff;
  48. text-shadow:1px 1px 1px;
  49. border-top: 1px solid #312E3D;
  50. border-left: 1px solid #312E3D;
  51. border-right: 1px solid #312E3D;
  52. border-bottom: 1px solid #56536A;
  53. border-radius: 4px;
  54. background-color: #2D2D3F;
  55. }
  56. .but{
  57. width: 300px;
  58. min-height: 20px;
  59. display: block;
  60. background-color: #e9982f;
  61. border: 1px solid #e9982f;
  62. color: rgb(0, 0, 0);
  63. padding: 9px 14px;
  64. font-size: 20px;
  65. line-height: normal;
  66. border-radius: 5px;
  67. margin: 0;
  68. font-weight: bold;
  69. }
  70. </style>
  71. </head>
  72. <body>
  73. <div id="login">
  74. <h1>
  75. <p>这是主页</p>
  76. <span >
  77. <a th:if="${session.loginUser==null}" href="http://login.codeshop.com/view/login?target=http://www.codeshop.com/view/main" style="text-decoration:none; color: #e9982f;">登录</a>
  78. </span>
  79. </h1>
  80. <h1>
  81. <p th:unless="${session.loginUser==null}">
  82. <span style="color: aqua" th:text="${session.loginUser.username}"></span>已登录
  83. </p>
  84. </h1>
  85. </div>
  86. </body>
  87. </html>