_landing-page.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. @import "variables";
  2. @mixin texture-bg {
  3. background-color: #1a1a1a;
  4. box-shadow: inset 0px 0px 15px 8px rgba(0, 0, 0, 0.75);
  5. background-image: url("/header-bg.png");
  6. background-attachment: fixed;
  7. background-blend-mode: darken;
  8. }
  9. .landing-page {
  10. h2 {
  11. font-family: $brand-font-face;
  12. font-size: 3em;
  13. font-weight: normal;
  14. color: $brand-color;
  15. @media screen and (max-width: $sm-breakpoint) {
  16. font-size: 2em;
  17. }
  18. }
  19. h3 {
  20. font-family: $brand-font-face;
  21. font-size: 2.5em;
  22. font-weight: normal;
  23. color: $gray-600;
  24. @media screen and (max-width: $sm-breakpoint) {
  25. font-size: 1.8em;
  26. }
  27. }
  28. p.lead {
  29. font-size: 1.4em;
  30. font-weight: lighter;
  31. line-height: 1.6em;
  32. @media screen and (max-width: $sm-breakpoint) {
  33. font-size: 1.2em;
  34. }
  35. }
  36. .content {
  37. padding: 20px;
  38. max-width: $container-max-width;
  39. margin: auto;
  40. a:link, a:visited {
  41. color: darken($brand-color, 20%);
  42. }
  43. a:hover, a:active {
  44. color: $brand-color;
  45. }
  46. }
  47. .vimeo-player {
  48. width: 100%;
  49. height: 40vw;
  50. max-height: 80vh;
  51. margin-bottom: 30px;
  52. }
  53. .section-1 {
  54. text-align: center;
  55. color: $gray-300;
  56. @include texture-bg;
  57. .stack-logos {
  58. display: flex;
  59. align-items: center;
  60. justify-content: space-evenly;
  61. padding-bottom: 36px;
  62. @media screen and (max-width: $sm-breakpoint) {
  63. flex-wrap: wrap;
  64. }
  65. .stack-logo {
  66. max-width: 200px;
  67. margin: 0 12px;
  68. height: 100px;
  69. display: flex;
  70. align-items: center;
  71. @media screen and (max-width: $sm-breakpoint) {
  72. max-width: 100px;
  73. }
  74. img {
  75. max-height: 100%;
  76. max-width: 100%;
  77. }
  78. }
  79. .ts-logo {
  80. width: 200px;
  81. }
  82. .nest-logo {
  83. filter: saturate(0%) brightness(2);
  84. }
  85. }
  86. }
  87. .section-2 {
  88. background-color: $gray-100;
  89. }
  90. .features {
  91. .feature {
  92. display: flex;
  93. align-items: center;
  94. @media screen and (min-width: $sm-breakpoint) {
  95. &:nth-child(even) {
  96. flex-direction: row-reverse;
  97. }
  98. }
  99. @media screen and (max-width: $sm-breakpoint) {
  100. flex-direction: column;
  101. }
  102. color: $gray-700;
  103. }
  104. .feature-copy {
  105. padding: 0 16px;
  106. }
  107. .feature-image {
  108. max-width: 100%;
  109. min-width: 400px;
  110. margin-top: 40px;
  111. display: flex;
  112. align-items: center;
  113. @media screen and (max-width: $sm-breakpoint) {
  114. min-width: 0;
  115. flex-direction: column;
  116. }
  117. @media screen and (min-width: $lg-breakpoint) {
  118. min-width: 600px;
  119. }
  120. img {
  121. width: 100%;
  122. }
  123. }
  124. }
  125. .section-3 {
  126. .features {
  127. column-width: 600px;
  128. margin: 0 auto;
  129. }
  130. ul.feature-list {
  131. margin: 0;
  132. padding: 0;
  133. list-style-type: none;
  134. font-size: 18px;
  135. li {
  136. color: $gray-700;
  137. &:not(:first-child) {
  138. margin-top: 12px;
  139. }
  140. img {
  141. width: 24px;
  142. height: 24px;
  143. margin-right: 6px;
  144. }
  145. }
  146. }
  147. small {
  148. }
  149. }
  150. .section-4 {
  151. .getting-started {
  152. display: flex;
  153. @media all and (max-width: $sm-breakpoint){
  154. flex-direction: column;
  155. }
  156. }
  157. .install-code, .getting-started-link {
  158. flex: 1;
  159. }
  160. .getting-started-link {
  161. padding: 16px;
  162. display: flex;
  163. flex-direction: column;
  164. align-items: center;
  165. justify-content: center;
  166. }
  167. .getting-started-button {
  168. text-transform: uppercase;
  169. font-size: 1.4em;
  170. padding: 12px 24px;
  171. background-color: $color-success;
  172. box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.23);
  173. white-space: nowrap;
  174. border-radius: 4px;
  175. transition: background-color 0.2s;
  176. &:link, &:visited {
  177. color: #ceeabe;
  178. }
  179. &:hover {
  180. background-color: lighten($color-success, 4%);
  181. }
  182. }
  183. }
  184. @media all and (min-width: 600px) {
  185. .hero {
  186. padding: 100px;
  187. }
  188. .logo img {
  189. max-width: 160px;
  190. }
  191. .logo h1 {
  192. font-size: 5em;
  193. }
  194. .top-header {
  195. flex-direction: row;
  196. }
  197. .subhead {
  198. font-size: 2em;
  199. }
  200. .features {
  201. flex-direction: row;
  202. }
  203. }
  204. }