home.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. .home {
  2. height: 100vh;
  3. padding: 0;
  4. margin: 0;
  5. color: #f9fafc;
  6. overflow: hidden;
  7. }
  8. .background {
  9. height: 100%;
  10. width: 100%;
  11. padding: 0;
  12. margin: 0;
  13. background-attachment: fixed;
  14. background-position: center;
  15. transform: scale(1.1);
  16. filter: blur(3px);
  17. background-size: cover;
  18. }
  19. .content {
  20. position: relative;
  21. top: -65%;
  22. height: 60%;
  23. }
  24. .home img {
  25. width: 148px;
  26. height: 148px;
  27. background-color: #e7e7ef;
  28. padding: 5px;
  29. margin-bottom: 10px;
  30. }
  31. .home .greeting {
  32. color: #f9fafc;
  33. }
  34. .home .typing-carousel {
  35. font-size: 14pt;
  36. color: #f0f0f0;
  37. }
  38. #typing-carousel-data {
  39. display: none;
  40. }
  41. .arrow {
  42. position: absolute;
  43. color: #f9fafc;
  44. font-size: 1.5rem;
  45. bottom: 0;
  46. }
  47. .bounce {
  48. -webkit-animation: bounce 2s infinite;
  49. animation: bounce 2s infinite;
  50. }
  51. @-webkit-keyframes bounce {
  52. 0%,
  53. 20%,
  54. 50%,
  55. 80%,
  56. 100% {
  57. transform: translateY(0);
  58. }
  59. 40% {
  60. transform: translateY(-30px);
  61. }
  62. 60% {
  63. transform: translateY(-15px);
  64. }
  65. }
  66. @keyframes bounce {
  67. 0%,
  68. 20%,
  69. 50%,
  70. 80%,
  71. 100% {
  72. transform: translateY(0);
  73. }
  74. 40% {
  75. transform: translateY(-30px);
  76. }
  77. 60% {
  78. transform: translateY(-15px);
  79. }
  80. }
  81. /* ============= Device specific fixes ======= */
  82. /* Large screens such as TV */
  83. @media only screen and (min-width: 1824px) {
  84. }
  85. /* Extra large devices (large desktops, 1200px and up) */
  86. @media (max-width: 1400px) {
  87. }
  88. @media (max-width: 1200px) {
  89. }
  90. /* IPad Pro */
  91. @media (max-width: 1024px) {
  92. }
  93. /* Large devices (desktops, 992px and up) */
  94. @media (max-width: 992px) {
  95. }
  96. /* Medium devices (tablets, 768px and up) */
  97. @media only screen and (max-width: 768px) {
  98. }
  99. /* Small devices (landscape phones, 576px and up) */
  100. @media only screen and (max-width: 576px) {
  101. .content {
  102. position: relative;
  103. top: -75%;
  104. height: 65%;
  105. }
  106. .home img {
  107. width: 140px;
  108. max-width: 50%;
  109. height: auto;
  110. }
  111. .home .greeting {
  112. font-size: 24pt;
  113. }
  114. }
  115. /* iPhoneX, iPhone 6,7,8 */
  116. @media only screen and (max-width: 375px) {
  117. }
  118. /* Galaxy S5, Moto G4 */
  119. @media only screen and (max-width: 360px) {
  120. }
  121. /* iPhone 5 or before */
  122. @media only screen and (max-width: 320px) {
  123. }