_landing-page.scss 5.4 KB

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