home.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. .arrow-center {
  20. display: flex;
  21. justify-content: center;
  22. }
  23. /*
  24. Resolves https://github.com/hugo-toha/toha/issues/70
  25. fixed attached images use the whole <body> size. On mobile this can get really
  26. tall which blows your image out. Setting the attachment back to scroll allows
  27. your cover image to stretch within its own container
  28. */
  29. @supports (-webkit-touch-callout: none) {
  30. .background {
  31. background-attachment: scroll;
  32. }
  33. }
  34. .content {
  35. position: relative;
  36. top: -65%;
  37. height: 60%;
  38. }
  39. .home img {
  40. width: 148px;
  41. height: 148px;
  42. background-color: #e7e7ef;
  43. padding: 5px;
  44. margin-bottom: 10px;
  45. }
  46. .home .greeting, .home .greeting-subtitle {
  47. color: #f9fafc;
  48. }
  49. .home .typing-carousel {
  50. font-size: 14pt;
  51. color: #f0f0f0;
  52. }
  53. #typing-carousel-data {
  54. display: none;
  55. }
  56. .arrow {
  57. position: absolute;
  58. color: #f9fafc;
  59. font-size: 1.5rem;
  60. bottom: 0;
  61. }
  62. .bounce {
  63. animation: bounce 2s infinite;
  64. }
  65. @keyframes bounce {
  66. 0%,
  67. 20%,
  68. 50%,
  69. 80%,
  70. 100% {
  71. transform: translateY(0);
  72. }
  73. 40% {
  74. transform: translateY(-30px);
  75. }
  76. 60% {
  77. transform: translateY(-15px);
  78. }
  79. }
  80. /* ============= Device specific fixes ======= */
  81. /* Large screens such as TV */
  82. @media only screen and (min-width: 1824px) {
  83. }
  84. /* Extra large devices (large desktops, 1200px and up) */
  85. @media (max-width: 1400px) {
  86. }
  87. @media (max-width: 1200px) {
  88. }
  89. /* IPad Pro */
  90. @media (max-width: 1024px) {
  91. }
  92. /* Large devices (desktops, 992px and up) */
  93. @media (max-width: 992px) {
  94. }
  95. /* Medium devices (tablets, 768px and up) */
  96. @media only screen and (max-width: 768px) {
  97. }
  98. /* Small devices (landscape phones, 576px and up) */
  99. @media only screen and (max-width: 576px) {
  100. .content {
  101. position: relative;
  102. top: -75%;
  103. height: 65%;
  104. }
  105. .home img {
  106. width: 140px;
  107. max-width: 50%;
  108. height: auto;
  109. }
  110. .home .greeting {
  111. font-size: 24pt;
  112. }
  113. }
  114. /* iPhoneX, iPhone 6,7,8 */
  115. @media only screen and (max-width: 375px) {
  116. }
  117. /* Galaxy S5, Moto G4 */
  118. @media only screen and (max-width: 360px) {
  119. }
  120. /* iPhone 5 or before */
  121. @media only screen and (max-width: 320px) {
  122. }