style.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. html,
  6. body {
  7. height: 100%;
  8. width: 100%;
  9. }
  10. .main {
  11. height: 100%;
  12. width: 100%;
  13. background: url(../image/bg.jpg) no-repeat center center;
  14. background-size: 100% 100%;
  15. display: flex;
  16. flex-direction: column;
  17. text-align: center;
  18. text-align: left;
  19. }
  20. .main h1 {
  21. font-weight: bold;
  22. margin-top: 10%;
  23. font-size: 40px;
  24. line-height: 1;
  25. position: relative;
  26. left: 30%;
  27. color: rgba(25, 70, 127, 1);
  28. }
  29. .main span {
  30. display: block;
  31. font-size: 20px;
  32. margin-bottom: 10px;
  33. font-weight: 400;
  34. }
  35. .main .text {
  36. padding: 10px;
  37. margin: 0 auto;
  38. max-width: 800px;
  39. position: relative;
  40. top: 30px;
  41. z-index: 999;
  42. }
  43. .text .center {
  44. padding: 60px 60px 30px 60px;
  45. background: rgb(255, 255, 255);
  46. border-radius: 6px;
  47. box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 16px 0px;
  48. position: relative;
  49. margin-bottom: 121px;
  50. }
  51. .text .center:before {
  52. content: '';
  53. position: absolute;
  54. background: rgb(36, 147, 239);
  55. background-image: linear-gradient(
  56. 127deg,
  57. rgb(13, 183, 189),
  58. rgb(226, 71, 196)
  59. );
  60. inset: -4px;
  61. border-radius: 12px;
  62. filter: blur(30px);
  63. opacity: 0.8;
  64. z-index: -1;
  65. -webkit-border-radius: 12px;
  66. -moz-border-radius: 12px;
  67. -ms-border-radius: 12px;
  68. -o-border-radius: 12px;
  69. -webkit-filter: blur(30px);
  70. }
  71. .text .center p {
  72. margin-top: 30px;
  73. font-size: 17px;
  74. }
  75. .text .center p:nth-child(1) {
  76. margin-top: 0;
  77. }
  78. .text .center .container {
  79. margin-top: 50px;
  80. margin-bottom: 10px;
  81. width: 100%;
  82. display: flex;
  83. flex-direction: column;
  84. align-items: center;
  85. }
  86. .center .container .line {
  87. display: block;
  88. height: 1px;
  89. width: 100%;
  90. border-top: 1px solid red;
  91. margin: 2px auto;
  92. }
  93. .center .container .one {
  94. width: 30%;
  95. border-color: rgba(36, 147, 239, 0.8);
  96. }
  97. .center .container .two {
  98. width: 50%;
  99. border-color: rgba(36, 147, 239, 0.6);
  100. }
  101. .center .container .three {
  102. width: 70%;
  103. border-color: rgba(36, 147, 239, 0.4);
  104. }
  105. .text .center .name {
  106. text-align: center;
  107. margin-top: 1%;
  108. }
  109. /* @keyframes typing {
  110. from {
  111. width: 20%;
  112. }
  113. }
  114. @keyframes caret {
  115. 50% {
  116. margin-left: 5%;
  117. border-right-color: transparent;
  118. }
  119. }
  120. .main p {
  121. margin-top: 5%;
  122. width: 100%;
  123. white-space: nowrap;
  124. overflow: hidden;
  125. border-right: 0.05em solid;
  126. animation: typing 5s steps(15), caret 1s steps(1) infinite;
  127. -webkit-animation: typing 5s steps(15), caret 1s steps(1) infinite;
  128. } */