home.scss 2.6 KB

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